Click here to Skip to main content
15,910,872 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Regular Expression for link in vb.net label. Pin
Not Active18-Apr-10 15:16
mentorNot Active18-Apr-10 15:16 
AnswerRe: Regular Expression for link in vb.net label. Pin
Member 412548018-Apr-10 17:26
Member 412548018-Apr-10 17:26 
QuestionHow to check email existence with asp.net Pin
Shahriar Iqbal Chowdhury/Galib18-Apr-10 9:15
professionalShahriar Iqbal Chowdhury/Galib18-Apr-10 9:15 
AnswerRe: How to check email existence with asp.net Pin
Not Active18-Apr-10 11:44
mentorNot Active18-Apr-10 11:44 
Questiontransferring files Pin
leone18-Apr-10 8:44
leone18-Apr-10 8:44 
AnswerRe: transferring files Pin
michaelschmitt18-Apr-10 10:42
michaelschmitt18-Apr-10 10:42 
AnswerRe: transferring files Pin
Michel Godfroid18-Apr-10 19:46
Michel Godfroid18-Apr-10 19:46 
QuestionRadGrid keeping textboxes in sync with bounddata column? Pin
Steve Holdorf18-Apr-10 8:27
Steve Holdorf18-Apr-10 8:27 
AnswerRe: RadGrid keeping textboxes in sync with bounddata column? Pin
daveyerwin18-Apr-10 8:35
daveyerwin18-Apr-10 8:35 
GeneralRe: RadGrid keeping textboxes in sync with bounddata column? Pin
Steve Holdorf18-Apr-10 9:13
Steve Holdorf18-Apr-10 9:13 
GeneralRe: RadGrid keeping textboxes in sync with bounddata column? Pin
daveyerwin18-Apr-10 12:49
daveyerwin18-Apr-10 12:49 
GeneralRe: RadGrid keeping textboxes in sync with bounddata column? Pin
Steve Holdorf18-Apr-10 13:15
Steve Holdorf18-Apr-10 13:15 
QuestionCan I Bind method to the control? Pin
marijus518-Apr-10 5:34
marijus518-Apr-10 5:34 
AnswerRe: Can I Bind method to the control? Pin
Brij18-Apr-10 6:20
mentorBrij18-Apr-10 6:20 
GeneralRe: Can I Bind method to the control? Pin
marijus518-Apr-10 7:18
marijus518-Apr-10 7:18 
GeneralRe: Can I Bind method to the control? Pin
Brij18-Apr-10 7:58
mentorBrij18-Apr-10 7:58 
QuestionIssue with WebToolBox.DatePicker... Pin
<<Tash18>>18-Apr-10 3:39
<<Tash18>>18-Apr-10 3:39 
AnswerRe: Issue with WebToolBox.DatePicker... Pin
Sandeep Mewara18-Apr-10 5:26
mveSandeep Mewara18-Apr-10 5:26 
QuestionForcing full postback in UpdatePanel Pin
paper6718-Apr-10 3:04
paper6718-Apr-10 3:04 
AnswerRe: Forcing full postback in UpdatePanel [modified] Pin
daveyerwin18-Apr-10 4:42
daveyerwin18-Apr-10 4:42 
GeneralRe: Forcing full postback in UpdatePanel Pin
paper6718-Apr-10 8:57
paper6718-Apr-10 8:57 
GeneralRe: Forcing full postback in UpdatePanel Pin
daveyerwin18-Apr-10 12:11
daveyerwin18-Apr-10 12:11 
QuestionInvalid column names in asp.net application with sql server Pin
Lessobvious18-Apr-10 0:48
Lessobvious18-Apr-10 0:48 
Hello,

I have been creating a simple gridview in an asp.net application connected to sql server. Everthing works fine on the local development site, when I deploy I get the following error.

Invalid column name 'ClientID'.
Invalid column name 'ContractorID'.
Invalid column name 'ProjectType'.
Invalid column name 'HideProject'.
Invalid column name 'StartOnSite'.
Invalid column name 'Completion'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Invalid column name 'ClientID'.
Invalid column name 'ContractorID'.
Invalid column name 'ProjectType'.
Invalid column name 'HideProject'.
Invalid column name 'StartOnSite'.
Invalid column name 'Completion'.

The gridview has been created using visual studio 2008, without modification, and points to a view based on 3 tables. I have re-created both the gridview and tables several times. The view was scripted from the local sql server on the remote server, using Create View with SET QUOTED_IDENTIFIER ON and also turned off. I have removed all parameters, so theres nothing that could trip up the query. The query runs fine on the remote server when I look at it with Management Server. I have also tried changing all the fields on the gridview to template fields, so I can see the bindings and check for upper and lower cases, and everything is fine. I have checked through lots of articles and this is usually due to missing columns on the view or table, or upper and lower cases in the mark up; but they are all fine and work in the development environment?
This is driving me mad. Since the view runs on the server without problems, it must be the asp.net gridview thats tripping out. But I can't see it.

Here is the gridview markup.
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" <br />
    BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" <br />
    CellPadding="3" CssClass="menutxt" DataKeyNames="ProjectID" <br />
    DataSourceID="ProjectListing" GridLines="Vertical"><br />
    <RowStyle BackColor="#EEEEEE" ForeColor="Black" /><br />
    <Columns><br />
        <asp:BoundField DataField="ProjectID" HeaderText="ProjectID" ReadOnly="True" <br />
            SortExpression="ProjectID" /><br />
        <asp:BoundField DataField="ClientID" HeaderText="ClientID" <br />
            SortExpression="ClientID" /><br />
        <asp:BoundField DataField="ProjectName" HeaderText="ProjectName" <br />
            SortExpression="ProjectName" /><br />
        <asp:BoundField DataField="ContractorID" HeaderText="ContractorID" <br />
            SortExpression="ContractorID" /><br />
        <asp:BoundField DataField="ProjectType" HeaderText="ProjectType" <br />
            SortExpression="ProjectType" /><br />
        <asp:BoundField DataField="Description" HeaderText="Description" <br />
            SortExpression="Description" /><br />
        <asp:CheckBoxField DataField="HideProject" HeaderText="HideProject" <br />
            SortExpression="HideProject" /><br />
        <asp:BoundField DataField="StartOnSite" HeaderText="StartOnSite" <br />
            SortExpression="StartOnSite" /><br />
        <asp:BoundField DataField="Completion" HeaderText="Completion" <br />
            SortExpression="Completion" /><br />
        <asp:BoundField DataField="CompanyName" HeaderText="CompanyName" <br />
            SortExpression="CompanyName" /><br />
    </Columns><br />
    <FooterStyle BackColor="#CCCCCC" ForeColor="Black" /><br />
    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" /><br />
    <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" /><br />
    <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" /><br />
    <AlternatingRowStyle BackColor="#DCDCDC" /><br />
</asp:GridView><br />
<asp:SqlDataSource ID="ProjectListing" runat="server" <br />
    ConnectionString="<%$ ConnectionStrings:ASPNETDBConnectionString %>" <br />
    SelectCommand="SELECT [ProjectID], [ClientID], [ProjectName], [ContractorID], [ProjectType], [Description], [HideProject], [StartOnSite], [Completion], [CompanyName] FROM [About_VProjectList]"><br />
</asp:SqlDataSource>


What school boy error am I making that I just can't see?
AnswerRe: Invalid column names in asp.net application with sql server Pin
Not Active18-Apr-10 1:07
mentorNot Active18-Apr-10 1:07 
GeneralRe: Invalid column names in asp.net application with sql server Pin
Lessobvious18-Apr-10 2:35
Lessobvious18-Apr-10 2:35 

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.