473,399 Members | 2,478 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,399 software developers and data experts.

Buttons do postback but events are not triggered?


Hi

I have a web page that contains a button doing some simple code. On the
development machine this works as expected, but on the client machine, the
button triggers a postback, but the events are never triggered.

Someone in my office claimed to have heard of this happening, but could
not tell how to fix it.

The program is a VB.Net 1.1 web application, with the button created
WithEvents and the eventhandler method with Handles MyButton.Click.

I haven't tested anything other than buttons, but all buttons I add to the
page will not fire the event, merely do a postback without entering the
event code.

What confuses me even more is that I have two web pages using the exact
same code for the buttons, but only one of these works on the client
machine, while both work on the develpment machine.

Have anyone heard of this happening? And/Or possible know a solution?

Best regards
Morten
Mar 10 '06 #1
4 1253
DWS
Morten,
Show group the code for the three pages.

Thanks
DWS

"Morten Wennevik" wrote:

Hi

I have a web page that contains a button doing some simple code. On the
development machine this works as expected, but on the client machine, the
button triggers a postback, but the events are never triggered.

Someone in my office claimed to have heard of this happening, but could
not tell how to fix it.

The program is a VB.Net 1.1 web application, with the button created
WithEvents and the eventhandler method with Handles MyButton.Click.

I haven't tested anything other than buttons, but all buttons I add to the
page will not fire the event, merely do a postback without entering the
event code.

What confuses me even more is that I have two web pages using the exact
same code for the buttons, but only one of these works on the client
machine, while both work on the develpment machine.

Have anyone heard of this happening? And/Or possible know a solution?

Best regards
Morten

Mar 10 '06 #2
I believe the code in this case is irrelevant, as it is not the code per se that is failing. And in any case I can't show it. Nor can I reproduce a similar case outside that server.

On Fri, 10 Mar 2006 18:50:34 +0100, DWS <DW*@discussions.microsoft.com> wrote:
Morten,
Show group the code for the three pages.

Thanks
DWS

"Morten Wennevik" wrote:

Hi

I have a web page that contains a button doing some simple code. On the
development machine this works as expected, but on the client machine, the
button triggers a postback, but the events are never triggered.

Someone in my office claimed to have heard of this happening, but could
not tell how to fix it.

The program is a VB.Net 1.1 web application, with the button created
WithEvents and the eventhandler method with Handles MyButton.Click.

I haven't tested anything other than buttons, but all buttons I add to the
page will not fire the event, merely do a postback without entering the
event code.

What confuses me even more is that I have two web pages using the exact
same code for the buttons, but only one of these works on the client
machine, while both work on the develpment machine.

Have anyone heard of this happening? And/Or possible know a solution?

Best regards
Morten

Mar 10 '06 #3
Morten Wennevik wrote:
Hi

I have a web page that contains a button doing some simple code. On
the development machine this works as expected, but on the client
machine, the button triggers a postback, but the events are never
triggered.

Someone in my office claimed to have heard of this happening, but
could not tell how to fix it.

The program is a VB.Net 1.1 web application, with the button created
WithEvents and the eventhandler method with Handles MyButton.Click.

I haven't tested anything other than buttons, but all buttons I add
to the page will not fire the event, merely do a postback without
entering the event code.

What confuses me even more is that I have two web pages using the
exact same code for the buttons, but only one of these works on the
client machine, while both work on the develpment machine.

Have anyone heard of this happening? And/Or possible know a solution?

Maybe this is needed ...
http://msdn.microsoft.com/library/en...asp?frame=true

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Mar 10 '06 #4
Hi Morten,

We found if framework version in developing computers is different from one
in server, e.g. SP1 was installed in developing computers, but not in server,
that caused some problems.

Hope this gives you some hint.

Elton Wang

"Morten Wennevik" wrote:

Hi

I have a web page that contains a button doing some simple code. On the
development machine this works as expected, but on the client machine, the
button triggers a postback, but the events are never triggered.

Someone in my office claimed to have heard of this happening, but could
not tell how to fix it.

The program is a VB.Net 1.1 web application, with the button created
WithEvents and the eventhandler method with Handles MyButton.Click.

I haven't tested anything other than buttons, but all buttons I add to the
page will not fire the event, merely do a postback without entering the
event code.

What confuses me even more is that I have two web pages using the exact
same code for the buttons, but only one of these works on the client
machine, while both work on the develpment machine.

Have anyone heard of this happening? And/Or possible know a solution?

Best regards
Morten

Mar 10 '06 #5

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

Similar topics

1
by: szabelin | last post by:
Hi there were a few postings earlier, including mine regarding this. It looks as if when a dynamic child control causes a postback, its handler never gets called, and the control is null. This...
3
by: Aleksandr Ayzin | last post by:
Hi, Basic question about PostBack: would it be accurate to say that PostBack is a direct result of triggered event that happened on the form(button clicked, text typed into textbox, so on). Is...
1
by: Brian Shannon | last post by:
I know this might be a strange thing to ask for but I need it to work in my intranet application. I have a dropdown box that has autopostback = true Let's call the dropdownbox 'cboTest' ...
1
by: andrei | last post by:
Hi Group, I have an aspx form with a variable number of buttons added dynamically, with id's like b01, b02, b03... Whenever I click one of these buttons, the form is posted back. I need to...
2
by: Wayne Sepega | last post by:
I have the following Code: foreach (MyClass d in myClassCollection) { curRadioBtn = new RadioButton(); curRadioBtn.Text = d.ToString(); curRadioBtn.GroupName = "Contact"; curRadioBtn.ID =...
5
by: mayur_hirpara | last post by:
Hi, I have been developing web applications for a while now. However, as I was thinking through the architecture I really don't understand the "How server can identify between which buttons has...
6
by: Totto | last post by:
Hi, Anyone know the best solution to dynamically add buttons to a asp 2.0 page using data from Sql server? Are there any contols suitable for this or is it best to iterate the dataset and...
5
by: Amoril | last post by:
I've read quite a few different message on various boards and for some reason I'm still having trouble wrapping my head around this viewstate maintenance and trying to get these dynamically created...
2
by: =?Utf-8?B?Um9nZXIweDE=?= | last post by:
Language: c#,.net 2 This looks simple in concept: I have a page that needs to display a userid, a date/time to start vacation, a date/time to end the vacation, and two buttons: one says...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.