web 2.0

ASP.NET(vb.net) & HTMLGeneric

ASP.NET(vb.net) & HTMLGeneric - HTMLGeneric : Creates a server-side control that maps to an HTML element not represented by a specific .NET Framework class, such as <body> and <div>.

ShotDev Focus:
- ASP.NET(vb.net) & HTMLGeneric

Tag Control :

<span | body | div | font | others
id="programmaticID"
runat="server" >
Contentbetweentags
</span | body | div | font | others>

Example

HTMLGeneric.aspx

<%@ Page Language="VB" %>
<script runat="server">

Sub Button1_OnClick(sender As Object, e As EventArgs)
Me.body1.Attributes("BgColor") = Me.txtColor.Value
Me.body1.Attributes.Add("Onload","JavaScript:Welcome();")

Me.Anchor1.href = "http://www.shotdev.com"
Me.Anchor1.Attributes.Add("OnClick","JavaScript:Welcome();")
End Sub

</script>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
<script language="JavaScript">
function Welcome()
{
alert('Welcome www.ShotDev.Com')
}
</script>
</head>
<body id="body1" runat="server">
<form runat="server">
BgColor =
<input id="txtColor" type="text" runat="server" />
<input id="Button1" type="submit" value="Submit" runat="server" onserverclick="Button1_OnClick" />
<br />
<br />
<a id="Anchor1" runat="server">www.ShotDev.Com</a>
</form>
</body>
</html>

Screenshot

ASP.NET(vb.net) & HTMLGeneric
.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.