• Register
0 votes

Problem :

I came across a problem as follows
if you set the autopostback property of a control to true, the page is posted back to the server
Any solution on this ?
6.9k points

1 Answer

0 votes

Solution :

The AutoPostBack = true permits control to post back to server. It is closely associated with an Event.


<asp:DropDownList id="id" runat="server" AutoPostBack="true" OnSelectIndexChanged="..."/>

This aspx page with the above mentioned drop down list does not need an asp:button to do the post back. When you change an option in the drop down list then the page gets posted back to the server.

Note : Default value of AutoPostBack on control is false.

36.1k points

Related questions

0 votes
1 answer 29 views
Problem : I am facing below error if I try to export datagrid to the excel. &ldquo;Control 'gridview1' of type 'gridview' must be placed inside a form tag with runat=server.&rdquo; Please find below my code : <form runat="server" id="form1"> <div runat="server" id=" ... TextBox> </form> My GridView is within the from tag with the runat="server", but still I am facing above error. How to fix this?
asked Feb 17 mphil 2.3k points
0 votes
1 answer 4 views
Problem: I am facing below strange looking error when I tried to add a script Manager to a password strength of AJAX toolkit. "Only one instance of a ScriptManager can be added to the page." I had added the password strength alongside the ... "RequiredFieldValidator10" ControlToValidate="Password"    ErrorMessage="Password is required." />   </ContentTemplate> </asp:UpdatePanel> </td> </tr>
asked 6 days ago Raphael Pacheco 2.6k points
0 votes
1 answer 535 views
Problem : I am facing the below error: Failed to load resource: the server responded with a status of 401 (Unauthorized) http://localhost/App/AngularJS/angular.min.js My project works fine on the localhost. But when I try to run it on the IIS (7.5) I often face ... read/write/modify access for the "IUSR" & "IIS_ISURS" users of my whole project. But still I am facing the same exception on my IIS.
asked Dec 24, 2019 alecxe 7.5k points
0 votes
1 answer 36 views
Problem : I have my newly created website. First time I was able to succesfully login. The default address: www.abc.com I typed above address on browser and it redirected me to my login page: www.abc.com/pages/landingpage.aspx When I entered my login credential and tried to log ... open my site number of tabs and the browsers but as soon as I am logged in to my site, I am getting the above error.
asked Jan 31 jwilliam 3.9k points
0 votes
1 answer 53 views
Problem : I have recently installed a website on my local machine using IIS 7 successfully. But when I tried to deploy it on the live server, I got a following error: "The page cannot be displayed because an internal server error has occurred" Nothing else. Using a same IIS 7 on live and also set to have the Detailed errors in Error Pages module, but still getting a same. What can be the reason?
asked Jan 28 jwilliam 3.9k points