Solved

ASP.NET Dropdownlist auto postback

Posted on 2009-05-14
6
488 Views
Last Modified: 2013-11-26
I have this dropdownlist which its selectedvalue is set as a datasource parameter. That dropdownlist is also set to auto postback to refresh the datasource and the binded grid. Everything works fine but how can I make the dropdownlist to retain it's value after the postback ?? Thanks
0
Comment
Question by:GPSAddict
6 Comments
 
LVL 6

Accepted Solution

by:
ViceroyFizzlebottom earned 250 total points
Comment Utility
Is the EnableViewState property set to True?
0
 

Author Comment

by:GPSAddict
Comment Utility
yup
0
 
LVL 4

Assisted Solution

by:j_s_kelley
j_s_kelley earned 250 total points
Comment Utility
Are you checking the value in the Page_Load or in the event for the DDL?  Sometimes, I have found that the value isn't available in the Page_Load, but it is in the event for the DDL.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 4

Expert Comment

by:j_s_kelley
Comment Utility
Also, are you doing initialization outside of an IsPostBack block.

0
 

Author Comment

by:GPSAddict
Comment Utility
No code is written...
<SelectParameters>

                <asp:ControlParameter ControlID="ddlCategory" Name="IFA_PCP_REC_CATEGORY_ID" 

                    PropertyName="SelectedValue" Type="Decimal" />

            </SelectParameters>

Open in new window

0
 
LVL 1

Expert Comment

by:PeteHopeMDA
Comment Utility
What does the code  look like for populating the DropDownList?

Are yo doing it in code behind?
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now