GlobaLevel
asked on
asp.net - issue with page_load with inline code...
I dont think I have the page_load syntax correct on this..please help..
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Qualify_client .aspx.vb" Inherits="MASER_BUILD.Qual ify_client " %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Import Namespace="System.Net" %>
<%@ Import Namespace="System.HttpStyl eUriParser "%>
<%@ Import Namespace="System"%>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Data.Sql Client"%>
<%@ Import Namespace="System.Data.Dat aSet"%>
<%@ Import Namespace="System.Data.Sql Client.Sql DataAdapte r"%>
<%@ Import Namespace="System.CodeDom. Compiler"% >
<%@ Import Namespace="System.Net"%>
<%@ Import Namespace="System.Diagnost ics"%>
<%@ Import Namespace="System.Security .Cryptogra phy" %>
<script runat="server">
Public Sub Page_Init(ByVal object sender, ByVal EventArgs e)
End Sub
Sub Button1_Click(ByVal sender As Object, ByVal e As ImageClickEventArgs) 'Handles Submit.Click
' LETS SEE
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Qualify_client
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Import Namespace="System.Net" %>
<%@ Import Namespace="System.HttpStyl
<%@ Import Namespace="System"%>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Data.Sql
<%@ Import Namespace="System.Data.Dat
<%@ Import Namespace="System.Data.Sql
<%@ Import Namespace="System.CodeDom.
<%@ Import Namespace="System.Net"%>
<%@ Import Namespace="System.Diagnost
<%@ Import Namespace="System.Security
<script runat="server">
Public Sub Page_Init(ByVal object sender, ByVal EventArgs e)
End Sub
Sub Button1_Click(ByVal sender As Object, ByVal e As ImageClickEventArgs) 'Handles Submit.Click
' LETS SEE
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
whats the diff between LOAD and INIT?
can I ask one more question...
how do I take data stored into a variable and paste it into a txt file posted in my projected....
dim strData as string
strdata = "test"
my.computer.filesystem.sav eAllText(" C:/folder/ file.txt") = strdata
can I ask one more question...
how do I take data stored into a variable and paste it into a txt file posted in my projected....
dim strData as string
strdata = "test"
my.computer.filesystem.sav
Yes Page_Init is pretty much similar to Page_Load. You can do all the things
which You did in Page_Load. But the major difference is Page_Load will be
fired each time when the page submits. Page_Init will be fired only once when
the page loads for the first time.
>> But the major difference is Page_Load will be
>> fired each time when the page submits. Page_Init will be fired only once when
>> the page loads for the first time.
That is not true. Page_Init fires before Page_Load, every time the page is requested. See http://msdn.microsoft.com/en-us/library/ms178472.aspx for more information.
>> fired each time when the page submits. Page_Init will be fired only once when
>> the page loads for the first time.
That is not true. Page_Init fires before Page_Load, every time the page is requested. See http://msdn.microsoft.com/en-us/library/ms178472.aspx for more information.
ASKER
perfect!
ASKER
okay...this is a great link...I just need to load it once when the user first intializes the web site....doesnt have to wash and repeat during the session...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thnks
I will provide the proper syntax for both.
Hope this helps,
Dustin
Open in new window