Saturday, December 16, 2006

Re: [EZLINK] ASP.NET doubt

1) Set Auto Post Back = false


or you can add something like

dropdown1.Attributes.Add("onchange", "AssignValue();")


Put Something like below

and then in javascript for "Onchange" event in Drop Down List HTML part

function AssignValue()
{
var e = document.getElementById("dropdown1"); // select element
var strCountry = e.options[e.selectedIndex].value;
document.getElementById("textbox1").value = strCountry
}


I hope this will fit for you.

Come back if you have any more clarification. Or Point me if I am wrong.

thanks
ashok parameswaran


gourish sohoni <gourish_sohoni@yahoo.com> wrote:
Hi Bala,

One way to work around for this is u need to create a
array in the code behind page with respective values
and then use javascript to display text in on change
of ddl.

Thanks
Gourish
--- Bala <vidubala7579@yahoo.com.sg> wrote:

> Any ASP.NET expert there!! How to stop the page from
> refreshing when item in Dropdown is selected.
> I have problem with dropdownlist. In aspx page has a
> dropdown and a textbox.
> The DDL holds the place name and txt holds the
> country names.
> as a particular place is selected from DDL,
> corresponding country is displayed in the txt
> correctly. i set autopostback to true.
> Whenever i select the place from the DDL the page is
> refreshed. How to stop the page from refreshing.
>
>
> ---------------------------------
>
> Real people. Real questions. Real answers. Share
> what you know.
>
> [Non-text portions of this message have been
> removed]
>
>

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

http://mail.yahoo.com


K.Ashok Parameswaran,
COM-LINE,K.L.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

http://mail.yahoo.com


[Non-text portions of this message have been removed]


Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/ezlink/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/ezlink/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:ezlink-digest@yahoogroups.com
mailto:ezlink-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
ezlink-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/