P
Priyal
Hi,
I am using VisualStudio 2008 and Sql server 2000..
I have one website where i got many check boxes...
I am able to store the value of the checkbox and retrieve when i want to
edit..
Now sql 2000 store value as True and False for checked and notchecked...
Now what i want to do is.. i want to store value as y if checkbox is checked
and n if checkbox is notchecked..
And when i retrieve i need to see my checkbox ticked if it got value y and
not ticked if it got value n in sql 2000 database.
Currently i use this to retrieve
<asp:CheckBox ID = "chksw1" runat = "server" Checked = <%# partnerrow("sw1")
%>></asp:CheckBox>
And i use this string to insert value of checkbox into database.
insertsql = "UPDATE tbltest SET sw1='" & chksw1.Checked & "', sw2= '" &
chksw2.Checked & "' WHERE merchantid ='" & id & "'"
Any help will be appreciated.
Regards
Priyal
I am using VisualStudio 2008 and Sql server 2000..
I have one website where i got many check boxes...
I am able to store the value of the checkbox and retrieve when i want to
edit..
Now sql 2000 store value as True and False for checked and notchecked...
Now what i want to do is.. i want to store value as y if checkbox is checked
and n if checkbox is notchecked..
And when i retrieve i need to see my checkbox ticked if it got value y and
not ticked if it got value n in sql 2000 database.
Currently i use this to retrieve
<asp:CheckBox ID = "chksw1" runat = "server" Checked = <%# partnerrow("sw1")
%>></asp:CheckBox>
And i use this string to insert value of checkbox into database.
insertsql = "UPDATE tbltest SET sw1='" & chksw1.Checked & "', sw2= '" &
chksw2.Checked & "' WHERE merchantid ='" & id & "'"
Any help will be appreciated.
Regards
Priyal