Retain Dropdown Selected Value After Postback Javascript

The following sections explain how to get the values on the post back in these controls. How to get a drop down list with the selected value across the Post back. I was trying to collect the seleted value from a dropdownlist which was in the repeater. TAGs: JavaScript, jQuery, HTML, DropDownList. How to keep DropDownList1 selected value after postback? How to set option: selected in multiple selects; How to stop default scrolling after postback? how to choose selected option in select/option in HTML? How to set selected dropdown option using jquery in a form with multiple selects? Javascript to hide selected option. I can reload the dropdown after postback but how do keep the value that was selected? Belos is the code I am using. NET MVC or ASP. Each control returns a pair of values, the singular selected value and a second long dictionary type string with more information on the control and its selected value. I have various controls on the page, & on a listbox control, listitem selection, page postbacks. How to keep/retain password value in the asp. First radio button is checked as default when loading the page. Jim_Stanley. dropdownlist delimma; Problem with dropdownlist and viewstate. There are couple of ways to make your jQuery work after async postback. I've used VB to create a page whereby if a certain value from a ddl is. here in second page if we click on "Cancel button" it come back to previous page and maintain the whatever the previous selected value in the drop down list using only "POSTBACKURL". Maintaining the selected value of a dropdownlist after postback I have these 2 dropdownlists, datalist control on a user control page, the model is that if a value is selected from the first dropdownlist, it uses the value to populate the second dropdownlist control and after selecting a value from the second dropdownlist control, the datalist. SSRS Parameter default value is blank when deployed to server Change CSS class name dynamically using javascript: Setting. DropDownList is completely empty after postback. I see that you do not restore selected values after a round trip to a server. Dropdownlist Get/Set Value: Get and set drop-down box selected value. In all browsers, except for IE, the component maintains the values selected by the user after a postback. The TextBox used along with the jQuery DatePicker is set as ReadOnly and hence it does not retain the value set on Client Side using jQuery DatePicker. I've used VB to create a page whereby if a certain value from a ddl is. Here's the problem as I see it: ViewState is off, and during the postback, DropDownList drops its selected value. August 30, when you select an option from the dropdown menu, your JS code is redirecting you to a new url. Description: By default tab selection is lost whenever a postback occurs on ASP. NET web server controls causes postback (Button,Imagebutton). net Dropdownlist selected index in changed; populating dropdownlist (asp. keep value selected in dropdownlist. New here? Start with our free trials. I know this is for security, but is there a way to keep the password?? Thank you. DropDownList, it's name property is the same as your model's property name, you pass a SelectList with you selected value, but in the UI it's not showing your expected selection. Get the text of the selected item. One using Hidden variables and the other using the __doPostBack() javascript method. If the post back is right, it will fetch a list of BookName from the database table based on the selected category (in the first ddl) and populate the second ddl. JavaScript. In this process we have to keep our drop down box selected to the option. For the demo, you can use the Employee Details table, which I have created before. At last I have covered how to get its index, text and value properties. net using c#, vb. In a nutshell since the Grid. Net; Maintain Bootstrap Accordion current pane state after PostBack in ASP. So if I have selected 3 drop down item then whenever I will open my form that 3 items must be present in the drop down field with ability to add or remove items from the drop down list. Join a community of over 2. Binding DropDownListFor from enum, database and some hard coded values in our previous article MVC dropdown binding best ways. is to use a plain old when my page use autopostback i lost the selected value from the above dropdown. while refresh page i need to maintain th. In this article I will explain how we can persist the variables created in JavaScript code across PostBacks. Dropdownmodelofthecar values are based on the year selected. why and how static variable retain their value after postback form ?. NET MVC components and productivity Dropdown Selected Value is not saved to the database and Postback after update does not occur. So for any issues you can comment on the video. 2)If i select Dropdownyear-2011 again. observableArray([]). But it doing postback but I don't want postback. This method will call automatically when we change the dropdown selected index or value. I have a Grid with bound checkbox column and dropdown editor provider. - To keep the radio button or checkboxes selected, we set a variable with the "checked" attribute for the selected button. pls advice. Please guide me. net Ajax asyncronus postback probs; Problem retaining values of dropdownlist controls after postback; Postback, session state ETC; Dynamically adding DropDownList - if I set ID. I can't figure out how to keep the option selected once the page has refreshed though. Select drop downs, refresh page onChange. Net page that tells whether or not the page is on its initial load or if a user has perform a button on your web page that has caused the page to post back to itself. net it won't maintain text if any postback happens like as shown below Snippets Javascript SQL. ready() code inside it. I have developed a sharepoint custom webpart, in which I have a combobox which includes some values like Mumbai, Chicago, Singapore. On "SelectedIndexChanged" event of the first dropdown, there is a postback, in order to fill the second dropdown according to the value selected in the first dropdown. Using prototype. Similar Messages: Web Forms :: Retain Value In FileUpload Control After Postback? Mar 27, 2010. I'm using your module and it's working nicely (thanks!) but we needed to do an ajax submit after this drop-down element was selected, so i added a line to the javascript file which triggers the onchange event of the original select Line 83: $('#'+select_id). by Christian Wenz. So, The datasource model values changes also be reflected with enable property into dropdownlist. MVC is doing all the postback through jquery and there is no server transfer of values so the tab value couldn't be stored in a hidden field Jquery - Maintain the selected tab after postback MCV4 Jquery. When I select the checkboxes and press submit on child window, the selected values are sent and populated in of parent. NET DropDownList to Enabled = False. The CascadingDropDown control in the AJAX Control Toolkit extends a DropDownList control so that changes in one DropDownList loads associated values in another DropDownList. Can you guys help me hwo to retain the values. NET DropDownList to Enabled = False. For the demo, you can use the Employee Details table, which I have created before. >> My code selects a value and then when it returns from postback it should still be their. It is currently setup to do a postback and that works, but even using caching the performance hit is bad. Effectively it looks like you can't change the display. Net page so we need some trick to retain the selected tab even after postback. Get the value of the selected item. At last I have covered how to get its index, text and value properties. JavaScript. The tag is in the master page. Please guide me. Expected Results: Click the dropdown arrow on the AreaOfRespASPxComboBox to change the search criteria and the list is shown to select another item. In web pages while form submission many time we commonly use drop-down list, this post explains how to get / fetch dropdown list selected value. dropdownlist delimma; Problem with dropdownlist and viewstate. Here Mudassar Ahmed Khan has explained how to get selected Text and Value of HTML Select DropDownList in OnChange event using JavaScript and jQuery. the value of the selected option: to select a drop down using JavaScript. I've used VB to create a page whereby if a certain value from a ddl is. So before it, if i had selected a file for upload & page. Eliminating Postbacks: Setting Up jQuery On ASP. We need a DropDownList control for our demo. NET MVC Postback - dropdownlist example - Altaf Khatri, Los Angeles - 10/04/2009 Here we can get the dropdownlist selected value by accepting it as part of. dropdownlist losing value on postback. SSRS Parameter default value is blank when deployed to server Change CSS class name dynamically using javascript: Setting. Net, jQuery, Bootstrap. NET Data Grid Control. Join a community of over 2. Here Mudassar Ahmed Khan has explained how to maintain or retain the selected (active) tab in Bootstrap Tabs on PostBack in ASP. 0; How To Bing GridView with Custom Class; passing data from javascript to asp. One using Hidden variables and the other using the __doPostBack() javascript method. session makes it easy to keep. cshtml) and maintaining dropdownlist state during postback some of them given below - Use viewbag property. asynchronous post back at selected index change of another dropdownlist. submit button. Binding DropDownListFor from enum, database and some hard coded values in our previous article MVC dropdown binding best ways. The dataSource value is be changed when you assigned as ko. One of the elements is a checkboxlist. Now let’s look at the code to bind the dropdown with plugin and retaining value on postback. When validating a form, to retain the initially filled value in a text box after the submit button has been clicked, we use value="" in the text. How can I achieve this. Maintain Bootstrap Accordion current pane state after PostBack in ASP. Maintain Selected Bootstrap Menu on MasterPage after PostBack using jQuery in ASP. Join a community of over 2. Options added to select list with JavaScript lost on postback. Hello guys, i'm using bootstarp for tabs, i've tried everything, but nothing seems to work, can someone please help me, this is the code I have so far, i took it from another forum, it work with jquery TAB, but not with bootstarp, can someone make it work for bootstarp or another way to prtevent chaging the app after post back? thanks. I have created a JSP page and i placed a dropDownList on. First radio button is checked as default when loading the page. when I select something from repeater, an asyc postback it is happen but the scroll is not maintain the position. I can get the dropdown loaded but after postback it is empty. I'm using your module and it's working nicely (thanks!) but we needed to do an ajax submit after this drop-down element was selected, so i added a line to the javascript file which triggers the onchange event of the original select Line 83: $('#'+select_id). On Selected Index change event of ddlTaskFrequency dropdown i want to load another drop down. What i want is in the first page,if we select any of the "drop down list item" then we click on submit button it's goes to second page. In this post, I am explaining how to bind dropdownlist in ASP. php, it contains two radio buttons. If you want to work with your postback data it should be restored after the Init event and be accessible at PreLoad or Load. postback, in order to fill the second dropdown according to the value selected in the first dropdown. So i need the help if. Javascript Select options. Is there a workaround for this behaviour? I use netadvantage v2010. Larry, As per your suggestion if you run the code and have multiple post back to the same page you end up with duplicate list box items. i dont understand this. observableArray([]). In this list, you find the ID of the control, as well as possible values it can post back. Building Cascading DropDownList in ASP. Can any one helpme out in stoping the PostBack. The other controls call __doPostBack Javascript function. Can anyone recommend a way to get POST data from a SELECT form dropdown? I have been using PHP to access a particular value from a set of form POST data by doing something like:. In this article I am going to discuss how to postback a form on ASP. Javascript Select options. 6m developers to have your questions answered on How to persist DropDownList selected index and value on postback from RadGrid FilterTemplate of UI for ASP. I'm trying to figure out if some of the Viewbag settings in the View can also be posted b. Jim_Stanley. Net using C# and VB. Here Mudassar Ahmed Khan has provided solution to a problem where the selected value of the jQuery DatePicker TextBox is lost after PostBack in ASP. Web Custom Control: getting a updated value on Load event after a postback; which values are sent with a postback? Event Handler doesn't fire immediately upon postback?. net Dropdownlist selected index in changed; populating dropdownlist (asp. August your code is rebinding the dropdown (again) and not setting the selected value. Maintain Client-Side Manipulated ListBox Values on Postback Hello, I'm building an application that uses the classic two-listbox setup where a user will select values from ListBox A and then click ">>" to move them to ListBox B. `val()` method. I'll cover the following topics in the code samples below: PageEventArgs, ASP. net cs code on How To Add Client Side code to to select Checkbo March (96) February (14). In this article I am going to discuss how to postback a form on ASP. I lose selected value in ASP dropdownlist after postback when a text box becomes visible after user selection Hello, I am new to ASP 3. I have set EnableViewState to true. fully customizable and a vast set of functions. Hello guys, i'm using bootstarp for tabs, i've tried everything, but nothing seems to work, can someone please help me, this is the code I have so far, i took it from another forum, it work with jquery TAB, but not with bootstarp, can someone make it work for bootstarp or another way to prtevent chaging the app after post back? thanks. But I was not able to get the dropdown list remain as the selected value. php, it contains two radio buttons. take a look how the server controls render as HTML, you'll figure out that the buttons do not call the __doPostBack Javascript function: For example add DropDownList and change AutoPostBacl property to true. When validating a form, to retain the initially filled value in a text box after the submit button has been clicked, we use value="" in the text. Eliminating Postbacks: Setting Up jQuery On ASP. TAGs: JavaScript, jQuery, HTML, DropDownList. I'm trying to figure out if some of the Viewbag settings in the View can also be posted b. How can I achieve this. Int(object) is obviously something that gets the integer value from a string. 0; How To Bing GridView with Custom Class; passing data from javascript to asp. This page describes how to set the selected item on an HTML dropdown list after the page has been rendered using javascript. Well, it's not that difficult to achieve it with Ajax. For example, both TextBox and DropDownList support event validation, and both have their own ID stored in the validation field. Through view model. NET Web Forms and Managing Data On The Client - DZone. because on every post back i am loosing the state of controls, Please help me. All works fine without "DropDownList". In web pages while form submission many time we commonly use drop-down list, this post explains how to get / fetch dropdown list selected value. When the Button is clicked, the Reset JavaScript function is executed. Net,Postback is a mechanism where the page contents are posted to the server due to an occurence of an event in a page control. We will see the example of how to get dropdown va. Select drop downs, refresh page onChange. Programmatically Preselect Dropdown Using Javascript. Thank you for the update. A postback occurs but i never enter the SelectedIndex_Changed event. But when I go back to the parent window and press refresh/click on the link to open child window, the value is gone!. DropDownList selected value lost on postback load as well any javascript function that are related to drop down list? causes the ddl to lose its selected. I can reload the dropdown after postback but how do keep the value that was selected? Belos is the code I am using. I work mostly on intranet stuff so not only I know that JS is enabled, what browser they are using (and what version), even what their default screen resolution is. You can populate the value from viewBag but to keep the value after postback its wise to use Model always. How to keep DropDownList1 selected value after postback? How to set option: selected in multiple selects; How to stop default scrolling after postback? how to choose selected option in select/option in HTML? How to set selected dropdown option using jquery in a form with multiple selects? Javascript to hide selected option. How can I get the value in a drop down menu. Looking for the help. php, it contains two radio buttons. cshtml) and maintaining dropdownlist state during postback some of them given below - Use viewbag property. For example: If ddlTaskFrequency text= Daily or Weekly i have to load another dro. And in case you clear all the items before adding them then you lose the selection made earlier. The problem is that the password field which has been filled up before is cleared after postback. When the Button is clicked, the Reset JavaScript function is executed. Join a community of over 2. SSRS Parameter default value is blank when deployed to server Change CSS class name dynamically using javascript: Setting. Here Mudassar Ahmed Khan has provided solution to a problem where the selected value of the jQuery DatePicker TextBox is lost after PostBack in ASP. I have built a custom from on the server using Rad controls that include a DropDownList. In this list, you find the ID of the control, as well as possible values it can post back. I have tried to put the ID of the dropdownlist control and its selected value in session variable and tried to set the state for the dropdownlist in item_created. Hi, I have a @Html. net mvc (mvc3, mvc4 or later razor syntax. I was trying to collect the seleted value from a dropdownlist which was in the repeater. So, I wrapped the gridview that is fed by the dropdownlist in an UpdatePanel, left the dropdownlist outside of the UpdatePanel, and then set up a trigger that causes the UpdatePanel to do a partial page postback. How to force a postback on a value change of a dropDownList. It looks like, if i select another value from DropDownList, the selected value isn't changed. For example: If ddlTaskFrequency text= Daily or Weekly i have to load another dro. I'm new at jQuery and I'm running into a problem where the value I select in a dropdownlist doesn't hold once the postback is hit by a button. Two dropdownlists are one is ddlcountry and another one is ddlstates. There are options like using AJAX callbacks on selectedIndex change of dropdownlist but sometimes it is needed that you postback the entire form and render it again. So for any issues you can comment on the video. Hi, I am new to jquery and had a basic question but I couldn't find out how to do this in the API. When validating a form, to retain the initially filled value in a text box after the submit button has been clicked, we use value="" in the text. If the value is different, it fires an ajax postback at the server (with the value of the selected item in the select box) and populates a div with the data returned and a new value which will be again compared to data returned by the webservice on the next setTimeout. Show selected value in dropdownbox after submit show the value which was selected before submit. net Ajax asyncronus postback probs; Problem retaining values of dropdownlist controls after postback; Postback, session state ETC; Dynamically adding DropDownList - if I set ID. One using Hidden variables and the other using the __doPostBack() javascript method. How to retain dropdown list selected value while refresh Hi All, I am using Drop down list with in update panel. Web Custom Control: getting a updated value on Load event after a postback; which values are sent with a postback? Event Handler doesn't fire immediately upon postback?. MVC is doing all the postback through jquery and there is no server transfer of values so the tab value couldn't be stored in a hidden field Jquery - Maintain the selected tab after postback MCV4 Jquery. To preserve the selected value after postback, my previous comment will be helpful. 6m developers to have your questions answered on Radcombobox not retaining selected value after postback of UI for ASP. Any help much appreciated!! I am trying the following code. The following sections explain how to get the values on the post back in these controls. For example: 1) Dropdownyear-2011 Dropdownmodelofthecar-listof cars. I need when clicking on second radio button to refresh the page and keep selection on second radio button, I am trying that as below, but it does not work. >> My code selects a value and then when it returns from postback it should still be their. I work mostly on intranet stuff so not only I know that JS is enabled, what browser they are using (and what version), even what their default screen resolution is. How to keep DropDownList1 selected value after postback? How to set option: selected in multiple selects; How to stop default scrolling after postback? how to choose selected option in select/option in HTML? How to set selected dropdown option using jquery in a form with multiple selects? Javascript to hide selected option. submit button. One to save and one to set the saved value. upon postback to keep the lists in sync on both ends. sir i m creating dropdown dynamically and bindinded it to the database but how to make default value --Select-- and how to remove selected dropdown value from next coming dropdown. when i m using the hiddenfield in the master pageit says it doesnt not exit in the page behind of the menu. ex: I selected Drop down list which contains year, if the user selected 2012 as year on post back of page it should be selected as 2012 value, in classic asp. ready() code inside it. I'm trying to figure out if some of the Viewbag settings in the View can also be posted b. In my last blog, I had attached a video that showed how to create a DropDownlist that's connected to a database. Web Custom Control: getting a updated value on Load event after a postback; which values are sent with a postback? Event Handler doesn't fire immediately upon postback?. Using a requests. Please guide me. Maintain Bootstrap Accordion current pane state after PostBack in ASP. JavaScript. I have built a custom from on the server using Rad controls that include a DropDownList. keep value selected in dropdownlist. Thank you in advance. Net Using jQuery and JSON Cascading DropDownList is a technique where we populate a child DropDownList based on the parent DropDownList selection. Net languages. By using this site, I'd like to maintain the selected value when I get my resulthow do I do that?. 6m developers to have your questions answered on Selected value is empty after postback of UI for ASP. In this article, we will see how to pass javascript values on postback and then access these values in your server side code. setItem("SelItem", selVal); SelItem is a variable in which we are setting the value of selVal. But on PostBack, the DropDownList controls have lost all the ListItem options not even the SelectedValue! items and since the selected value is based on the. php, it contains two radio buttons. Saving DropDownList Selected Value Across PostBack in MVC We will see how to keep. Here Mudassar Ahmed Khan has explained how to maintain or retain the selected (active) tab in Bootstrap Tabs on PostBack in ASP. when I use script manager, after postback event the multi-select dropdown goes to list-box. This article is in continuation of getting form element values using JavaScript series. When validating a form, to retain the initially filled value in a text box after the submit button has been clicked, we use value="" in the text. dropdownlist delimma; Problem with dropdownlist and viewstate. submit button. net Ajax asyncronus postback probs; Problem retaining values of dropdownlist controls after postback; Postback, session state ETC; Dynamically adding DropDownList - if I set ID. Here is the sample for this. sir i m creating dropdown dynamically and bindinded it to the database but how to make default value --Select-- and how to remove selected dropdown value from next coming dropdown. ready() code inside it. Get dropdown selected value from Code behind. I am having trouble with a dropdownlist and it's values not getting updated after postbacks. When the page first loads, controls on both UCs are set properly. The list does not drop down and display. Since the dropdown's items gets cleared after every postback there isn't any new item changed really so it makes sense. session makes it easy to keep. Hello guys, i'm using bootstarp for tabs, i've tried everything, but nothing seems to work, can someone please help me, this is the code I have so far, i took it from another forum, it work with jquery TAB, but not with bootstarp, can someone make it work for bootstarp or another way to prtevent chaging the app after post back? thanks. Below is my code for. I have a dropdownlist in side a gridview, Onselectedindexchanged I want to some action. If the dropdownlist is enabled, the selected value remains the same after a postback. of UI for ASP. MVC is doing all the postback through jquery and there is no server transfer of values so the tab value couldn't be stored in a hidden field Jquery - Maintain the selected tab after postback MCV4 Jquery. This method will call automatically when we change the dropdown selected index or value. I want to retain the value that was selected in Combo box even after a post back. by Christian Wenz. We can get selected text value from dropdown or asp. NET Web Forms and Managing Data On The Client - DZone. A dropdown list provides a method of selecting only one option from a lots of options while only using up as much space as a single option except while a selection is being made. when i m using the hiddenfield in the master pageit says it doesnt not exit in the page behind of the menu. Dynamically Created Controls Losing Data After Post-back or Retaining State for Dynamically Created Controls in ASP. DropdownList to preserve the value. What it didn’t show was how to capture the selected value in the DropDownlist. The value of the Page. asynchronous post back at selected index change of another dropdownlist. My dropdownlist: DropDownList selected value set by jQuery doesn't hold value at postback - jQuery Forum. I need some guidance on how to resolve this. Ignite UI JavaScript/HTML5 and ASP. Eliminating Postbacks: Setting Up jQuery On ASP. The onChange event never occurs so the second ddl does not get it's selected index changed to the same selected index of the first control. I need to retain its value in every postabck(. What it didn't show was how to capture the selected value in the DropDownlist. NET AJAX Grid. The other controls call __doPostBack Javascript function. NET Control (and retain state after postback mark up) - gist:1536344 // Check if we are disabled or enabling the test drop down list:. I have also covered how to specify different background color of every items of the DropDownList and how to generate DropDownList on the fly. The dropdownlist is loaded with crmservice calls to the entity on pageload in my asp. So for any issues you can comment on the video. If the value is different, it fires an ajax postback at the server (with the value of the selected item in the select box) and populates a div with the data returned and a new value which will be again compared to data returned by the webservice on the next setTimeout. For the purposes of this example we will use. Not sure if anyone every had this problem but my custom aspx page loses all the value and text when I hit the asp submit button. I know this is for security, but is there a way to keep the password?? Thank you Yes, you can add a "value" attribute to the password textbox on. So the question is. Introduction: In this article I am going to explain with example How to get DropDownList selected value/item and based on that value fetch the detailed data and show/display in GridView and Label/TextBox controls in asp. In web pages while form submission many time we commonly use drop-down list, this post explains how to get / fetch dropdown list selected value. I m using a asp. I have a dropdownlist in side a gridview, Onselectedindexchanged I want to some action. Int(object) is obviously something that gets the integer value from a string. For that you can store the selected valued delimited by comma in hidden field and restore the value on page load. I want to retain the value that was selected in Combo box even after a post back. So for any issues you can comment on the video. Download source code for Several Ways to populate DropDownList Controls. MVC is doing all the postback through jquery and there is no server transfer of values so the tab value couldn't be stored in a hidden field Jquery - Maintain the selected tab after postback MCV4 Jquery. When you create a dynamic control in a page and if you do a post-back then the created control will be lost. 0 I first started working with jquery tabs. Rishitnandan. The Scaffolding method. Sharepoint : Mantain dropdownlist selected value on refresh page I have an application page, which contain a listview, with a dropdownlist in it, first load of page: I have my Dropdownlist , when I select a value and hit f5 , I want to see the selected value (and. Net,Postback is a mechanism where the page contents are posted to the server due to an occurence of an event in a page control. Scenario 3. NET MVC that I didn't really get until today: HtmlHelpers controls (like. Naturally I came across with this problem of retaining tabs across postbacks. Eliminating Postbacks: Setting Up jQuery On ASP. Retain selected Jquery tab after postback It was with jquery-ui-1. Hi, I have a dropdownlist in side a gridview, Onselectedindexchanged I want to some action. How can i keep the dropdown value also remain selected after. Load on demand works fine, but when i select an item that's further in the list, the selection is lost after a postback and jumps to the first visible item in the list. Iam trying to make a dropdown select “sticky”, basically I need to retain the value of the dropdown select in a session variable, then use the session variable in the doprdown select, so that when the page is refreshed, the value is retained in the dropdown select. But if it for example want to work with a dropdownlist that has dynamically added data, then you need to load all values in the list before the ViewState tries to select what you selected in the control. Just get a value from asp:TextBox and asp:DropDownList and save it to sharepoint list item. I have a dropdownlist in side a gridview, Onselectedindexchanged I want to some action. The other controls call __doPostBack Javascript function. I try to save the selctedItem. How can i keep the dropdown value also remain selected after. dropdownlist losing value on postback. Using prototype. Common Dropdownlist Operation in ASP. It looks like, if i select another value from DropDownList, the selected value isn't changed. Here is the code for the select :. I've used VB to create a page whereby if a certain value from a ddl is. August 30, when you select an option from the dropdown menu, your JS code is redirecting you to a new url. I want to keep my drop down selected values after submit the form. - To keep the radio button or checkboxes selected, we set a variable with the "checked" attribute for the selected button. For example, a server button click or a Selected Index changed event when AutoPostBack value is set to true.
<