Click here to Skip to main content
15,901,853 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Trying to get around the logic of for loop and if statement!! Pin
N a v a n e e t h24-Jun-08 4:20
N a v a n e e t h24-Jun-08 4:20 
GeneralRe: Trying to get around the logic of for loop and if statement!! Pin
eyeseetee24-Jun-08 4:37
eyeseetee24-Jun-08 4:37 
GeneralRe: Trying to get around the logic of for loop and if statement!! Pin
windhopper24-Jun-08 5:02
windhopper24-Jun-08 5:02 
GeneralRe: Trying to get around the logic of for loop and if statement!! Pin
windhopper24-Jun-08 5:03
windhopper24-Jun-08 5:03 
GeneralRe: Trying to get around the logic of for loop and if statement!! Pin
eyeseetee24-Jun-08 5:05
eyeseetee24-Jun-08 5:05 
GeneralRe: Trying to get around the logic of for loop and if statement!! Pin
eyeseetee24-Jun-08 5:06
eyeseetee24-Jun-08 5:06 
AnswerRe: Trying to get around the logic of for loop and if statement!! Pin
Guffa24-Jun-08 5:25
Guffa24-Jun-08 5:25 
QuestionDisplaying no of records per page using crystal reports [modified] Pin
mcmilan24-Jun-08 3:20
mcmilan24-Jun-08 3:20 
QuestionHow to add custom properties in windows NTFS file system using .net Pin
kaushik_Manoj24-Jun-08 3:19
kaushik_Manoj24-Jun-08 3:19 
AnswerRe: How to add custom properties in windows NTFS file system using .net Pin
Ashfield24-Jun-08 3:34
Ashfield24-Jun-08 3:34 
Questionhow to insert fckeditor value into database in asp.net Pin
rohit tiwary24-Jun-08 3:16
rohit tiwary24-Jun-08 3:16 
AnswerRe: how to insert fckeditor value into database in asp.net Pin
Christian Graus24-Jun-08 3:18
protectorChristian Graus24-Jun-08 3:18 
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 

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.