Click here to Skip to main content
15,887,083 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionproblem with AutoCompleteExtender Pin
kimo code24-Jun-08 2:15
kimo code24-Jun-08 2:15 
AnswerRe: problem with AutoCompleteExtender Pin
Imran Khan Pathan24-Jun-08 3:33
Imran Khan Pathan24-Jun-08 3:33 
GeneralRe: problem with AutoCompleteExtender Pin
kimo code24-Jun-08 3:34
kimo code24-Jun-08 3:34 
QuestionJavascript for RadioButton? Pin
BalasubramanianK24-Jun-08 1:54
BalasubramanianK24-Jun-08 1:54 
AnswerRe: Javascript for RadioButton? Pin
Christian Graus24-Jun-08 1:56
protectorChristian Graus24-Jun-08 1:56 
GeneralRe: Javascript for RadioButton? Pin
BalasubramanianK24-Jun-08 2:16
BalasubramanianK24-Jun-08 2:16 
GeneralRe: Javascript for RadioButton? Pin
Christian Graus24-Jun-08 3:02
protectorChristian Graus24-Jun-08 3:02 
GeneralRe: Javascript for RadioButton? Pin
Imran Khan Pathan24-Jun-08 3:23
Imran Khan Pathan24-Jun-08 3:23 
Have you ever worked on javascript?
First of all javascript is case sensitive language so you can not define function as Function.

Are you using Radio Button list control if no then use RadioButtonList control and change your javascript as belove script

HTML Source code
[ this is an example. you can change it as per your requirement. here when I click on first radio button then textbox will be enable while on other radion button it will be disable ]

<asp:RadioButtonList ID="rblDate" runat="server" RepeatDirection="Horizontal" onclick="hideDateRange(this);">
<asp:ListItem Value="0">By date</asp:ListItem>
<asp:ListItem Value="1" Selected="True">Today</asp:ListItem>
<asp:ListItem Value="2">This week</asp:ListItem>
<asp:ListItem Value="3">This month</asp:ListItem>
<asp:ListItem Value="4">All</asp:ListItem>
</asp:RadioButtonList>

Javascript Code

function hideDateRange(obj)
{
if(document.getElementById('rblDate_0').checked)
document.getElementById('txtID').disabled=false;
else
document.getElementById('txtID').disabled=true;
}

Note : My radioButtonList control ID is rblDate and I want to enable textbox on firsl radio button check event so i have checked 'rblDate_0' id checked or not. You can set as per your requirement. and txtID is my textbox id.

regards
khan

please don't forget to vote on the post that helped you.
Questionimp Pin
niki_nilu24-Jun-08 1:28
niki_nilu24-Jun-08 1:28 
AnswerRe: imp Pin
Christian Graus24-Jun-08 1:55
protectorChristian Graus24-Jun-08 1:55 
AnswerRe: imp Pin
Guffa24-Jun-08 2:02
Guffa24-Jun-08 2:02 
AnswerRe: imp Pin
eyeseetee24-Jun-08 2:21
eyeseetee24-Jun-08 2:21 
Questionredirect iis to an asp.net subfolder Pin
Ayman Mashal24-Jun-08 0:50
Ayman Mashal24-Jun-08 0:50 
AnswerRe: redirect iis to an asp.net subfolder Pin
Christian Graus24-Jun-08 1:03
protectorChristian Graus24-Jun-08 1:03 
AnswerRe: redirect iis to an asp.net subfolder Pin
Abhijit Jana24-Jun-08 1:04
professionalAbhijit Jana24-Jun-08 1:04 
AnswerRe: redirect iis to an asp.net subfolder Pin
eyeseetee24-Jun-08 1:05
eyeseetee24-Jun-08 1:05 
GeneralRe: redirect iis to an asp.net subfolder Pin
Christian Graus24-Jun-08 1:57
protectorChristian Graus24-Jun-08 1:57 
AnswerRe: redirect iis to an asp.net subfolder Pin
Ayman Mashal24-Jun-08 2:00
Ayman Mashal24-Jun-08 2:00 
QuestionBased on current date have to enable only current week dates? Pin
Member 387988124-Jun-08 0:12
Member 387988124-Jun-08 0:12 
AnswerRe: Based on current date have to enable only current week dates? Pin
Christian Graus24-Jun-08 0:16
protectorChristian Graus24-Jun-08 0:16 
AnswerRe: Repeat Post! Pin
eyeseetee24-Jun-08 0:16
eyeseetee24-Jun-08 0:16 
GeneralRe: Based on current date have to enable only current week dates? Pin
Member 387988124-Jun-08 0:48
Member 387988124-Jun-08 0:48 
GeneralRe: Based on current date have to enable only current week dates? Pin
Christian Graus24-Jun-08 1:02
protectorChristian Graus24-Jun-08 1:02 
GeneralRe: Based on current date have to enable only current week dates? Pin
Member 387988124-Jun-08 1:20
Member 387988124-Jun-08 1:20 
GeneralRe: Based on current date have to enable only current week dates? Pin
eyeseetee24-Jun-08 2:19
eyeseetee24-Jun-08 2:19 

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.