AspXer Online Help
Special thanks to UVC for their expertise ASP.NET programming advice.
Options
Options for AspXer include the ability to control which types of HTML form controls to convert, and if they should have the attribute runat=server or not. Even if you have existing HTML that has the runat=server attribute, AspXer can remove it when you uncheck the appropriate box in the program. Typically, you can run HTML controls at the server simply by having the runat attribute set to server. If you want an HTML control to run at the server but not be transformed into an Aspx control, simply uncheck the appropriate box, and AspXer will insert the runat attribute into your HTML for you.
At this time, AspXer only supports these options on a global basis. That is, you can't individually select which HTML objects to convert or change.
HTML Form Tag Syntax currently handled by AspXer :
<INPUT> tag with inner HTML items:
type (syntax: type = [ " | ' ]value[" | ' ]) where value is any of the following:
button (converts to asp:Button)
submit (converts to asp:Button)
password (converts to asp:TextBox)
checkbox (converts to asp:Checkbox)
radio (converts to asp:RadioButton)id (syntax: id = [ " | ' ]value[" | ' ]) where value is any alphanumeric text
name (syntax: name = [ " | ' ]value[" | ' ]) where value is any alphanumeric text. Typically Aspx form tags do not use Name, and you have the option of converting your HTML form tag Names to the ID that Aspx will use.
maxlength (syntax: maxlength = [ " | ' ]value[" | ' ]) where value is any positive number. Max chars for text fields.
size (syntax: size = [ " | ' ]value[" | ' ]) where value is any positive number. px, pt, etc not handled. The size is specific to each type of field.
tabindex (syntax: tabindex = [ " | ' ]value[" | ' ]) where value is any positive number. Used to control the movement of the cursor/focus when the user hits the Tab key.
style (syntax: style = [ " | ' ]value[" | ' ]) where value is any Style supported by the browsers you are targetting. This simply gets transferred over into the Aspx control and does not get converted in any way.
<TEXTAREA> </TEXTAREA> tag (converts to asp:TextBox with appropriate attributes)
id (syntax: id = [ " | ' ]value[" | ' ]) where value is any alphanumeric text
name (syntax: name = [ " | ' ]value[" | ' ]) where value is any alphanumeric text. Typically Aspx form tags do not use Name, and you have the option of converting your HTML form tag Names to the ID that Aspx will use.
rows (syntax: rows = [ " | ' ]value[" | ' ]) where value is any positive number.
cols (syntax: id = [ " | ' ]value[" | ' ]) where value is any positive number.
wrap (syntax: id = [ " | ' ]value[" | ' ]) where value is off or on.
tabindex (syntax: tabindex = [ " | ' ]value[" | ' ]) where value is any positive number. Used to control the movement of the cursor/focus when the user hits the Tab key.
style (syntax: style = [ " | ' ]value[" | ' ]) where value is any Style supported by the browsers you are targetting. This simply gets transferred over into the Aspx control and does not get converted in any way.
<SELECT> </SELECT> tag (converts to asp:ListBox or asp:DropDownList depending on the size field value)
id (syntax: id = [ " | ' ]value[" | ' ]) where value is any alphanumeric text
name (syntax: name = [ " | ' ]value[" | ' ]) where value is any alphanumeric text. Typically Aspx form tags do not use Name, and you have the option of converting your HTML form tag Names to the ID that Aspx will use.
tabindex (syntax: tabindex = [ " | ' ]value[" | ' ]) where value is any positive number. Used to control the movement of the cursor/focus when the user hits the Tab key.
style (syntax: style = [ " | ' ]value[" | ' ]) where value is any Style supported by the browsers you are targetting. This simply gets transferred over into the Aspx control and does not get converted in any way.
<OPTION> [content] [</OPTON>] sub tag with the following items:
value (syntax: value = [ " | ' ]value[" | ' ]) where value is any alphanumeric text. Initial value of the control.
label (syntax: label = [ " | ' ]value[" | ' ]) where value is any alphanumeric text. If specified, this overides the inner text, the content.
Sample HTML that you can test in the converter:
Special thanks to UVC for their expertise ASP.NET programming advice.
Resourses on converting ASP to ASP.NET
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/convertasptoaspnet.asp
(C) 2002 Kevin