|
Hi...
This is My eror....here i am sending complete error message.Kindly give me solution OR guide me.
Server Error in '/trialwebsite' Application.
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.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: 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.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: 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.]
System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) +367
System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument) +83
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +51
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +31
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +72
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3837
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Regards,
Pinakin
pbbhatt@gmail.com
|
|
|
|
|
If you can afford to turn off event validation, that's the easiest solution.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
]]>
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
|
Hi I m doing one project in which i want to store multiple value of list box into singledatabase field seprataly
how to do this please help me
|
|
|
|
|
Mogha Ritesh wrote: i want to store multiple value of list box into singledatabase field seprataly
What does it mean? Please be clear
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
you need to read the data from the list in a loop and insert them to the database at each iteration.
The Developer - CEH
|
|
|
|
|
you should read all data from your list and then store using comma separator or another symbol to easily retrieve from database.
I will do my best?
|
|
|
|
|
Hi all,
I am building a usercontrol ..
When the user dragdrop the user control in the webform, i want to list the gridviewnames in a property of that user controll
How can I ?
Thanks in Advance
Dana
|
|
|
|
|
Just write a public property which exposes the required data. Property viewer will show it when you select that control.
|
|
|
|
|
Thanks for the reply N a v a n e e t h
If add a single value it displays the value
How can I add a values like DropdownList ?
|
|
|
|
|
danasegaranea wrote: How can I add a values like DropdownList ?
I didn't get that. Do you want to display a dropdown list in the property grid ?
|
|
|
|
|
|
Use a enum as your property signature. I believe dropdown will be displayed on the property grid then.
public enum Sample
{
First,
Second,
Third
}
public Sample YourPropertyName
{
get; set;
}
|
|
|
|
|
That works well
Now I am trying to add the form gridview controls name inside the Enum ...
May be a diffcult task ?
|
|
|
|
|
danasegaranea wrote: Now I am trying to add the form gridview controls name inside the Enum
It is done in other way. Check this[^]. In that article, I have shown how to edit collections through property editor. You can check and implement something similar.
|
|
|
|
|
|
How can i hide html buttun by code in a javascript function?
Thanks
The Developer - CEH
|
|
|
|
|
var btn =document.getElementById('button2');<br />
<br />
btn.style.display = 'none';
or
<br />
btn.style.visibility = 'hidden';
and to make it visible again:
<br />
btn.style.display = '';
or
<br />
btn.style.visibility = 'visible';
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
|
|
|
|
|
it works Thank you Blue_Boy
The Developer - CEH
|
|
|
|
|
No problem,you are welcome.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
|
|
|
|
|
Hi,
I'm having a problem updating my project files on the production server.
I usually update on the development server and then copy the files on the production server.
There's only one problem that happened once when I was updating. A user was online on the website while I was copying the files so it caused some kind of error and the pages couldn't load data from the database.
I need to know a safe way to copy the files and replace the old files on the server without causing any problems to online users.
Note that they are usually updating the database and stuff like that?
What can I do?
|
|
|
|
|
There are 2 ways of updating.
1. By setup
2. By publishing
I think you are using the second method. If so then i would suggest you to take down the server for the time you are updating and then make it online after updation. This is what all the hosting providers do. Because you are normally not updating your site daily.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Thanks a lot.
there's only one thing, should I send all users that we're going to update the site on a certain day so their data won't be lost too during updates. or what?
|
|
|
|
|
No need to send all the users a message. Just replace your default index page with a custom html page with a message. "The site is currently down for maintainance purposes. Please check back in 2 hrs. Sorry for inconvenience."
Ahsan Ullah
Senior Software Engineer
|
|
|
|