L
Luminousc
I'm getting my feet wet learning C# and .net from a VBScript
background. I have built a small application that uses custom 'info'
objects, each of which contains a single record from a SQL database. I
have bound an array of these objects to a datagrid and have been
trying to work within the limited confines of the built-in ASP.net
Datagrid control. When speaking with a colleague who has a C++
background he suggested that I create my own grid control. I've been
trying to do this by putting all the code that dimensions the array
and populates it into my codebehind and simply creating a 'for' loop
in my HTML code with a reference to each object in the array in html
table cells within the loop. My problem is I can't seem to access the
array object defined in the codebehind in the C# embedded in my HTML
code, I'm guessing that the line at the top of the page:
'<%@ Control Language="c#" AutoEventWireup="false"
Codebehind="RequestsGrid.ascx.cs"
Inherits="DTS_UI.Components.requestgrid"%>'
is supposed to take care of this but that doesn't seem to be the case.
Can anyone point out what I'm missing?
Luminousc
background. I have built a small application that uses custom 'info'
objects, each of which contains a single record from a SQL database. I
have bound an array of these objects to a datagrid and have been
trying to work within the limited confines of the built-in ASP.net
Datagrid control. When speaking with a colleague who has a C++
background he suggested that I create my own grid control. I've been
trying to do this by putting all the code that dimensions the array
and populates it into my codebehind and simply creating a 'for' loop
in my HTML code with a reference to each object in the array in html
table cells within the loop. My problem is I can't seem to access the
array object defined in the codebehind in the C# embedded in my HTML
code, I'm guessing that the line at the top of the page:
'<%@ Control Language="c#" AutoEventWireup="false"
Codebehind="RequestsGrid.ascx.cs"
Inherits="DTS_UI.Components.requestgrid"%>'
is supposed to take care of this but that doesn't seem to be the case.
Can anyone point out what I'm missing?
Luminousc