PC Review


Reply
Thread Tools Rate Thread

Access to a DataGrid in MultiPage from C#

 
 
T.H.M
Guest
Posts: n/a
 
      21st Jul 2004
Hello
I have a web form with MultiPage that contain DataGrid
My HTML code in the aspx page:
<iewc:multipage id="MP1" style="Z-INDEX: 101; LEFT: 225px;
POSITION: . . ."/>
>iewc:PageView id="processData1/">


>aspataGrid id="DG2" style="Z-INDEX: 110; LEFT: 699px;

POSITION: absolute; TOP: 379px" unat="server">
</aspataGrid<
</iewc:PageView>
</iewc:multipage>
In the full HTML code I have more then one PageVive and
more then one DataGrid.
In my C# code I'm trying to fill the DataGrid in data from
the DB.

The C# code:
SqlConnection conn = new SqlConnection(. . .);
SqlCommand query = new SqlCommand("");
query = new SqlCommand("select . . .",conn);
conn.Open();
SqlDataReader dr;
dr = query.ExecuteReader();
DG2.DataSource = dr; א Error DG2 not recognize
DG2.DataBind(); א Error DG2 not recognize
dr.Close();
conn.Close();

How can I have access to the DataGrid that is defined in
the HTML from the cs file?
Thank you very much!!!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Access Make Multipage form with each page having different background image ghadley_00@yahoo.com Microsoft Access Forms 1 1st Nov 2005 04:33 PM
How to access Datagrid in a datagrid Raghuram Microsoft ASP .NET 1 16th May 2005 01:51 PM
HOW TO: showing datagrid in multipage (pageview) RedEagle Microsoft ASP .NET 0 20th Aug 2004 11:16 AM
Access to a DataGrid in MultiPage from cs T.H.M Microsoft C# .NET 2 22nd Jul 2004 12:23 PM
Access controls on a Multipage control Marc Robitaille Microsoft ASP .NET 1 12th Feb 2004 10:05 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:19 PM.