Click here to Skip to main content
15,917,645 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDisplaying database content / best practices Pin
PGumbo4-Jan-07 13:41
PGumbo4-Jan-07 13:41 
AnswerRe: Displaying database content / best practices Pin
Mike Ellison4-Jan-07 14:05
Mike Ellison4-Jan-07 14:05 
AnswerRe: Displaying database content / best practices Pin
Not Active4-Jan-07 15:46
mentorNot Active4-Jan-07 15:46 
QuestionASP.NET master pages Pin
anikhil4-Jan-07 12:17
anikhil4-Jan-07 12:17 
AnswerRe: ASP.NET master pages Pin
Chris Buckett4-Jan-07 21:24
Chris Buckett4-Jan-07 21:24 
QuestionExport to excel Pin
felopater4-Jan-07 11:04
felopater4-Jan-07 11:04 
AnswerRe: Export to excel Pin
saravanan054-Jan-07 12:12
saravanan054-Jan-07 12:12 
Questioncheck1 not declared Pin
luvdairish4-Jan-07 8:26
luvdairish4-Jan-07 8:26 
I'm getting the error check1 not declared. It is used as a id for my checkbox. I tried delcaring it (don't understand why I should have to), but that didn't work. Any suggestions....code below:

1 <%@ Page Language="VB" %>
2
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <%@ Import Namespace="System.Data.OleDb" %>
5
6 <script runat="server">
7 sub Page_Load
8 Dim dbconn, sql, dbcomm, dbread
9 dbconn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data source=" & Server.MapPath("Custodial.mdb"))
10 dbconn.Open()
11 sql = "SELECT * FROM Products"
12 dbcomm=New OleDbCommand(sql,dbconn)
13 dbread=dbcomm.ExecuteReader()
14 customers.DataSource=dbread
15 customers.DataBind()
16 dbread.Close()
17 dbconn.Close()
18 End Sub
19
20 Sub Check(ByVal sender As Object, ByVal e As EventArgs)
21
22 If check1.checked Then
23 mess.Text += "chk1.text"
24 End If
25
26
27 End Sub
28
29 </script>
30
31 <html>
32 <body>
33
34 <form id="Form1" runat="server">
35 <asp:Repeater id="customers" runat="server">
36
37 <HeaderTemplate>
38 <table border="1" width="100%">
39 <tr bgcolor="#b0c4de">
40 <th>Product Name</th>
41 <th>Select</th>
42 <th>Quantity</th>
43 </tr>
44 </HeaderTemplate>
45
46 <ItemTemplate>
47 <tr bgcolor="#f0f0f0">
48 <td><%#Container.DataItem("ProductName")%> </td>
49 <td><asp:CheckBox id="check1" runat="server" OnCheckedChanged="Check" AutoPostBack=true/></td>
50 <td><asp:TextBox id="Qty" maxlength=3 runat="server" />
51 </td>
52 </tr>
53 </ItemTemplate>
54
55 <FooterTemplate>
56 </table>
57 </FooterTemplate>
58
59 </asp:Repeater>
60
61 <asp:label id="mess" runat="server"/>
62
63 </form>
64
65 </body>
66 </html>
67



AnswerRe: check1 not declared Pin
ednrgc4-Jan-07 9:33
ednrgc4-Jan-07 9:33 
AnswerRe: check1 not declared Pin
Christian Graus4-Jan-07 11:45
protectorChristian Graus4-Jan-07 11:45 
AnswerRe: check1 not declared Pin
nagendra rao s.v.4-Jan-07 18:42
nagendra rao s.v.4-Jan-07 18:42 
QuestionN-Tier question [modified] Pin
Marcus J. Smith4-Jan-07 7:47
professionalMarcus J. Smith4-Jan-07 7:47 
AnswerRe: N-Tier question Pin
Mike Ellison4-Jan-07 14:14
Mike Ellison4-Jan-07 14:14 
GeneralRe: N-Tier question Pin
Marcus J. Smith5-Jan-07 2:25
professionalMarcus J. Smith5-Jan-07 2:25 
GeneralRe: N-Tier question Pin
Mike Ellison8-Jan-07 6:24
Mike Ellison8-Jan-07 6:24 
QuestionSeeking advice Pin
Keith Andersch4-Jan-07 6:15
Keith Andersch4-Jan-07 6:15 
AnswerRe: Seeking advice Pin
ednrgc4-Jan-07 6:40
ednrgc4-Jan-07 6:40 
GeneralRe: Seeking advice Pin
Keith Andersch4-Jan-07 7:22
Keith Andersch4-Jan-07 7:22 
QuestionForum Software Pin
gvirden4-Jan-07 5:55
gvirden4-Jan-07 5:55 
AnswerRe: Forum Software Pin
Vasudevan Deepak Kumar4-Jan-07 6:08
Vasudevan Deepak Kumar4-Jan-07 6:08 
AnswerRe: Forum Software Pin
gvirden4-Jan-07 10:11
gvirden4-Jan-07 10:11 
Questionreg. database connection thru .bat file Pin
montu33774-Jan-07 5:00
montu33774-Jan-07 5:00 
AnswerRe: reg. database connection thru .bat file Pin
Vasudevan Deepak Kumar4-Jan-07 6:09
Vasudevan Deepak Kumar4-Jan-07 6:09 
QuestionCharacter Report (text Report) Pin
Haseeb Mukhtar4-Jan-07 2:49
Haseeb Mukhtar4-Jan-07 2:49 
AnswerRe: Character Report (text Report) Pin
ednrgc4-Jan-07 3:57
ednrgc4-Jan-07 3:57 

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.