WizIQ helps you learn and teach online - any subject you can think of!
Join for FREE

Forms in ASp.net

Add to Favourites
Post to:
Comments
Presentation Transcript Presentation Transcript

Forms : Forms

Form : Form All server controls must appear within a tag, and the tag must contain the runat="server" attribute. The runat="server" attribute indicates that the form should be processed on the server. It also indicates that the enclosed controls can be accessed by server scripts: ...HTML + server controls

Slide 3 : The form is always submitted to the page itself. If you specify an action attribute, it is ignored. If you omit the method attribute, it will be set to method="post" by default. Also, if you do not specify the name and id attributes, they are automatically assigned by ASP.NET.

some code

Submitting a Form : Submitting a Form A form is most often submitted by clicking on a button. The Button server control in ASP.NET has the following format: The id attribute defines a unique name for the button and the text attribute assigns a label to the button. The onClick event handler specifies a named subroutine to execute.

Slide 5 : In computer programming, an event handler is an asynchronous callback subroutine that handles inputs received in a program. Each event is a piece of application-level information from the underlying framework, typically the GUI toolkit.

Viewstate : Viewstate The ViewState indicates the status of the page when submitted to the server. The status is defined through a hidden field placed on each page with a

control. Include the directive <%@ Page EnableViewState="false" %> at the top of an .aspx page or add the attribute EnableViewState="false" to any control.

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no.:


Area code Number
Subject you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy
Biswadip Goswami
Knowledge is for ALL !
User
2 Members Recommend
49 Followers

Your Facebook Friends on WizIQ

Explore Similar Courses

Web Programming with JSP Servlets

Price:$200
$149

SAVE 25%