Click here to Skip to main content
15,892,927 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: GridView dissapears when linking DropDown selection to it Pin
ballameharmurali17-Jul-07 20:38
ballameharmurali17-Jul-07 20:38 
Questionhow to make Gridview Editable? Pin
DKalepu17-Jul-07 18:26
DKalepu17-Jul-07 18:26 
AnswerRe: how to make Gridview Editable? Pin
Imran Khan Pathan17-Jul-07 18:35
Imran Khan Pathan17-Jul-07 18:35 
GeneralRe: how to make Gridview Editable? Pin
DKalepu17-Jul-07 19:03
DKalepu17-Jul-07 19:03 
GeneralRe: how to make Gridview Editable? Pin
Imran Khan Pathan17-Jul-07 19:29
Imran Khan Pathan17-Jul-07 19:29 
GeneralRe: how to make Gridview Editable? Pin
DKalepu17-Jul-07 19:36
DKalepu17-Jul-07 19:36 
Questionjavascript for dropdownlist...... Pin
Member 387988117-Jul-07 18:10
Member 387988117-Jul-07 18:10 
AnswerRe: javascript for dropdownlist...... Pin
Imran Khan Pathan17-Jul-07 19:00
Imran Khan Pathan17-Jul-07 19:00 
Hi
I am giving u sample code.U can change as per ur requirement.

I have two dropdown one for conurty and other for country language.
On click of country I bound its language using javascript.

See

function countries()<br />
{<br />
indx=document.getElementById('dd_country').value;<br />
<br />
if(indx=="US")<br />
    {<br />
    langauge=new Array("English","Español");<br />
    language_code=new Array("en","es");<br />
    }<br />
else if(indx=="AU" || indx=="UK" || indx=="HK" || indx=="IE" || indx=="SG")<br />
    {<br />
    langauge=new Array("English");<br />
    language_code=new Array("en");<br />
    }<br />
<br />
    opts=document.getElementById('dd_languages').options;<br />
    <br />
    for (a = opts.length; a >-1; --a) opts[a] = null;<br />
    <br />
    for (var i=0; i < langauge.length;++i){<br />
        languages(langauge[i],language_code[i],opts);<br />
  }<br />
}<br />
<br />
function languages(lng,cnd,opts)<br />
{<br />
<br />
    var optn=document.createElement("OPTION");<br />
    optn.text = lng;<br />
    optn.value = cnd;<br />
    opts.options.add(optn);<br />
}



asp:DropDownList ID="dd_country" runat="server" CssClass="SmallTxt1" Width="100px" onclick="countries();" >


Best Regard

Pathan

GOD HELP THOSE WHO HELP THEMSELVES

Questionresizing table column Pin
ankur123417-Jul-07 17:45
ankur123417-Jul-07 17:45 
AnswerRe: resizing table column Pin
N a v a n e e t h17-Jul-07 18:20
N a v a n e e t h17-Jul-07 18:20 
GeneralRe: resizing table column Pin
sidbaruah17-Jul-07 18:26
sidbaruah17-Jul-07 18:26 
Question_avascript instead of javascript Pin
Scent of a Knight17-Jul-07 14:40
Scent of a Knight17-Jul-07 14:40 
AnswerRe: _avascript instead of javascript Pin
Amit Kumar G17-Jul-07 14:47
Amit Kumar G17-Jul-07 14:47 
QuestionWebsitemap/Repeater Control Pin
Amit Kumar G17-Jul-07 14:10
Amit Kumar G17-Jul-07 14:10 
QuestionHandle MaxRequestLength error Pin
kjosh17-Jul-07 12:07
kjosh17-Jul-07 12:07 
AnswerRe: Handle MaxRequestLength error Pin
Venkatesh Mookkan17-Jul-07 16:26
Venkatesh Mookkan17-Jul-07 16:26 
Questionupload Pin
raquidd2217-Jul-07 11:54
raquidd2217-Jul-07 11:54 
Questionasp.net2/c# - skinned controls using themes Pin
foolios17-Jul-07 10:13
foolios17-Jul-07 10:13 
QuestionRemove lines from Gridview Pin
kjosh17-Jul-07 9:12
kjosh17-Jul-07 9:12 
AnswerRe: Remove lines from Gridview Pin
Tarakeshwar Reddy17-Jul-07 10:05
professionalTarakeshwar Reddy17-Jul-07 10:05 
QuestionHow to implement Audio Mixing on WebApplication Pin
raturi_raj17-Jul-07 8:29
raturi_raj17-Jul-07 8:29 
QuestionCall c# function in javascript tag Pin
keyboard warrior17-Jul-07 7:39
keyboard warrior17-Jul-07 7:39 
AnswerRe: Call c# function in javascript tag Pin
kubben17-Jul-07 8:09
kubben17-Jul-07 8:09 
Questionalert ,confirmation for a button click Pin
Archu13617-Jul-07 6:49
Archu13617-Jul-07 6:49 
AnswerRe: alert ,confirmation for a button click Pin
Vasudevan Deepak Kumar17-Jul-07 7:00
Vasudevan Deepak Kumar17-Jul-07 7:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.