Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 11th, 2008, 08:37 AM
Registered User
 
Join Date: Nov 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to janakiraman
Default How to retain the value for the drop down.

Hi

I have a form view. Inside the form view I have a drop down. I do not use Object data source. Instead I assign the datasource at the code behind. If I change the value of the drop down I show a text box beside it and user can enter value. Upon onblur event of this text box I call a javascript and submit the page.
    Upon post back I once again bind the entered value and make the selected value as the entered value. If the user clicks the save link I could not get the selected of the drop down.

I even tried using javascript and I was able to successfully add the value to the drop down and make it selected. But when I look for the selected value I get nothing.

Please help me in this regard

Thanks
Janakiraman






Similar Threads
Thread Thread Starter Forum Replies Last Post
Button does not retain visible property mhshpk ASP.NET 2.0 Professional 2 July 18th, 2007 11:24 AM
Retain the value of Controls S_Dogra ASP.NET 1.0 and 1.1 Professional 1 January 31st, 2007 01:21 PM
How to retain radio button check asif_aslam ASP.NET 1.0 and 1.1 Professional 0 May 4th, 2006 06:10 AM
Retain form values qhong Javascript 1 May 13th, 2004 02:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.