Click here to Skip to main content
16,011,685 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to save the last changes you have made with your page Pin
monafr8112-Nov-07 1:20
monafr8112-Nov-07 1:20 
QuestionMaster Pages, is the entire concept misleading? Pin
nowensone11-Nov-07 12:40
nowensone11-Nov-07 12:40 
AnswerRe: Master Pages, is the entire concept misleading? Pin
Christian Graus11-Nov-07 12:48
protectorChristian Graus11-Nov-07 12:48 
GeneralRe: Master Pages, is the entire concept misleading? Pin
nowensone11-Nov-07 13:21
nowensone11-Nov-07 13:21 
GeneralRe: Master Pages, is the entire concept misleading? Pin
Christian Graus11-Nov-07 13:50
protectorChristian Graus11-Nov-07 13:50 
GeneralRe: Master Pages, is the entire concept misleading? Pin
nowensone11-Nov-07 14:12
nowensone11-Nov-07 14:12 
GeneralRe: Master Pages, is the entire concept misleading? Pin
Christian Graus11-Nov-07 15:32
protectorChristian Graus11-Nov-07 15:32 
QuestionAdding CheckBox in ASP.NET Pin
Zeeshan Ahmed Memon11-Nov-07 10:20
Zeeshan Ahmed Memon11-Nov-07 10:20 
Dear Programmers,

I need your help. I am developing a project in ASP.NET in which I am using VB.NET as Language. I want to add CheckBox in DataGrid. Even I am succeded in showing the checkbox in Datagrid but I am unable to give the user opportunity to select the checkboxes. The checkbox field directly checks or unchecks the checkbox by getting data from one of the column of my database. My database is in SQL Server 2000.
Please help me. I am also sending the scripting code below.

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<pre>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head2" runat="server">
<title>CheckBoxField Example</title>
</head>
<body>
<form id="form2" runat="server">

<h3>CheckBoxField Example</h3>

<asp:gridview id="AuthorsGridView"
datasourceid="AuthorsSqlDataSource"
autogeneratecolumns="False"
runat="server">

<columns>

<asp:boundfield datafield="au_lname"
headertext="Last Name"/>

<asp:checkboxfield datafield="contract"
text="Contract"
headertext="Contract"/>

</columns>

</asp:gridview>

<!-- This example uses Microsoft SQL Server and connects -->
<!-- to the Pubs sample database. -->
<asp:sqldatasource id="AuthorsSqlDataSource"
selectcommand="SELECT [au_lname], [au_fname], [address], [city], [state], [zip], [contract] FROM [authors]"
connectionstring="server=localhost;database=pubs;integrated security=SSPI"
runat="server">
</asp:sqldatasource>

</form>
</body>
</html>
</pre>

please check the code and tell me where i am doing mistake so that i shall correct it. Please Remember that I am using Visual Studio 2005 as an editor to code ASP.NET.
If you solve the problem then please inform me on the following ID:
zeeshan_st2003@yahoo.com

Thankyou.

Waiting for your reply.

One of your Programmer Friend,
Zeeshan Ahmad.
AnswerRe: Adding CheckBox in ASP.NET Pin
Tokorie11-Nov-07 15:03
Tokorie11-Nov-07 15:03 
AnswerRe: Adding CheckBox in ASP.NET Pin
Michael Sync11-Nov-07 15:19
Michael Sync11-Nov-07 15:19 
QuestionDatalist problem Pin
komplexb11-Nov-07 8:11
komplexb11-Nov-07 8:11 
QuestionGrid CheckBox Column with javascript Pin
Ahmad Adnan11-Nov-07 3:49
Ahmad Adnan11-Nov-07 3:49 
AnswerRe: Grid CheckBox Column with javascript Pin
Michael Sync11-Nov-07 4:41
Michael Sync11-Nov-07 4:41 
AnswerRe: Grid CheckBox Column with javascript Pin
Prateek G11-Nov-07 19:51
Prateek G11-Nov-07 19:51 
QuestionDownload Dialog box , Encoding problem Pin
Simit Kulkarni11-Nov-07 2:24
Simit Kulkarni11-Nov-07 2:24 
AnswerRe: Download Dialog box , Encoding problem Pin
Michael Sync11-Nov-07 4:35
Michael Sync11-Nov-07 4:35 
QuestionHow to use the 'OR' Condition Pin
Kurian_Kurian10-Nov-07 23:11
Kurian_Kurian10-Nov-07 23:11 
AnswerRe: How to use the 'OR' Condition Pin
Michael Sync10-Nov-07 23:15
Michael Sync10-Nov-07 23:15 
AnswerRe: How to use the 'OR' Condition Pin
Dave Doknjas11-Nov-07 15:19
Dave Doknjas11-Nov-07 15:19 
AnswerRe: How to use the 'OR' Condition Pin
SunithaNallana11-Nov-07 19:15
SunithaNallana11-Nov-07 19:15 
QuestioniWeb Setup Pin
Ahmad Adnan10-Nov-07 22:22
Ahmad Adnan10-Nov-07 22:22 
QuestionFile path problem Pin
G.K.M.10-Nov-07 20:32
G.K.M.10-Nov-07 20:32 
AnswerRe: File path problem Pin
Mustafa Ismail Mustafa11-Nov-07 2:17
Mustafa Ismail Mustafa11-Nov-07 2:17 
QuestionI have an aspx app which needs to post data to a form and read the response. Pin
B.A10-Nov-07 19:49
B.A10-Nov-07 19:49 
AnswerRe: I have an aspx app which needs to post data to a form and read the response. Pin
Michael Sync10-Nov-07 20:10
Michael Sync10-Nov-07 20:10 

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.