Questions tagged [autopostback]

autopostback is an attribute set on asp.NET web controls, indicating that interacting with them causes a post action in the browser.

312 questions
2
votes
4 answers

Password clearing on AutoPostBack in ASP.NET

I am using TextBox (in Password mode) for validation. In which I have to use AutoPostBack to verify the strength of password but unfortunately when ever the TextBox is auto posted all the values are getting cleared. Is there anyway in ASP.NET to…
Mal
  • 533
  • 1
  • 12
  • 27
2
votes
3 answers

customvalidator for dropdownlist not being invoked (apparently)

Writing a custom validator for a dropdownlist that is using autopostback. Seems to ignore the validation altogether. Why is it ignored and is there an easy fix? Note I did not use ControlToValidate asp.net:
elbillaf
  • 1,952
  • 10
  • 37
  • 73
2
votes
3 answers

Populating a DropDownList from another DropDownList using AJAX 3.5

I am using asp.net 3.5 with the ajax toolkit. The problem: I have a custom control with two drop down lists in an update panel. The first DDL has the property AutoPostBack="true" and upon selection the second DDL is populated. The issue is the…
Andee
  • 227
  • 1
  • 4
  • 14
2
votes
2 answers

MVC 2.0 Ajax: auto-submit on dropdown list causes normal postback

I am trying to add Ajax functionality to my MVC application. I want a form to post back asynchronously. Here's the form code: using (Ajax.BeginForm("SetInterviewee", "Date", routeValues, new AjaxOptions { UpdateTargetId = "divInterviewee" })) and I…
Cynthia
  • 2,100
  • 5
  • 34
  • 48
2
votes
1 answer

why does autopostback from button click duplicate part of url

Example: url is http://www.mydoman.com/test.aspx/88 I click an asp:Button which cause a postback, but now the url comes up: www.mydoman.com/test.aspx/test.aspx There is nothing special in the button, just id and runat. This only happens when I start…
BlooSki
  • 79
  • 6
2
votes
0 answers

ASP.NET: AutoPostBack affects cursor

I'm trying to make a web page with a login screen. I have 2 textboxes that are used to type the username and the password. I'm using an AJAX Update Panel, so in case that username doesn't exist (I'm using SQL Server), it makes visible a label that…
2
votes
1 answer

With 'AutoPostBack=false', how do I trigger the postback that would have executed after running some JavaScript?

With AutoPostBack=false, how do I trigger the postback that would have executed after running some JavaScript?
Matt
  • 25,943
  • 66
  • 198
  • 303
2
votes
3 answers

Second time click of a button inside updatePanel, the event does not fire in jQuery

In my aspx file, I have: In my JavaScript file I…
olidev
  • 20,058
  • 51
  • 133
  • 197
2
votes
2 answers

C#: Preventing AutoPostBack according to a confirmation dialog

I want to show a confirmation dialog when a specific value is selected in an asp:DropDownList. If the confirmation dialog returns false (cancel) then I want to prevent the AutoPostBack.
Nir
  • 3,963
  • 8
  • 37
  • 51
2
votes
2 answers

ASP.NET No postback on asp:ImageButton

I have an ASP page with an asp:DropDownList (with AutoPostBack="true") so that when the user changes it, it reload the appropriate data. Under that control i have a list of UserControls, that includes a tinymce editor (tied to an asp:TextBox) and an…
undef1
  • 33
  • 2
  • 6
2
votes
2 answers

Set focus back to the proper textbox after autopostback function (Page.SetFocus doesn't solve the issue)

Now, this MAY look a duplicate, but it's not. Every solution on the internet shows you how to get focus on the textbox that fired the event. But what if the user presses tab? The textbox that should have focus is the next one. So we do a workaround…
Lucas
  • 534
  • 1
  • 10
  • 29
2
votes
1 answer

How do i use an AutoPostback functionality for a radsearchbox?

By default, some of the telerik radcontrols are having autopostback option, but for radsearchbox, the auto postback functionality was not available, is it possible to achieve that in code?
Gene
  • 41
  • 3
2
votes
1 answer

My ASP.NET DropDownList is not working

I would like to make a DropDownList inside a panel. This is my code from the codebehind file. But if I execute it, it always says: "in DropdownList it is not allowed to make multiple selections." Do I have to do something with the autopostback? So…
aha364636
  • 365
  • 5
  • 23
2
votes
2 answers

How to fire DropDownList AutoPostBack only if all validations in a page are met

I've got in a page three filters. Two textboxes for dates (from and to) and a dropdownlist for a specific value. Well I have several validations for the dates filters and they all work as expected. the problem is that even if the validations are not…
eddy
  • 4,373
  • 16
  • 60
  • 94
2
votes
2 answers

C# GridView dynamically built columns with textboxes ontextchanged

My page is a bulk order form that has many products and various size options. I've got a gridview that has a 3 static columns with labels. There are then some dynamically built columns. Each of the dynamically built columns have a textbox in…
tnriverfish
  • 713
  • 2
  • 11
  • 19
1 2
3
20 21