Join 136,274 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,261 people online right now. Registration is fast and FREE... Join Now!
Has anyone ran into this before, and if so how did you resolve it. Here's the scenario, I have this code
csharp
DateTime start = Convert.ToDateTime(StartDate.Text); DateTime end = Convert.ToDateTime(EndDate.Text); string title = NewTitle.Text; int active = Convert.ToInt32(rblIsActive.SelectedValue);
And I get a compilation error saying those controls don't exist , but here they are in the ASPX page
Is there anything that you didn't include that may be impacting the ability of the page to see the controls?
I typically run into this when using Ajax or having controls within another control. We use a lot of wizards which load user controls that contain all the functionality of our portal. Using the FindControl method is a necessity in these situations, as I am sure you already know. But I had to ask.
Anything like that going on with what you are doing?
Not really, I mean these controls are inside an <asp:View control, then again all other controls are as well, and none of them have I ran into this issue before. I'm almost ready to pull my damn hair out, not that I have a lot to pull anyways!
Also, no ajax at all, just simple ,Net server controls
Now I just need to get rid ofthe following error that happens when I click the "Update" button
QUOTE
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Now I just need to get rid ofthe following error that happens when I click the "Update" button
QUOTE
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Hello, stumbled upon this while trying to figure the same happening out, ie. Invalid .... Since I just registered in this forum, I cannot send you a PM and thus choosing to post here. The coding part of this feels a bit tricky and if you could give me an example on how to Register... I would much appreciate it and have a couple of hours to do some other coding . Thank you in advance.
Edit: If that is the part to correct, found a blog that says otherwise http://dotnetscribbles.blogspot.com/2006/1...-and-event.html and it feels like I really don't know where to start. Being new here I don't want to give the impression that I want my homework done but any information pointing me in the right direction would make a big difference to my day.
This post has been edited by aie.k: 24 Nov, 2008 - 01:34 AM