Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Probem with Web Form

Status
Not open for further replies.

Cpreston

MIS
Mar 4, 2015
972
GB
Hi

I am very new to this and have been following a training document. I hade my asp net web form working ok and displaying data ok

After a close down and open again I am now getting this problem below when I try and run it, Line 12 is highlighted in red. I cannot find out what is causing this, I have checked all the settings but cant seem to find the problem, could someone advise (in simple terms) how I can fix this please. Thanks


Server Error in '/' Application.

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1061: 'ASP.default_aspx' does not contain a definition for 'GridView1_SelectedIndexChanged' and no extension method 'GridView1_SelectedIndexChanged' accepting a first argument of type 'ASP.default_aspx' could be found (are you missing a using directive or an assembly reference?)

Source Error:




Line 10: Date:<asp:TextBox ID="textDate" runat="server" Height="29px" Width="259px"></asp:TextBox>
Line 11: <asp:Button ID="Submit" runat="server" Text="Submit" />
Line 12: <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
Line 13: DataSourceID="CRMSQL" Width="1234px" AllowPaging="True"
Line 14: AllowSorting="True" BackColor="White" BorderColor="#999999" BorderStyle="None"


Source File: c:\SSIS\web\CRMweb\Default.aspx Line: 12


 
You probably have a syntax error in your HTML markup.. post all of the markup for us to look at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top