I have deleted page and started again...
item gridview1
item button...
No source because Im calling the source myself.
The stored procedure that executes in data base explorer are called.........usp_spcallA;
<%
@ Page Language="C#" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
script runat="server">
protected void Button1_Click(object sender, EventArgs e)
{
//this is conecting to database
SqlDataSource Databasest1000 = new SqlDataSource();
Databasest1000.ConnectionString =
ConfigurationManager.ConnectionStrings["Databasest1000ConnectionString1"].ToString();
Databasest1000.SelectCommandType =
SqlDataSourceCommandType.StoredProcedure;
Databasest1000.SelectCommand =
"usp_spcallA";
GridView1.DataSource = Databasest1000;
//GridView1.DataBind;
}
</
script>
<
html xmlns="http://www.w3.org/1999/xhtml" >
<
head runat="server">
<title>Untitled Page</title>
</
head>
<
body bgcolor=blue>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Style="z-index: 100; left: 43px; position: absolute;
top: 219px"
Text="press to load spA" Width="183px" OnClick="Button1_Click" />
<asp:GridView ID="GridView1" runat="server" Height="307px" Style="z-index: 102; left: 475px;
position: absolute; top: 130px"
Width="582px" OnDataBinding="Button1_Click">
</asp:GridView>
</div>
</form>
</
body>
</
html>
This compiles but gridview is not visible during runtime and on button click....grid does not become visible
The properties of the grid
........DataSourceID......clear
........DataBinding on clickevent property....button_clickevent
selectedindexchanged....clear
Connection string is fine so I think its just settings or binding?
Currently Reading Wrox ASP.NET 2.0 with c# page 534
any further suggestions for reading.......and dont say fishing books/