codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  .aspx.vb?  swspm at 09:05 on Thursday, September 04, 2003
 

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!








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Date script issues
•  perl script help needed
•  onChange issue
•  perl remote execution
•  Chat application
•  How to send multiple perameters in SOAP request.
•  Java code for Insert picture on the table in spreadsheet
•  Re: Problem with concatenation
•  how to genrates the crystal report by sending a id at runtime


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007