I have code that "pops up" another ASPX page with an image in it. The javascript used to popup the the window is below.
string url = @"DocumentPage.aspx?imageGuid=" + imageGuid;
string winWidth = "800";
string winHeight = "600";
StringBuilder scriptString = new StringBuilder();
...
I am creating JQuery dialog boxes and need the close functionality to cause a postback to the parent form (so that data changed in the popup form displays immediately on the parent screen). I have the code written and the dialog box in place. However, there is an issue. In IE, when I close the popup and the postback occurs, I get this...
I have a Textbox that changes the content of a dropdown in the OnTextChanged event. This event seems to fire when the textbox loses focus. How do I make this happen on the keypress or keyup event?
Here is an example of my code
<asp:TextBox ID="Code" runat="server" AutoPostBack="true" OnTextChanged="Code_TextChanged">
...
as my title says...
How do you make a LinkButton fire a POSTBACK (not ASYNCPOSTBACK) which is inside a GridView and is under an UpdatePanel?
My Scenario is this,
I have a grid. say table A, which populates a Linkbuttons with link to do Server.Transfer calls from Page1 to Page2.
I have a good reason why i am using a Server.Transfer be...
Hi All,
I have a textbox and a dropdown list on an aspx webform. The user would type in a number and then submit and the dropdown would be populated with values relevant to the typed word. If the user types a new term in the text box, I want to truncate the dropdown and when the user submits, it would submit only the text and no dropdow...
Hi all,
I have a webpage with one iframe and a button.
On Page Load event,
if (!Page.IsPostBack)
{
string sDocUrl = //some doucmen url
Iframe1.Attributes["src"] = sDocUrl;
}
When the page is reloaded (by clicking a button), this iframe is being
reloaded too. This iframe has a static data and doesn't need to be
reloaded everytime when...
I am calling this in the code-behind of a page loaded into a Shadowbox popup:
ScriptManager.RegisterStartupScript(this, this.GetType(),
"CloseScript", "parent.closeServiceOption();", true);
I know that the Javascript function is being called, since get the Alert() box pops up, and I can step through the code in the ...
This is a absurdly common issue and having exhausted all of the obvious solutions, I'm hoping SO can offer me some input... I have a UserControl inside a page which contains a repeater housing several controls that cause postback. Trouble is, all of the controls inside of the repeater never hit their event handlers when they postback, bu...
An update panel, a postback and jQuery. Sounds like a bad joke,
but here's my situation.
I've got two grids wrapped up in a MS update panel. The grids each
have buttons in them that cause postback events to happen. under one
grid is a div which is hidden by a jQuery function. And in one grid
is a hyperlink which can cause that hidden di...
I have more than one UpdatePanel inside a webform. Inside a UpdatePanel I have a button which triggers AsyncPostBack. According to my requirement I need to cancel any previous pending AsyncPostBack triggered by this button before triggering a new AsyncPostBack, but without aborting any other postback.
For instance when I cancel postback...
I have a web page that sends email to multiple users (online distribution list). After the submit button is clicked and the email is sent, a status page is shown listing how many emails were sent, errors, and other information. If the user clicks the back button, the email is resent. How can I prevent this?
NOTE: The browser DOES prompt...
I'm adding controls at run-time to the Page Form object.
Each control has an Id.
On postback, I want to be able to access these controls and their values.
Currently, when I do a postback, the form has no controls in the Form.Controls Collection.
How can I rectify this?
Is this only possible if you add the controls to the page every ...
I have a UserControl used for getting an exchange rate amount from user (bank manager) he prefer to be used by an account operation. Exchange rate can be loaded from central bank web service but just as a tip - final value is chosen by user.
It contains one asp:TextBox box and two asp:LinkButton - Get (exchange rate) and Approve (client...
My javascript code modifies some properties, visibility included. After postback, some properties stuck, others are "forgotten". Here I try to change the Text property of a textbox and the visibility property of a label to 'hidden'. After postback, the text is preserved, but the label is shown. I would very much like to keep the label hi...
Having a very strange issue regarding postback in ASP.NET. I have page dynamically populating DropdownLists on Page_Load, only if it's not a postback. I also have several textboxes on the page for user input.
If I postback, either by clicking a submit button or via a SelectedIndexChanged event, the textboxes maintain their values, but t...
Let's consider that I have an asp.net page which will go to the server after a client-side event and will do "some stuff" and show a return value of this process on the UI afterwords.
My question is, if I am working in the same domain, how should I decide between creating a web-service and calling that AND simply raising a post-back and...
Hi Group,
I would like to trigger a PostBack when the asp:LinkButton "addToCartButton" is clicked (see code below).
I have declared a PostBack Trigger with the asp:UpdatePanel "updPnlProductsList" (see code below).
<asp:Panel ID="pnlProductsList" runat="server" Visible="false">
<asp:UpdatePanel ID="updPnlProductsList" runat="server" U...
I have a Default.aspx page which loads a popup using JQuery Nyromodal popup.
Within the popup I have which needs to postback on clicking the button.
But when I click on the button in the popup window, URL in main window is replaced with popup window URL and also the data in modal popup is not posting back.
Thanks
...
We have a method on an asp.net page that is called on a button click. The problem is that the method take a long time to process. I've been asked to have the page call the method (or call the postback) and then display the jquery.ui dialog which will let the user know that this process could take a long time. I'm looking at serializing t...
In one article I was reading on ViewState, I saw a sentence saying that I should not fall into a mistake to believe that the value of a TextBox is stored in ViewState; it is stored in PostBack data.
From here what I understand is when I post back a web form, the input controls values are stored in HTTP Request body. Not in the Viewstate...