postbackurl

PostbackUrl vs NavigateUrl

Can someone tell me the different between LinkButton.PostBackUrl and HyperLink.NavigateUrl? I've got a asp.net 2.0 application that uses both methods throughout the application and everything works fine. However if I connect to the application over the company vpn all of the links that use LinkButton.PostBackUrl give me a (54) Connecti...

add querystring to a postbackurl property of asp:button

I've got a textbox and a button on a form on default.aspx and in my DownloadHandler.ashx I am getting the value I need from HttpContext.Request.Form("txtURI"): <asp:TextBox ID="txtURI" AutoPostBack="true" runat="server"></asp:TextBox> <asp:Button ID="DownloadButton"...

Is there a way to clear the query string paramters when posting back?

I have a form that sometimes gets linked to with some query string parameters. The problem is that when I post back the form, the query string parameter is still there. Its not really an issue the way I have it setup, but I just don't like it being there, and could see it being a problem if you needed to check for input in a certain or...

C# LinkButton.PostBackUrl - New window without JS

Hi! Is it possible to use asp:LinkButton without JavaScript to open new windows? Currently i have workable next code, but with JS. <asp:LinkButton ID="lnkPcName" runat="server" OnClientClick="window.document.forms[0].target='_blank';" PostBackUrl='<%# Eval("ComputerId", "ComputerInfo.aspx?ComputerId={0}") %>'><%# Eval("pcName") %></asp...

[Asp.Net] PostbackUrl and Query String Parameter

Scratching my head about this. In the rendered HTML for the code below, the btnEdit (in the GridView) has the correct Javascript in the onclick parameter (onclick="javascript:WebForm_DoPostBack..."). The btnAddNew has no onclick handler at all. Why? There is no compilation or runtime error, and the page uses a master page that has the Fo...

Cross Page Postback in moss

Can I do a cross page postback in an .aspx page hosted in moss? I have set the postbackurl property of a button but when it posts to my page I get the following message from moss: This Page has been modified since you opened it. You must open the page again. ...

CrossPagePostback and Server.Validate errors

I'm working with CrossPagePostback using PostBackURL and I'm running into sporadic errors revolving around PrevousPage.IsValid. The source (source.aspx) has a LinkButton with an OnCommand event, a PostBackURL of "target.aspx" and CausesValidation="true". The target (target.aspx) page checks for PreviousPage != null in Page_Load and then...

driving postbacks from qs without posting the viewstate (and other assorted junk)

hi i have a web form, basically a few droppers searcing/filtering data in a gridview i would quite like to be able to drive this from the qs, so that the 'searches' can be saved. but i really dont want to 'get' all the bumf in the viewstate. is there any way to drive this from the QS other than changing the postbackUrl of the submit b...

CrossPost access to data

Hi, I have a search form on a page that posts back to itself and shows the results, all works fine. I now have a requirement to put the same search form on the site home page. This needs to post back to the search form and run the findResults code. Using the PostBackURL parameter on the home page form's submit button I can hit the sear...

changing the PostBackUrl in ASP.net after a file download

I have a ASP.net which allows users to select a number of inputs and dropdown lists to filter the report and to download an Excel report after pressing a button on that same form. The page can be used mulitple times, by changing the inputs and pressing the download button each time. The button should be posting back to the hidden IFRA...