.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

WebForm_DoPostBackWithOptions Posts Back Twice

Posted By:      Posted Date: October 05, 2010    Points: 0   Category :ASP.Net


I am using JQuery  to call the click event on a button that uses WebForm_DoPostBackWithOptions to post back to the server.  The click event successfully posts back to the correct server side event, but the PostBack happens twice.  How can I prevent the double postback?



View Complete Post

More Related Resource Links

Button posts back but doesn't fire event Only in IIS - Fine in Cassini


Here's an odd one that I've never seen before.

Only on IIS, not in Cassini but in all web browsers I have a button that posts back and the page_load event fires, but the actual button click event doesn't fire.

there is no re-writing of the page or anything else happening.


Post back puzzle


Hi, I have a website where the user makes a selection from a combo box and it then fills a couple text boxes with text based upon the selection. I'm sure as you know it could take a second for the text to appear in the text box due to the post back. I know there is no way to make it instantanious, so what I would like to do it fill the text box with somthing like "Loading Info..." so the user does not type in it while the information is loading.

If you would like to see what I mean please go to this page: www.epiclinks.com/create.aspx and mess around with the combo boxes and You'll see what I mean.

What I would like to do is have it do a post back to write "Loading Info..." and then do another post back to fill it in based upon their selection. How would I do this?

I'm up for anything, so if you have a better solution than that please let me know.


How do I preserve __viewstate between cross domain posts or how do I get a __viewstate of a Remote S


Here is what I want to do:
I have a local site in which I want to display data from a remote site
Lets say: I want to display data of http://www.abc.com/Default.aspx on my localhost

Now Default.aspx requires some post-data which it sends to itself. Thus the __viewstate and __eventvalidation are posted back to it by itself. I want to directly post the data to Default.aspx from localhost without opening Default.aspx and display the Default.aspx's response on my localhost.

The WebApp on http://www.abc.com is configured for __eventvalidation i.e. I cannot post-data to it from my localhost without getting a __viewstate from it. I also have to post the current __viewstate of http://www.abc.com/Default.aspx to itself

How can I accomplish it?

Security negotiation failed because the remote party did not send back a reply in a timely manner. T



Dear All i have created one simple service

like this

namespace WcfService2
        public class Service1 : IService1
        public string ShowEmpName(string strFirstName, string strLastName)
            return strFirstName + strLastName;

after executing in .net command promt i got 2 files

service.cs & output.config

after that i create one class file like this

namespace WcfService2
    public class clientcs

        static void Main(string[] args)
            Service1Client client = new Service1Client();
            string strResult = client.ShowEmpName("Pradeep", "Deokar");

Code Cleanup: 9 Useful Tactics for Paying Back Technical Debt


Now that you've identified technical debt in your code base, let's turn our attention to some specific tactics that will help you pay back that debt.

David Laribee

MSDN Magazine January 2010

Code Cleanup: Using Agile Techniques to Pay Back Technical Debt


Every codebase contains some measure of technical debt - code that is maddeningly hard to test and maintain. We outline some ideas for identifying and dealing with the high-interest debt in your code.

David Laribee

MSDN Magazine December 2009

Editor's Note: A Look Back As We Move Forward


Here's a look at a year's worth of coverage and changes at MSDN Magazine in response to reader requests.

Howard Dierking

MSDN Magazine January 2009

Talk Back: Voice Response Workflows with Speech Server 2007


Speech Server 2007 lets you create sophisticated voice-response applications with Microsoft .NET Framework and Visual Studio tool integration. Here's how.

Michael Dunn

MSDN Magazine April 2008

Editor's Note: Back to the Future


As we head into the cold winter months, we've got great content to keep you warm! You might wonder why I started this Editor's Note with such a tired intro, but we have a reason. We're covering a lot of fresh, exciting new material this month, and we didn't want to upstage the good news.

MSDN Magazine January 2006

Editor's Note: Back to Basics in .NET


Sometimes progress seems to move more quickly than time. Sometimes time seems to fly in the face of progress. What are we talking about? Has the summer heat finally made us lose our minds? Don't be silly! Just because this has been the hottest summer in New York City since 2001 doesn't mean we're not thinking straight.

MSDN Magazine October 2002

get the last inserted row ( autoincrement id ) in mysql database back


In my mysql I have an autoincrement id , whenever I add a new row into database I need to store this id in other table, so how to get this autoincrement Id back?

How to display recent blog posts in marquee up tag?


I need to display recent blog post in the blog site to the right panel.

i am able to display all the title of the posts using dataview. What i need is that it should scroll up, that is all the contents should be in the : Marquee direction="up" tag.

how can i scroll the recent post's?


Blog site Restrictions -- How to set an expiration date on blog posts

I just created a new Blog site in Sharepoint 2007, and set permisions to the users and admins.
Now, I have a question on how to set the post life time. Is there any setting to contral how many days that the posts can last in the blog? We want the post include the comments kept in the site for one month.

Please help.


Personal view reverts back to default after updating properties of item


I am working with a company that has 1 site collection with several sub sites.  I have built 3 document libraries with workflow in 3 different sub sites and all behave as expected.  I have one site where ALL libraries do something perplexing;

If you are in a custom personal view and you go into the properties of a document and then exit (update or not, does not matter) it reverts back to the default view of that library. 

Has anyone seen this?  is there an option when creating an album that could cause this?

thanks in advance for any input on this odd issue.

How can I get it back to a standard view?

I already convert the standard view from Sharepoint to XSLT Data View. I also change the column width, how can I get it back to a standard view?
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend