473,511 Members | 15,630 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Postback and RegisterForEventValidataion

I am working with a radio button group. Depending on the seleciton panels
and controls will show/hide. I keep getting an Invalid Postback or Callback
argument. I have tried registering the values that I am using in render()
with ClientScript.RegisterForEventValidation but it is not working.

The buttong group only has 2 choices. At load choice #1 is selected. I can
select #2 and the proper events happen. However, if I go back to choice #1
I get the error. I have not found a satisfactory solution on the web.

Any ideas?

Aug 31 '07 #1
3 1348
Here's a little more info that might help. All of these controls are in an
update panel. 1 of the controls that appears during the SelectedIndexChaned
event of the radio button is a drop down that is populated from a database.
If I comment out the code that populates the drop down everything works ok,
I don;t get the error.

This makes me thingk that I have to use the render()
ClientScript.RegisterForEventValidation for every value in that drop down.

How do I do that for a dynamically populated control???

Is there a better way, somethging that I am missing? After all, I am pretty
new to this.
Thanks.
"SECSteve" wrote:
I am working with a radio button group. Depending on the seleciton panels
and controls will show/hide. I keep getting an Invalid Postback or Callback
argument. I have tried registering the values that I am using in render()
with ClientScript.RegisterForEventValidation but it is not working.

The buttong group only has 2 choices. At load choice #1 is selected. I can
select #2 and the proper events happen. However, if I go back to choice #1
I get the error. I have not found a satisfactory solution on the web.

Any ideas?

Aug 31 '07 #2
Hello,

DropDownList should register it's values for event validation already. Is it
sure that you aren't databinding it on every request?

Could you provide a relevant snippet of your code (feel free to email me
directly), so I can take a look at it.
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"SECSteve" <SE******@discussions.microsoft.comwrote in message
news:B5**********************************@microsof t.com...
Here's a little more info that might help. All of these controls are in
an
update panel. 1 of the controls that appears during the
SelectedIndexChaned
event of the radio button is a drop down that is populated from a
database.
If I comment out the code that populates the drop down everything works
ok,
I don;t get the error.

This makes me thingk that I have to use the render()
ClientScript.RegisterForEventValidation for every value in that drop down.

How do I do that for a dynamically populated control???

Is there a better way, somethging that I am missing? After all, I am
pretty
new to this.
Thanks.
"SECSteve" wrote:
>I am working with a radio button group. Depending on the seleciton
panels
and controls will show/hide. I keep getting an Invalid Postback or
Callback
argument. I have tried registering the values that I am using in
render()
with ClientScript.RegisterForEventValidation but it is not working.

The buttong group only has 2 choices. At load choice #1 is selected. I
can
select #2 and the proper events happen. However, if I go back to choice
#1
I get the error. I have not found a satisfactory solution on the web.

Any ideas?


Sep 1 '07 #3
Hi SECSteve,

I'm wondering if you have seen my last reply. Our policy is to follow-up
each post within 48 business hours and we need to confirm with customer
before closing a post. Since I don't have complete information for your
question, my last reply asked for more information. Would you please let me
know more about your question? Thanks.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Sep 6 '07 #4

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

Similar topics

5
2032
by: Matthew Louden | last post by:
I created simple ASP.NET web application to test how AutoPostBack property in a web control works. I set AutoPostBack property to be true of a web control. When I run the application, here's the...
2
4313
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control...
8
11137
by: walesboy | last post by:
greetings - I have a btnSubmit button with a Handles btnSubmit.click which works great if all the user does is click that button. But, if the user ALSO changes a text box on the page (which...
4
3382
by: Jim Hammond | last post by:
It would be udeful to be able to get the current on-screen values from a FormView that is databound to an ObjectDataSource by using a callback instead of a postback. For example: public void...
1
17021
by: Timbo | last post by:
Hi all, This is my first message here so i'll try and include all the information that will help you help me out, if possible. Basically I am using C# in ASP.NET 2.0 and have a Repeater...
2
620
by: Wizzard | last post by:
I have a repeater with and imagebutton on a page useing VS2005 ASP.Net 2.0 <asp:Repeater ID="Repeater1" runat="server" > <ItemTemplate> <div> <asp:ImageButton ImageUrl="button.gif"...
11
14789
by: antonyliu2002 | last post by:
I know that this has been asked and answered thousands of times. As a matter of fact, I know that I need to say If Not Page.IsPostBack Then 'Do something End If for things that needs to be...
7
3350
by: Tony Girgenti | last post by:
Hello. I'm trying to undetrstand ASP.NET 2.0 and javascript. When i have a button and i click on it and i see the web broswer progress bar at the bottom do something, does that mean that there...
2
3899
by: John Kotuby | last post by:
Hi guys, I am converting a rather complicated database driven Web application from classic ASP to ASP.NET 2.0 using VB 2005 as the programming language. The original ASP application works quite...
0
7138
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
7418
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...
1
7075
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
5662
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,...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3212
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
446
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.