Tag Archives: ASP.NET

Invalid postback or callback argument ASP.NET

I got this error 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 … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

AP.NET misplaced tags can give you big headache

I was trying to add a new tab to the existing 2 tabs. I copied some 250 lines of code of the second tab, changed all IDS and ControlIDs for validation etc and finally made the code work. But only … Continue reading

Aside | Posted on by | Tagged , | Leave a comment

It is an error to use a section registered as allowDefinition=’MachineToApplication’ beyond application level

Scott Michell wrote an excellent article about the above error explaining exactly why are you getting this error. Basically you are opening the parent folder of a project in Visual Studio and you get this error. Since web.config in this … Continue reading

Posted in Troubeleshoot, Weird ASP.NET Errors | Tagged , , , | Leave a comment

Accessing Local Resources in MVC

You want to localized your resource or in other words put them in a resource file in the local folder, how do you access it in MVC?   Here is how you will access it     public class Student     {       // Constuctor … Continue reading

Posted in Software Development | Tagged , | Leave a comment

Must declare the scalar variable “@ID”

Problem In an ASP.NET Application, you are using ListView, you are trying to delete a record. Update, Insert everything works fine but delete does not work. The SQL syntax is correct [csharp] DeleteCommand=”delete from SalesRep where ID = @ID” [/csharp] … Continue reading

Posted in Troubeleshoot | Tagged | 3 Comments