set focus issue in asp.net project..
hi
please help me to do that..
i have one form in asp.net.
In that, i have one dropdownlist box control
and near that one linkbutton "Add",
one hidden textbox is there.
when i click on Add button dropdown will hide and show textbox in their place.
i want to setfocus on that textbox without refreshing page or reloading page.
i have problem with refreshing contain after click on "Add".
so please help me to avoid this reloading or refreshing.
thanks in advance.
jack
jackparsana
Junior Poster in Training
54 posts since Sep 2010
Reputation Points: 10
Solved Threads: 1
use javascript for showhide dropdown and textbox...Using javascript you can change it without refreshing page.
document.getElementById("<%=txtShipping.ClientID%>").style.display = "none";
document.getElementById("<%=dropdownShipping.ClientID%>").style.display = "";
Thanks for reply all
@crishlay :
<%=txtShipping.ClientID%>
What is ClientID?
please help me.
Jack
jackparsana
Junior Poster in Training
54 posts since Sep 2010
Reputation Points: 10
Solved Threads: 1
on button click..
$("ddl").hide();
$("txtShow").show();
$('txtShow').focus();
dont forget to download jquery and
dont forget to add jquery refrence in your page !
hope that helps
dnanetwork
Practically a Master Poster
633 posts since May 2008
Reputation Points: 28
Solved Threads: 106
Oh... I find solution...
thanks dnanetwork
thank you very much..
jackparsana
Junior Poster in Training
54 posts since Sep 2010
Reputation Points: 10
Solved Threads: 1