Thursday, April 28, 2011

Using basic asp.net web server control C# tutorial

Content
I. Design web page using VS 2005
II. Basic event handing with click event of button
III. Using Request, response and server object
a. Call Browser property of request to check name and version of web browser.
b. Calls write method of response to display message on browser.
c. Calls redirect method to change location of client.
IV. Run asp.net page
Now let’s go
1. Create Home.aspx page as
[caption id="attachment_247" align="aligncenter" width="300" caption="AspBasic01"][/caption]

This is code of button submit click event


Run page


Submmit as


2. Create login.aspx


Double click on button and write code


Create result.aspx and provide code as


Now test page


Good luck !
ntdan@live.com

No comments:

Post a Comment

Translate