Imane,
Is the control's AUTOPOSTBACK property set to FALSE?
Eliezer
On Wed, 2 Mar 2005 02:53:16 -0800 (PST), imane elfechtani
<[EMAIL PROTECTED]> wrote:
>
> Hello friends,
>
> I have problem: when i choose from a drop down menu in my aspx page ( the
> drop down gets its values from the database), the page reloads, and i don't
> want it to ..because when it does reload, i loose the selection that I have
> made.
> The statement to populate the drop down list is put in the (!IsPostBack),
> here is my code:
>
> private void Page_Load(object sender, System.EventArgs e)
> {
> if(!IsPostBack)
> {
> //Get the culture ID
> cultureID = Application["CultureId"].ToString();
>
> // Populate the DDL
> sqlStr= "SELECT cityId,cityName FROM VM_CITY where cultureId =
> '"+cultureID+"'";
> bindData.BindDdl(sqlStr,"cityName","cityId",citiesDdl);
> }
>
> }
>
> Anyone can help please?
>
> Regards
>
> Imane
>
>
> ---------------------------------
> Celebrate Yahoo!'s 10th Birthday!
> Yahoo! Netrospective: 100 Moments of the Web
>
> [Non-text portions of this message have been removed]
>
> Yahoo! Groups Links
>
>
>
>
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/