Ask a Question related to ASP.NET General, Design and Development.
-
C #1
Code being called twice in my ASPX Code behind??
Hi,
I have an ASP.Net application.
I have an aspx page with a button that submits the page.
In my codebehind I check if it is a postback and
instantaite a class and use a method of the class.
On coming back from the class I instantiate it hits the
End If of where I check it is a PostBack and runs through
the code again.
Am new to ASPX.
Anyone know what could be wrong?
Thanks,
C.
C Guest
-
error adding a proxy in the code behind aspx page
Why cant i add a proxy(service) in the following code...this aspx.cs using System.ComponentModel; using System.Data; using System.Drawing; using... -
Passing code/data from code-behind to ASPX page
I have the following code in my code-behind file: DataGrid MAPPsDataGrid = (DataGrid)((((((Repeater) sender).Parent).Parent).Parent).Parent); ... -
using code behind variables in .aspx
avs: If its a WebControl then you can acess it in codebehind already. In codebehind you need this line: yourtableid.width = intWidth --... -
Can I compile regular ASP-code in to an aspx-file?
Hi everyone, i've heard that aspx-files can be compiled code so that the webserver just have to deal with the code once, is that true? I'm a... -
dynamically generate aspx code
As far as dynamically creating bound columns take a look @ http://www.c-sharpcorner.com/Code/2003/June/DisplayBoundColumnBased.asp "Keith Langer"... -
C #2
Re: Code being called twice in my ASPX Code behind??
Here is the codebehind my ASPX..
Public Class RetrievePassword
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private
Sub InitializeComponent()
End Sub
'NOTE: The following placeholder declaration is
required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As
System.Object
Private Sub Page_Init(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web
Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Public strResponse As String
Private Sub Page_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If IsPostBack() Then
'Call RetrievePassword Function in User Class
If Request.Form("txSubmit") = "Go" Then
Dim strUserName As String = Request.Form
("txUserName")
Dim objUser As User = New User
'Retrieve password and email to user
objUser.RetrievePassword(strUserName)
strResponse = "Your Password will be sent
to your EMail account"
objUser = Nothing
End If
End If
End Sub
End Class
C Guest
-
Natty Gur #3
Re: Code being called twice in my ASPX Code behind??
is your AutoEventWireup set to true ?
Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Natty Gur Guest



Reply With Quote

