web 2.0

ASP.NET(vb.net) & HTML

ASP.NET(vb.net) & HTML How to insert HTML code in the asp.net script and asp.net web page with asp class and asp.net style.

ShotDev Focus:
- Insert HTML and asp.net script into asp.net webpage.

Example

ASP Classic Style
AspStyle.aspx

<%@ Page Language="VB" %>
<%
Response.write ("This is ASP Tag")
%>
<script runat="server">
Sub Page_Load()
Me.txtName.Text = "This is ASP.NET Tag"
End Sub
</script>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form runat="server">
<%
Response.write("This is ASP Tag<br>")
%>
<asp:Label id="lblText" runat="server" text="Text"></asp:Label>
<asp:TextBox id="txtName" runat="server"></asp:TextBox>
</form>
</body>
</html>

Screenshot

ASP.NET(vb.net) & HTML
.
.
ASP Classic Style
CodeBehind.aspx

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="CodeBehind.aspx.vb" Inherits="CodeBehind" %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form id="form1" runat="server">
<asp:Label id="lblText" runat="server"></asp:Label>
</form>
</body>
</html>

CodeBehind.aspx.vb


Public Class CodeBehind
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.lblText.Text = "ASP.NET Code Behide Style"
End Sub

End Class

Screenshot

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

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

One Response to “ASP.NET(vb.net) & HTML”

  1. 3controlled…

Leave a Reply

You must be logged in to post a comment.