|
Good day everyone,
Just want to find out what's the .aspx.vb extension file for? I was creating a web application project with ASP.NET(VB project), I add some component to the page which include a button. Once I double click on the button, I will get this .aspx.vb file appear on the screen. It looks definately like vb so I just program the button_click event handler to display some message once the button is being clicked. I save my work and compile. I was supprise that it doesn't work and when I check my folder I found out that the .aspx.vb file deosn't exist in the project folder I created. What's the use of the .aspx.vb file? And how do I perform the event handler? Is is as below?
<%@ Page Language=VB Debug=true %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OLEDB" %>
<SCRIPT runat=server>
Sub Page_Load( ByVal Sender as Object, ByVal E as EventArgs )
If Not IsPostBack Then
lbl.Text = "Hi All"
Else
lbl.Text = "Hi " & Text.text
End If
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>ASP.NET</TITLE>
</HEAD>
<BODY>
<FORM runat=server>
<asp:Label
id=lbl
runat=server
/>
<asp:TextBox
id=Text
runat=server
/>
<asp:Submit
id=btn
Text=Generate
/>
</FORM>
</BODY>
</HTML>
Thanks!
|
|
|
|
|
|
|
// |