ARTICLE

Start working with AJAX Control in ASP.NET using VB.NET

Posted by Davin Martyn Articles | Visual Basic 2010 September 07, 2011
With the help of this program we learn that how can do work in ajax and use a control in asp.net.
 
Reader Level:

Introduction: How can we work in ajax with asp.net and use ajax control in webform.

Ajax (Asynchronous JavaScript and Xml) is combination of many application Javascript, Html, Dhtml,Xml.with the help of ajax we create webpage .when user perform any action then ajax  provide content on web page like http request:

Step :1 How can create any page:

  • Open visual studio:
  • Go to file menu and select website option .
  • We select ASP.NET  website.
  • Click in ok option .
  • Default.aspx page will be open.
sat1.gif

sat2.gif

Step: 2 Go to SolutionExplorer :

  • Right click inD:\RAJESH\WebSite  which are show that drive folder name and project name.
  • Select add new item and double click
  • Select WebForm in the page and click in add option.
  • Open default.aspx page..
  • We click in design option in Default.aspx page.
sat4.gif

sat5.gif

Step:3 How can put the control :

  • Go to the toolbox option.
  • Click ajax extensions option.
  • Select scriptmanager control,updatepanel control.
  • Select button ,label in standard control.

sat6.gif

Step:4  Write a code for page:

  • Double click in form.and write a code .

Code:

    Protected Sub Page_Load(sender As Object, e As EventArgs)

       Label1.Text = DateTime.Now.ToString()

            Label2.Text = DateTime.Now.ToString()

   End Sub 

Step:5 Write a code for button:

  • Go to form double click in button.

Code:

   Protected Sub Page_Load(sender As Object, e As System.EventArgs

      Label1.Text = DateTime.Now.ToString();

      Response.Write("my ajax page");

   End Sub

Step :6 Go to default.aspx page

  • Put the label,button control inside a updatepannel

Note: When we inside the button and label control in updatepannel then we click in button then see only change in label which are inside in updatepannel control.

sat7.gif

Login to add your contents and source code to this article
share this article :
post comment
 
Nevron Diagram
Become a Sponsor
PREMIUM SPONSORS
  • The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
    Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
Nevron Diagram
Become a Sponsor