473,289 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

Login Page Problem; Click Events not fired

hi,

I have a very strange problem on my login Page. the Page was working fine a
few days back, but now does not generate post back events for controls. this
login page uses form based authentication.

Whenever the button is clicked, no event is raised, infact it doesnt even go
to the page_load as well. Events are registered and there is no problem with
the code because the same code is working fine on Windows XP machine. The
machine which is giving problem is Windows 2000 Advanced server.

If I redirect the request forcefully to another page, everything works
perfectly fine across application, except this login.aspx.

its urgent,

thanks in advance.

Amit Purohit
(MCAD.NET)



Jul 21 '05 #1
10 2334
Hi Amit,

Did the runat="server" attribute get removed from your asp:button server
control tag? Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight

"amit.purohit" <am**********@rsystems.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
hi,

I have a very strange problem on my login Page. the Page was working fine a few days back, but now does not generate post back events for controls. this login page uses form based authentication.

Whenever the button is clicked, no event is raised, infact it doesnt even go to the page_load as well. Events are registered and there is no problem with the code because the same code is working fine on Windows XP machine. The
machine which is giving problem is Windows 2000 Advanced server.

If I redirect the request forcefully to another page, everything works
perfectly fine across application, except this login.aspx.

its urgent,

thanks in advance.

Amit Purohit
(MCAD.NET)


Jul 21 '05 #2
hi,

no the runat server tag is there.
"Ken Dopierala Jr." <kd*********@wi.rr.com> wrote in message
news:uG**************@TK2MSFTNGP15.phx.gbl...
Hi Amit,

Did the runat="server" attribute get removed from your asp:button server
control tag? Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight

"amit.purohit" <am**********@rsystems.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
hi,

I have a very strange problem on my login Page. the Page was working fine
a
few days back, but now does not generate post back events for controls. this
login page uses form based authentication.

Whenever the button is clicked, no event is raised, infact it doesnt

even go
to the page_load as well. Events are registered and there is no problem

with
the code because the same code is working fine on Windows XP machine.

The machine which is giving problem is Windows 2000 Advanced server.

If I redirect the request forcefully to another page, everything works
perfectly fine across application, except this login.aspx.

its urgent,

thanks in advance.

Amit Purohit
(MCAD.NET)



Jul 21 '05 #3
Hmmm...Do you have any javascript that validates before submitting the page?
Without seeing any code or anything all I can suggest is deleting the page
from your project and then recreate it. Any chance that another page was
created in the same project with the same name? Maybe in a different
folder? Sometimes that causes problems although it is usually debugging
problems that that causes. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight

"amit.purohit" <am**********@rsystems.com> wrote in message
news:un**************@tk2msftngp13.phx.gbl...
hi,

no the runat server tag is there.
"Ken Dopierala Jr." <kd*********@wi.rr.com> wrote in message
news:uG**************@TK2MSFTNGP15.phx.gbl...
Hi Amit,

Did the runat="server" attribute get removed from your asp:button server
control tag? Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight

"amit.purohit" <am**********@rsystems.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
hi,

I have a very strange problem on my login Page. the Page was working fine
a
few days back, but now does not generate post back events for
controls. this
login page uses form based authentication.

Whenever the button is clicked, no event is raised, infact it doesnt even
go
to the page_load as well. Events are registered and there is no

problem with
the code because the same code is working fine on Windows XP machine.

The machine which is giving problem is Windows 2000 Advanced server.

If I redirect the request forcefully to another page, everything works
perfectly fine across application, except this login.aspx.

its urgent,

thanks in advance.

Amit Purohit
(MCAD.NET)




Jul 21 '05 #4
hi,

there is encryption used in that page, will that make a difference.

this code is used on form onsubmit() and then the server side event is
raised. even this code is not executed.

function on_login_submit() {
var psd_combo;
if( document.forms[0].pwd.value != "" )
{
psd_combo = hex_sha1(document.forms[0].pwd.value) +
document.forms[0].sha1_seed.value; document.forms[0].sha1_seed.value =
hex_sha1(psd_combo);
}
return true;
}


"Ken Dopierala Jr." <kd*********@wi.rr.com> wrote in message
news:u8**************@TK2MSFTNGP15.phx.gbl...
Hmmm...Do you have any javascript that validates before submitting the page? Without seeing any code or anything all I can suggest is deleting the page
from your project and then recreate it. Any chance that another page was
created in the same project with the same name? Maybe in a different
folder? Sometimes that causes problems although it is usually debugging
problems that that causes. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight

"amit.purohit" <am**********@rsystems.com> wrote in message
news:un**************@tk2msftngp13.phx.gbl...
hi,

no the runat server tag is there.
"Ken Dopierala Jr." <kd*********@wi.rr.com> wrote in message
news:uG**************@TK2MSFTNGP15.phx.gbl...
Hi Amit,

Did the runat="server" attribute get removed from your asp:button server control tag? Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight

"amit.purohit" <am**********@rsystems.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
> hi,
>
> I have a very strange problem on my login Page. the Page was working

fine
a
> few days back, but now does not generate post back events for controls. this
> login page uses form based authentication.
>
> Whenever the button is clicked, no event is raised, infact it doesnt

even
go
> to the page_load as well. Events are registered and there is no problem with
> the code because the same code is working fine on Windows XP machine.
The
> machine which is giving problem is Windows 2000 Advanced server.
>
> If I redirect the request forcefully to another page, everything

works > perfectly fine across application, except this login.aspx.
>
> its urgent,
>
> thanks in advance.
>
> Amit Purohit
> (MCAD.NET)
>
>
>
>
>
>
>



Jul 21 '05 #5
I don't know if the encryption will make a difference. But if your form
never submits it sounds more like a client-side issue because the server
isn't involved. You could try to create a new test button and see if that
new button will submit the form. Other than that I think you are stuck with
either rebuilding the page piece by piece to see where it breaks, or
removing things piece by piece to see where it starts working again. Good
luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight

"amit.purohit" <am**********@rsystems.com> wrote in message
news:OL**************@TK2MSFTNGP14.phx.gbl...
hi,

there is encryption used in that page, will that make a difference.

this code is used on form onsubmit() and then the server side event is
raised. even this code is not executed.

function on_login_submit() {
var psd_combo;
if( document.forms[0].pwd.value != "" )
{
psd_combo = hex_sha1(document.forms[0].pwd.value) +
document.forms[0].sha1_seed.value; document.forms[0].sha1_seed.value =
hex_sha1(psd_combo);
}
return true;
}


"Ken Dopierala Jr." <kd*********@wi.rr.com> wrote in message
news:u8**************@TK2MSFTNGP15.phx.gbl...
Hmmm...Do you have any javascript that validates before submitting the

page?
Without seeing any code or anything all I can suggest is deleting the page
from your project and then recreate it. Any chance that another page was created in the same project with the same name? Maybe in a different
folder? Sometimes that causes problems although it is usually debugging
problems that that causes. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight

"amit.purohit" <am**********@rsystems.com> wrote in message
news:un**************@tk2msftngp13.phx.gbl...
hi,

no the runat server tag is there.
"Ken Dopierala Jr." <kd*********@wi.rr.com> wrote in message
news:uG**************@TK2MSFTNGP15.phx.gbl...
> Hi Amit,
>
> Did the runat="server" attribute get removed from your asp:button

server > control tag? Good luck! Ken.
>
> --
> Ken Dopierala Jr.
> For great ASP.Net web hosting try:
> http://www.webhost4life.com/default.asp?refid=Spinlight
>
> "amit.purohit" <am**********@rsystems.com> wrote in message
> news:%2***************@TK2MSFTNGP11.phx.gbl...
> > hi,
> >
> > I have a very strange problem on my login Page. the Page was working fine
> a
> > few days back, but now does not generate post back events for

controls.
> this
> > login page uses form based authentication.
> >
> > Whenever the button is clicked, no event is raised, infact it doesnt even
> go
> > to the page_load as well. Events are registered and there is no

problem
> with
> > the code because the same code is working fine on Windows XP machine. The
> > machine which is giving problem is Windows 2000 Advanced server.
> >
> > If I redirect the request forcefully to another page, everything works > > perfectly fine across application, except this login.aspx.
> >
> > its urgent,
> >
> > thanks in advance.
> >
> > Amit Purohit
> > (MCAD.NET)
> >
> >
> >
> >
> >
> >
> >
>
>



Jul 21 '05 #6
thank u so much,

i tried these stuffs.

I made sample apps and it works fine.

may be i 'll just try, if u get some help, do let me know.

bye,
amit
"Ken Dopierala Jr." <kd*********@wi.rr.com> wrote in message
news:OH**************@TK2MSFTNGP15.phx.gbl...
I don't know if the encryption will make a difference. But if your form
never submits it sounds more like a client-side issue because the server
isn't involved. You could try to create a new test button and see if that
new button will submit the form. Other than that I think you are stuck with either rebuilding the page piece by piece to see where it breaks, or
removing things piece by piece to see where it starts working again. Good
luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight

"amit.purohit" <am**********@rsystems.com> wrote in message
news:OL**************@TK2MSFTNGP14.phx.gbl...
hi,

there is encryption used in that page, will that make a difference.

this code is used on form onsubmit() and then the server side event is
raised. even this code is not executed.

function on_login_submit() {
var psd_combo;
if( document.forms[0].pwd.value != "" )
{
psd_combo = hex_sha1(document.forms[0].pwd.value) +
document.forms[0].sha1_seed.value; document.forms[0].sha1_seed.value =
hex_sha1(psd_combo);
}
return true;
}


"Ken Dopierala Jr." <kd*********@wi.rr.com> wrote in message
news:u8**************@TK2MSFTNGP15.phx.gbl...
Hmmm...Do you have any javascript that validates before submitting the

page?
Without seeing any code or anything all I can suggest is deleting the page from your project and then recreate it. Any chance that another page was created in the same project with the same name? Maybe in a different
folder? Sometimes that causes problems although it is usually debugging problems that that causes. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight

"amit.purohit" <am**********@rsystems.com> wrote in message
news:un**************@tk2msftngp13.phx.gbl...
> hi,
>
> no the runat server tag is there.
>
>
> "Ken Dopierala Jr." <kd*********@wi.rr.com> wrote in message
> news:uG**************@TK2MSFTNGP15.phx.gbl...
> > Hi Amit,
> >
> > Did the runat="server" attribute get removed from your asp:button

server
> > control tag? Good luck! Ken.
> >
> > --
> > Ken Dopierala Jr.
> > For great ASP.Net web hosting try:
> > http://www.webhost4life.com/default.asp?refid=Spinlight
> >
> > "amit.purohit" <am**********@rsystems.com> wrote in message
> > news:%2***************@TK2MSFTNGP11.phx.gbl...
> > > hi,
> > >
> > > I have a very strange problem on my login Page. the Page was working > fine
> > a
> > > few days back, but now does not generate post back events for
controls.
> > this
> > > login page uses form based authentication.
> > >
> > > Whenever the button is clicked, no event is raised, infact it doesnt > even
> > go
> > > to the page_load as well. Events are registered and there is no
problem
> > with
> > > the code because the same code is working fine on Windows XP

machine.
> The
> > > machine which is giving problem is Windows 2000 Advanced server.
> > >
> > > If I redirect the request forcefully to another page, everything

works
> > > perfectly fine across application, except this login.aspx.
> > >
> > > its urgent,
> > >
> > > thanks in advance.
> > >
> > > Amit Purohit
> > > (MCAD.NET)
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
>
>



Jul 21 '05 #7
It sounds like your event handler has become unattached from the event.
VS.net sometimes does this when you edit the html source of the page.
Make sure the sub is still bound to the event handler.

In C#, this line should be in the InitializeComponent sub.

this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click);

and in VB the sub should look something like this.

Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As
EventArgs) Handles btnLogin.Click

Hope this helps!

Joel Cade, MCSD .Net, MCAD, MCP
Fig Tree Solutions, LLC
http://www.figtreesolutions.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #8
I agree with Joel. There have been times when my EventHandler got unattached
and gave me so much grief that I just added a note in my personal KB to first
check for EventHandlers, if events do not fire.

"Joel Cade" <Joel Cade>, "MCSD" wrote:
It sounds like your event handler has become unattached from the event.
VS.net sometimes does this when you edit the html source of the page.
Make sure the sub is still bound to the event handler.

In C#, this line should be in the InitializeComponent sub.

this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click);

and in VB the sub should look something like this.

Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As
EventArgs) Handles btnLogin.Click

Hope this helps!

Joel Cade, MCSD .Net, MCAD, MCP
Fig Tree Solutions, LLC
http://www.figtreesolutions.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 21 '05 #9
no this was the first thing that i had also checked out but this is not the
case.

what else can be the reason
"s_cnot" <sc***@discussions.microsoft.com> wrote in message
news:92**********************************@microsof t.com...
I agree with Joel. There have been times when my EventHandler got unattached and gave me so much grief that I just added a note in my personal KB to first check for EventHandlers, if events do not fire.

"Joel Cade" <Joel Cade>, "MCSD" wrote:
It sounds like your event handler has become unattached from the event.
VS.net sometimes does this when you edit the html source of the page.
Make sure the sub is still bound to the event handler.

In C#, this line should be in the InitializeComponent sub.

this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click);

and in VB the sub should look something like this.

Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As
EventArgs) Handles btnLogin.Click

Hope this helps!

Joel Cade, MCSD .Net, MCAD, MCP
Fig Tree Solutions, LLC
http://www.figtreesolutions.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 21 '05 #10
ya i was able to dscover one thing, it is becoz of validators, any validator
on a page is creating the problems.

no message just gets blocked,
"amit.purohit" <am**********@rsystems.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
no this was the first thing that i had also checked out but this is not the case.

what else can be the reason
"s_cnot" <sc***@discussions.microsoft.com> wrote in message
news:92**********************************@microsof t.com...
I agree with Joel. There have been times when my EventHandler got

unattached
and gave me so much grief that I just added a note in my personal KB to

first
check for EventHandlers, if events do not fire.

"Joel Cade" <Joel Cade>, "MCSD" wrote:
It sounds like your event handler has become unattached from the event. VS.net sometimes does this when you edit the html source of the page.
Make sure the sub is still bound to the event handler.

In C#, this line should be in the InitializeComponent sub.

this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click);

and in VB the sub should look something like this.

Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As
EventArgs) Handles btnLogin.Click

Hope this helps!

Joel Cade, MCSD .Net, MCAD, MCP
Fig Tree Solutions, LLC
http://www.figtreesolutions.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Jul 21 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ash | last post by:
I want to provide the ability for my users to login from any page that they are on. ie. have a login user control with a username and password box on each page (not a link to a login page). ...
2
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
0
by: Weston Weems | last post by:
I've got a tab like interface I've implemented, each tabpage representing data on a particular object. Basically what I'd like to do is load up data on the selected item, then when I click on a...
2
by: adolf garlic | last post by:
I'm having a problem with a button click event being fired erroneously. My login.aspx page has the usual username/password boxes. There is also a link to click when you have filled these, plus a...
2
by: Steve Richter | last post by:
I want my web page to display its contents in a step by step process. step1: enter a zip code, click the "next step" button in the NextStep button click event: - retrieve info that pertains...
1
by: Gunjan Garg | last post by:
Hello All, I am working to create a generic datagrid which accepts a datasource(ListData - This is our own datatype) and depending on the calling program customizes itself for sorting,...
10
by: amit.purohit | last post by:
hi, I have a very strange problem on my login Page. the Page was working fine a few days back, but now does not generate post back events for controls. this login page uses form based...
5
by: Afshar | last post by:
Hi everybody there, I have a special Login page that wants users to enter 3 passwords rather than a single password. But can't do it with Login control. I tried following scenarios: 1. Put an...
3
by: =?Utf-8?B?VDhS?= | last post by:
Ok...I've been looking for an answer to this problem and can't seem to find one...Framework 1.1 mind you. I have a base class that inherits from UserControl. I have 5 and soon to be 12 user...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.