postback

DropDownList Postback on ENTER Keypress Not Firing the Server-Side Event

Greetings! I have a simple navigation menu consisting of an asp:DropDownList and an asp:Button. Users select an item from the dropdown and click the button to go to the new URL. I'd like to be able to able to support when users hit the ENTER key when a dropdown list item is selected so that it replicates the behavior as if they've cli...

ASP.NET Client Side Postback

I have your basic asp.net web form which contains some client-side JavaScript that forces the page to time out and then redirect after 5 minutes. Mainly to protect possibly sensitive information. At timeout, I want to force a server post back allowing me to save the form values for future edits. I have played with both ClientScript.Get...

ASP.NET Preload Post Back Event

Is there any kind of event out there that would allow for a preload post back event. The reason I ask is I have a control that adds sibling controls to it on postback events, however, by the time it has loaded the post back its too late to add the new control to the control collection. Therefore, the controls are never updated correc...

Refresh the page after a postback action in asp.net

I have command button added in my asp.net grids. After performing an action using that button, we refresh the grid to reflect the new data. (basically this action duplicates the grid row). Now when user refresh the page using "F5", an alert message is displayed (to resend the information to server) if we select "retry", the action is re...

Properly implement a webpart with postback?

What I'm trying to do is to create a webpart that has a textbox where you can set the value of a literal (h2) on the webpart and a "save" button that posts back and then sets the literal accordingly. This works with one huge caveat; when the page loads after the postback the literal has not been changed. However if I log what is actually...

jQuery modal form dialog postback problems

Hi Guys, I've created a jQuery UI Modal form and I want that form to trigger postback but i'm having difficulty getting it to work. I know there are quite a few articles based on using the SimpleModal plugin and I have tried to adapt these and override the _doPostback function but with no joy. I think the problem is within the call to...

User Controls in Repeater

I have a usercontrol that provides voting buttons (for a SO type voting model) - it contains a private int member that retains the id of the record. Outside a repeater, it functions just fine - postbacks work, and the correct id is retained in the user control. Inside the repeater, an itemdatabound event handler associates the correct ...

Gridview disappears on postback when paging is enabled.

I have a gridview that has its DataSourceID property set to a custom ObjectDataSource object. When AllowPaging is set to True, the GridView disappears after a postback. If I set AllowPaging to False it's fine. Can someone shed some light on this for me? :) Edit: The other thing I'm confused about is I thought that if you set the DataSou...

Postback issue in ASP.NET

I have an asp.net label control with its Visible property set to false. In the code-behind I'm setting its visibility to true/false based on whether the user has logged in or not. A weird behavior is that on postbacks, the code-behind executes and sets the value of the label's visibility to whatever, and then the markup executes and sets...

C# ASP.NET Post Back Data

Hi, I have a web page form which contains around 20 forms(home.aspx), on 1 of it i need to put a link beside a textbox which will be pop out when the user clicks the link(search.aspx). In this pop out link there will be a search textbox which will search the database based on the keyword that user enters. Let's say the user enters id num...

Keep controls persistent when the querystring changes

Is there anyway to do a postback with a new querystring that doesn't reset all of the controls on a page to their defaults? I have a page named "default.aspx" with several checkbox controls on it. I can check them all I want and they will remain persistent (meaning they keep their checked or unchecked state) on postbacks to "default.aspx...

.net calendar - making the whole cell perform postback (clickable)

I've got a .net calendar up and running and bringing information from a database. By default the day number has a post back action applied to it. What I'm trying to do is have that action apply to the whole cell so the user doesn't need to click on just the text link. I'm the dayRenderer action i have the following line to try and repl...

Report Data Disappears on Postback

I currently have a reporting services project that is displayed as part of an ASP.NET application. I have one report that has 2 datetime parameters. When I type in the textbox some sort of date, nothing appears to happen, but if I click on the little calendar icon and select a date, the page will then post back, and the data that used ...

Good ASP.NET MVC pattern for form submit and immediate result display

I hear everyone recommends redirecting the user (HTTP GET) after he submits the form (HTTP POST). It's clean, there is no "do you want to resend" alert, it's simple... But, what if I want to show some result to the user? Okay, I can add some parameter to the GET url, like "/?message=1" and then check for that parameter.orm But, what ...

FCKEditor doesn't set Value property on postback!

I'm using FCKEditor on my asp.net web page. It appears beautifully, and the editor looks really good on the front end. Only problem is, the .Value property is not being set on the postback. No matter what changes the user makes to the value of the control on the page, when I click "Submit", the .Value property remains blank. I have G...

PostBack event not firing in WebBrowser Control

In our client application making use of the .NET WebBrowser control, about 1% of our users are reporting no-action when clicking on an ImageButton, LinkButton, or any ASP.NET control that submits its request via DoPostBack(). When the same users access the page directly in IE, the controls behave normally. What could be causing the dis...

SignOut() without postback in ajax login

Hi, I have one asp.net Ajax Login using webservices. In this login i call the loogout() client side from hyperlink: Sys.Services.AuthenticationService.logout(null,onLogoutCompleted,null,null); return false; My Webservice make : [WebMethod] public void Logout() { FormsAuthentication.SignOut(); } logout work but my page make one...

Custom Control loads a user control; Postback events are not triggered

Hello all - I have a custom control (compiled as a DLL) which loads a user control. (i.e, the custom control does a LoadControl) In the user control is a button and a textbox. I wire up the button's click event. I type in a value into the text box. When I click the button, the page does a postback. My user control knows that a postbac...

Hidden Field altered through javascript not persisting on postback

I have a web user control with a hidden field on it. When a javascript event (click) ocurrs, I am trying to set a value in the hidden field, so that the value can be retained on postback and remembered for the next rendering. The control is a collapsible panel extender that does not cause postback, uses jquery, and if postback occurs e...

Asp.net "Global" variables

I'm writing a page in ASP.NET and am having problems following the cycle of initialization on postbacks: I have (something akin to) the following: public partial class MyClass : System.Web.UI.Page { String myString = "default"; protected void Page_Init(object o, EventArgs e) { myString = Request["passedString"]; ...