473,406 Members | 2,620 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,406 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 2344
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.