Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Html to web forms

Reply
Thread Tools

Html to web forms

 
 
John
Guest
Posts: n/a
 
      10-02-2004
Hi

I have an enquiry form which posted to an asp script for processing. Is
there a way to automatically/easily convert into an asp.net webform for
event driven programming?

Thanks

Regards


 
Reply With Quote
 
 
 
 
Karl
Guest
Posts: n/a
 
      10-02-2004
John,
One of the quickest ways is to use HtmlControls instead of WebControls.
They aren't as flexible/powerful of WebControls but allow for a really quick
conversion. Simply add a runat="server" and id="SomeID" to each of your
would-be controls and you'll have a programming model available
(events,properties...)

was:
<table>
<tr>
<Td>Username: </td>
<td><input type="textbox" name="username" ></td>
</tR>
<tr>
<Td>Password: </td>
<td><input type="password" name="password" ></td>
</tr>
<tr>
<Td colspan="2"><input type="submit" value="login"></td>
</tr>
</table>

now:

<table>
<tr>
<Td>Username: </td>
<td><input runat="Server" id="username" type="textbox" name="username"
/></td>
</tR>
<tr>
<Td>Password: </td>
<td><input runat="server" id="username" type="password" name="password"
/></td>
</tr>
<tr>
<Td colspan="2"><input runat="server" id="username" type="submit"
value="login"></td>
</tr>
</table>

Karl


--
MY ASP.Net tutorials
http://www.openmymind.net/


"John" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi
>
> I have an enquiry form which posted to an asp script for processing. Is
> there a way to automatically/easily convert into an asp.net webform for
> event driven programming?
>
> Thanks
>
> Regards
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
forms authentication -- expired forms cookie vs. not provided forms cookie Eric ASP .Net Security 2 01-27-2006 10:09 PM
How to determine if context is Windows Forms or Web Forms Arsen V. ASP .Net 7 08-06-2005 09:24 AM
embedded windows forms into web forms for control =?Utf-8?B?ZGF2aWQ=?= ASP .Net 2 04-10-2005 01:07 PM
Creating ASP.NET forms, that act like HTML forms jlopes151 ASP .Net 2 03-14-2005 01:01 AM
Web Forms VS Windows Forms Brendan Miller ASP .Net 2 08-11-2003 09:05 PM



Advertisments