Re: [EZLINK] ASP.NET doubt
function Title(e) { document.getElementById('txttitle').value=e.options[e.selectedIndex].value } function Title(e) { document.getElementById('txttitle').value=e.options[e.selectedIndex].value }
Hi,
I understand that you need display country name in the textbox when user select places from the dropdown. I believe now you did in the back end to display in the textbox. so the page getting refresh.
You need to do it thru javascript.
Step:1
First you should set postback=false in the dropdwon list.
Step:2
drptitle.Attributes.Add("onchange", "javascript:Title(this);")
drptitle-dropdownlist name
Step:3
In the html you need place the below code function Title(e) { document.getElementById('txttitle').value=e.options[e.selectedIndex].value }
<SCRIPT language="javascript" type="text/javascript">
function Title(e)
{
document.getElementById('txttitle').value=e.options[e.selectedIndex].value
}
</SCRIPT> function Title(e) { document.getElementById('txttitle').value=e.options[e.selectedIndex].value }
function Title(e) { document.getElementById('txttitle').value=e.options[e.selectedIndex].value } function Title(e) { document.getElementById('txttitle').value=e.options[e.selectedIndex].value }
Note: 'txttitle'- is textbox name.
i hope this will work.
Regards,
Vetriselvan.N
mahboob abrar <abrar2001@yahoo.com> wrote:
hi ,
there is a feature called AJAX, this will help you in partial rendering of ASPX pages
http://ajax.asp.net/default.aspx?tabid=47
goodluck,
abrar
----- Original Message ----
From: paparao nambala <sacrednpr@yahoo.com>
To: ezlink@yahoogroups.com
Sent: Friday, December 15, 2006 9:33:37 PM
Subject: Re: [EZLINK] ASP.NET doubt
hi
i have experiance in asp.net i am not getting u r
problem exactly give full decsription
Paparao Nambala
Tean lead
connectnext software solutions
--- 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
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
[Non-text portions of this message have been removed]
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
[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: