Browser Problem

  • Thread starter Thread starter Stephen
  • Start date Start date
S

Stephen

Hi,

I have a question. I have created an application using VS.NET and the
application runs fine on IE, (I mean all the image buttons, textboxes etc.)
I understand that validation control features dont work on Netscape, but why
does'nt imagebuttons and buttons work on Netscape.
How do I solve this problem.

Thanks,
Stephen
 
Define "doesn't ... work".

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Hi kevin,

suppose I want to change emailaddress or password in the form. the button
works and updates information on IE but does not do anything in Netscape. I
know it sounds crazy.
I have checked the DB for the results and IE inputs changes and Netscape
does not.

Stephen.
 
Hi Stephen,

That helps. If the buttons didn't show up at all it would mean one thing. If
they simply don't post back, it means another. Do you have a URL for us to
look at?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Oh, yes, one other question: Are you saying that a PostBack doesn't occur,
or that the PostBack occurs, and no work is done?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
check that javascript is enabled with the netscape browser. also if you go
into IE options and disable javascript as microsoft is currently
recommending (as a temporary security fix) to users, you will find IE
doesn't work either.
 
Hi Kevin,

I am using an Image button and its referencing like this
<a href="myaccount.aspx"><asp:ImageButton id="btnUpdate" runat="server"
ImageUrl="images/buttons/btn_update_black.gif"></asp:ImageButton></a>

I have built the project for both IE and NETSCAPE using Project Properties.
I think Netscape does not do a PostBack at all and redirects it to
MyAccount.aspx

Thanks,
Stephen.
 
I think Netscape does not do a PostBack at all and redirects it to
MyAccount.aspx

Okay, the only way a redirect can occur is if a PostBack occurs. The only
other way the location of the document can change is via hyperlink or
JavaScript. Why would your app do a redirect to that page?

So, it sounds like a PostBack is occurring. Are you doing any browser-aware
stuff on the server-side?

If you can't post a URL to the page, perhaps posting the HTML of the page in
the browser would help.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Also, your code is rather strange. You have put an ImageButton inside a
hyperlink. I am guessing that the ImageButton does a PostBack. Does it? If
so, there could be some confusion between the hyperlink and the "onclick"
attribute of the image on the client. The hyperlink wants to request another
page using GET, and the PostBack, of course, submits the form. Perhaps it is
a sequencing issue on the client. IOW, what order are these things processed
in by the browser. Maybe IE handles the form submit first (in which case the
hyperlink would be ignored) and Netscape handles the hyperlink first (in
which case, the form submit would be ignored).

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Hey Kevin,

It works. I noticed the same thing, I removed the hyperlink and it works
fine. it posts back and Updates. Thanks for the info.

Stephen.
 
Whew! Great!

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Back
Top