• 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 5 3
6,930 points

Please log in or register to answer this question.

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.

9 7 4
38,600 points

Related questions

0 votes
1 answer 71 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, 2020 mphil 2.3k points
0 votes
1 answer 4 views
Problem: As I previously stated in my question, I am having difficulty learning. Could someone help assist me in completing my project?
asked Apr 1 rakib1 51.3k points
0 votes
0 answers 2 views
Problem: I am geeting this message from my server. Secure connection failed the connection to the server was reset while the page was loading.
asked Mar 26 PkGuy 13.1k points
0 votes
1 answer 144 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, 2020 jwilliam 3.9k points
0 votes
1 answer 69 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, 2020 jwilliam 3.9k points
0 votes
1 answer 57 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 Aug 1, 2020 Raphael Pacheco 4.9k points
0 votes
0 answers 3 views
Problem: i need some help about this problem you are not authorized to view this page due to invalid authentication headers.
asked Mar 17 Rohit kr 15k points
0 votes
1 answer 1.9K 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
1 vote
1 answer 52 views
Problem : I want to create the simple user control that should be the slider. When I try to add the AjaxToolkit SliderExtender to my user control I usually get below error: Server Error in '/' Application. The Controls collection cannot be modified because ... control and also tried adding the textbox and the slider extender to my placeholder programmatically but I am still facing the above error.
asked Dec 14, 2019 alecxe 7.5k points
0 votes
1 answer 28 views
How can you find the mime type of a file based on the file signature, not the extension in .Net? I want a simple way to get a mime type where the file extension is incorrect or not given, something similar?
asked Aug 29, 2020 Aliza313 720 points