Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamicaly fill web form with data from access
Message
From
11/09/2004 00:59:57
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
To
08/09/2004 12:00:13
William Metzener
Russell Mellon Analytical Services
Tacoma, Washington, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00940313
Message ID:
00941274
Views:
21
>I am trying to dynamicaly fill a web form from an access table, on load of my form i have the data i need but just cannot seem to find a way to fill the form with it, i am trying to put it into a table to even out the look of it. each user that logs in will get a different list populating this table. i was wondering if i need to write the html for this and then how do i write it in the load section of my form i am using c# in the background for my data access portion. the query to the database returns categories tied to multiple sub categories with a link that i want to use to direct the user to another web site. if anyone has any ideas let me know.
>
>please and thank you.

In the Page.Load event handler, assign the .Text properties of the server controls and you should be fine. Alternatively, you could bind each control's .Text property to the the variable/object that is holding the value from the database and call this.DataBind().

Assuming that you do not want to use a DataGrid, if you want to create an HTML table with many rows of data, check out the Repeater server control. To use it will require a small amount of hand-coded HTML, but once you learn how to use it, a lot of the quirks of Web Forms will make sense.

Note: To use the data binding method, the variable/object that is holding the value must be a Public (or it's equivalent in C#) property of the form class.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform