Click here to Skip to main content
15,891,033 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Need to Set Readonly Property to ChildControls Pin
Dinesh Mani10-Dec-09 0:26
Dinesh Mani10-Dec-09 0:26 
Questionmembership provider Pin
mylogics9-Dec-09 19:21
professionalmylogics9-Dec-09 19:21 
AnswerRe: membership provider Pin
_Damian S_9-Dec-09 20:29
professional_Damian S_9-Dec-09 20:29 
AnswerRe: membership provider Pin
CoderOnline9-Dec-09 21:12
CoderOnline9-Dec-09 21:12 
GeneralRe: membership provider Pin
mylogics9-Dec-09 23:03
professionalmylogics9-Dec-09 23:03 
GeneralRe: membership provider Pin
CoderOnline10-Dec-09 1:00
CoderOnline10-Dec-09 1:00 
AnswerRe: membership provider Pin
sashidhar9-Dec-09 21:15
sashidhar9-Dec-09 21:15 
QuestionCheckboxfield in GridView Pin
Illegal Operation9-Dec-09 13:58
Illegal Operation9-Dec-09 13:58 
Hi!

How can I create a ItemTemplate Checkbox that that gets the data from a database and display only the checkboxes and not the TRUE or FALSE text.

The Code I currently have looks like this:

<asp:TemplateField>
<ItemTemplate>
<asp:Checkbox id="chkLunch" runat=Server Text='<%# (DataBinder.Container, "IsLunch")%>'></CheckBox>
</ItemTemplate>
</asp:TemplateField>


If I change the "Text" to "Checked" I get a Cast error.

Can anyone please help?

Illegal Operation

AnswerRe: Checkboxfield in GridView Pin
Suresh Suthar9-Dec-09 17:33
professionalSuresh Suthar9-Dec-09 17:33 
GeneralRe: Checkboxfield in GridView Pin
Illegal Operation9-Dec-09 17:41
Illegal Operation9-Dec-09 17:41 
AnswerRe: Checkboxfield in GridView Pin
Abhijit Jana9-Dec-09 19:38
professionalAbhijit Jana9-Dec-09 19:38 
GeneralRe: Checkboxfield in GridView Pin
Anurag Gandhi9-Dec-09 19:48
professionalAnurag Gandhi9-Dec-09 19:48 
GeneralRe: Checkboxfield in GridView Pin
Abhijit Jana9-Dec-09 19:59
professionalAbhijit Jana9-Dec-09 19:59 
JokeRe: Checkboxfield in GridView Pin
sashidhar9-Dec-09 21:29
sashidhar9-Dec-09 21:29 
AnswerRe: Checkboxfield in GridView Pin
Anurag Gandhi9-Dec-09 19:45
professionalAnurag Gandhi9-Dec-09 19:45 
GeneralRe: Checkboxfield in GridView Pin
Illegal Operation10-Dec-09 11:57
Illegal Operation10-Dec-09 11:57 
AnswerRe: Checkboxfield in GridView Pin
Abhishek Sur9-Dec-09 21:29
professionalAbhishek Sur9-Dec-09 21:29 
QuestionMASTERPAGE AND FIND CONTROL BY TYPE Pin
Member 30826659-Dec-09 4:59
Member 30826659-Dec-09 4:59 
AnswerRe: MASTERPAGE AND FIND CONTROL BY TYPE Pin
Abhijit Jana9-Dec-09 6:37
professionalAbhijit Jana9-Dec-09 6:37 
Questionweb service Pin
ellllllllie9-Dec-09 4:12
ellllllllie9-Dec-09 4:12 
AnswerRe: web service Pin
AlexeiXX39-Dec-09 8:00
AlexeiXX39-Dec-09 8:00 
QuestionASP.NET 2005 / both Javascript and Anthem (ajax ctrls) stopped working. Pin
alexvw9-Dec-09 4:08
alexvw9-Dec-09 4:08 
QuestionMake row editable of a grid view Pin
Amit Patel19859-Dec-09 3:52
Amit Patel19859-Dec-09 3:52 
AnswerRe: Make row editable of a grid view Pin
Abhijit Jana9-Dec-09 6:06
professionalAbhijit Jana9-Dec-09 6:06 
Questionhow to implement MVVM design pattern in asp.net Pin
Hassan Amaar9-Dec-09 0:21
Hassan Amaar9-Dec-09 0:21 

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.