Posts

Send SMS on Mobile for Verification or Anything in ASP.Net

Image
To do this you will have to purchase SMS service , I don't know whether this service is free or not but you will have to purchase it. Okay, Take two textbox one for mobile no and one for some code you want to send and one button to click When user enters mobile no message automatically goes to it's mobile no you can dynamically assign random code for user but here I am using textbox to send code. now take an iframe and give it an id ' frame_id ' and in the button click event assign src attribute dynamically, it will send code to its corresponding mobile no. make a function protected void sms_send_method() { string string_of_connection =""; // here you will have to write connection of sms url given by company you purchased frame_id .Attributes["src"]= string_of_connection ; }

Infinite Scroll in Asp.Net C# using Javascript without Third party Plugin

Image
Infinite Scroll is very common today in website as we all see in facebook , google + , LinkedIn and many other sites, as we scroll down data from server automatically appears in our browser without clicking any button. How We will do it?  We first create a database and then after that we will apply a jquery that will execute when our scroll bar reaches bottom of the page. For demo I will fetch YouTube video link from local server and bind that in iframe when scrolled down..  Here I will define a variable or you can say in other word a counter that will increase according to our requirement when scroll down. and that value will pass to the server so that server can send data when scrolled down. Here in my example I am increasing counter by one and initial value is 14 since my table ID started from 14 (you know when you delete some data this happen when it is PK) How to pass data from a page to server using jquery ? Follow these Steps: 1. Create a ...

Retrieve Data from SQL Server and Dispaly using Jquery in Asp.net

Image
Take the look at this: In the previous example we saw, How to insert data in database using jquery in asp.net ? now we will see how to display data in jquery in asp.net. Here we will use html page and a aspx.cs file. First Step: CreateTable with column name " Name " and " Email " Second Step:  Create a new project Third Step: Add a html file in your project. Fourth Step: Create input textbox and a button with id "Button1". Fifth Step: Add the following code in the aspx.cs file [ WebMethod ]     public static string InsertMethod( string Name)     {         string shashi = "" ;          StringBuilder sb = new StringBuilder ();         SqlConnection con = new SqlConnection ( "Data Source=PREETI-PC;Initial Catalog=Record;Integrated Security=True" );         { ...