Click here to Skip to main content
15,906,558 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralSuggestions Pin
thatraja2-May-11 5:48
professionalthatraja2-May-11 5:48 
QuestionStreamwriter on server Pin
vanikanc2-May-11 4:17
vanikanc2-May-11 4:17 
AnswerRe: Streamwriter on server Pin
vanikanc2-May-11 4:49
vanikanc2-May-11 4:49 
AnswerRe: Streamwriter on server Pin
David Mujica2-May-11 5:04
David Mujica2-May-11 5:04 
GeneralRe: Streamwriter on server Pin
vanikanc2-May-11 7:44
vanikanc2-May-11 7:44 
GeneralRe: Streamwriter on server Pin
David Mujica2-May-11 9:28
David Mujica2-May-11 9:28 
GeneralRe: Streamwriter on server Pin
vanikanc5-May-11 9:28
vanikanc5-May-11 9:28 
Questionhow can I bind its checked property to a database field, so that if it is checked "Y" should be stored in the database. If not checked then "N" should be stored. The field at the backend is of type (bit(1), not null) Pin
Vipinshishodia2-May-11 3:02
Vipinshishodia2-May-11 3:02 
Hi,

If the checkbox is placed inside a Templatefield, then to bind it to a field in the database
The syntax is:-
checked = '<%# Eval("stcAccepted")%>'

But, if I place the checkbox is on a webform (not in a datagrid 0r dataview), how can I bind its checked property to a database field, so that if it is true in the database checkbox is fetched as checked. If false then should be fetched as unchecked. The field at the backend is of type (char(1), not null).

Please, point to me to a good resource on the web which explains it in detail.
What code should be written to achieve this. I am using C# and sql serer 2008.

Thanks
AnswerRe: how can I bind its checked property to a database field, so that if it is checked "Y" should be stored in the database. If not checked then "N" should be stored. The field at the backend is of type (bit(1), not null) Pin
Ra-one2-May-11 3:42
Ra-one2-May-11 3:42 
Questiondropdown list Pin
lavinco2-May-11 0:55
lavinco2-May-11 0:55 
AnswerRe: dropdown list Pin
Prasanta_Prince2-May-11 3:07
Prasanta_Prince2-May-11 3:07 
QuestionExporting of data in excel sheet to sql server through asp.net Pin
saigirish1-May-11 23:53
saigirish1-May-11 23:53 
QuestionSub report+crystal report Pin
Ramkumar_S1-May-11 18:56
Ramkumar_S1-May-11 18:56 
AnswerRe: Sub report+crystal report Pin
Ravi Sant3-May-11 0:13
Ravi Sant3-May-11 0:13 
Questioncrystal report [modified] Pin
Ramkumar_S29-Apr-11 21:39
Ramkumar_S29-Apr-11 21:39 
AnswerRe: crystal report Pin
Sandeep Mewara29-Apr-11 22:31
mveSandeep Mewara29-Apr-11 22:31 
AnswerRe: crystal report Pin
RaviRanjanKr29-Apr-11 23:21
professionalRaviRanjanKr29-Apr-11 23:21 
AnswerRe: crystal report Pin
Sandeep Mewara30-Apr-11 21:25
mveSandeep Mewara30-Apr-11 21:25 
QuestionFCK Editor Configurations Pin
CodingLover28-Apr-11 18:56
CodingLover28-Apr-11 18:56 
AnswerRe: FCK Editor Configurations Pin
Tarakeshwar Reddy29-Apr-11 11:32
professionalTarakeshwar Reddy29-Apr-11 11:32 
AnswerRe: FCK Editor Configurations Pin
Ravi Sant3-May-11 0:55
Ravi Sant3-May-11 0:55 
Questiondynamic Report Pin
Ramkumar_S28-Apr-11 15:18
Ramkumar_S28-Apr-11 15:18 
AnswerRe: dynamic Report Pin
thatraja28-Apr-11 15:55
professionalthatraja28-Apr-11 15:55 
AnswerRe: dynamic Report Pin
Prasanta_Prince29-Apr-11 6:13
Prasanta_Prince29-Apr-11 6:13 
QuestionRefresh gridview after update with autocomplete Pin
vanikanc28-Apr-11 7:43
vanikanc28-Apr-11 7:43 

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.