ASP Migration to ASP.NET
page 3 of 6
by . .
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 27049/ 42

Web Forms

Web Forms

You've probably heard of these if you've done research into ASP.NET, they are a bit complicated at first and I think I'm getting OOS (or RSI) from writing runat=server constantly. But they do provide a lot of new features (see my DataGrid's in ASP.NET), although a DataGrid isn't in a form tag its still one of those new GUI things that are built in. VB6 people will remember DataGrids and these are very similar. It allows dynamic things to happen with your form elements. The new GUI controls (well they produce GUI elements like tables) are much better that conventional ways, see my BDP article for the table and then the DataGrid's in ASP.NET article and check out the difference. I won't go into it too much, but I'll give you an example -

<form runat=server>

<asp:textbox id="name" ontextchanged="name_change()" runat=server />

<asp:button id="submit" runat=server />

</form>

This creates a textbox and a button that were generated on the server, they ontextchanged property allows me to execute server-side functions or events like with the client-side version, but this time it can perform more advanced things. The ontextchanged happens when we submit the form, the action by default it to post back to the page and any events are handled on the page. ( name_change() is a method on the page).


View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-03-28 6:12:54 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search