|
-
Aug 28th, 2006, 10:40 AM
#1
Thread Starter
Addicted Member
What's wrong with this SQLDataSource Control?
I must be a plank, but I keep getting "expected )", "invalid expression term :", "expeced ," etc for line 8 (the sqldatasource line)
Code:
<%@ Page Language="c#" MasterPageFile="~/MasterPage.master" CodeFile="~/Default2.aspx.cs" Inherits="Default2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:GridView ID="GridView1" DataSourceID="SQLDataSource1" AutoGenerateColumns="False" runat="server">
</asp:GridView>
<asp:SqlDataSource ID="SQLDataSource1" ConnectionString="<%# ConnectionStrings:WroxUnited %>" runat="server"
SelectCommand="SELECT * FROM [Fixtures]"></asp:SqlDataSource>
</asp:Content>
-
Aug 28th, 2006, 11:37 AM
#2
Fanatic Member
Re: What's wrong with this SQLDataSource Control?
Post the exact text of the error you get.
-
Aug 29th, 2006, 10:50 AM
#3
Re: What's wrong with this SQLDataSource Control?
ConnectionString="<%$ ConnectionStrings: WroxUnited %>"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|