PC Review


Reply
Thread Tools Rate Thread

adding a table to formview

 
 
JohnE
Guest
Posts: n/a
 
      17th Apr 2010
Have a situation in which the webform has a formview in it. It is all set up
per the user's request. As well as the Edit and Insert parts. Now they
decided to have it look like another webform that was done. That webform has
a table in it, but not a formview.

Now comes the embarrassing part; I cannot think of how I would go about
adding a table, at least 2 columns maybe 4 and 50 rows, with the form view
info in the table. I'm thinking it would be something like the following;

<table style="width: 100%">
<tr>
<td style="width: 115px">ID</td>
<td style="width: 4px">
<asp:Label ID="lblCRID" runat="server" Text="Label"
Width="60px" BackColor="Gainsboro"></asp:Label>
</td>
</tr>
etc
etc
</table>

I would have to do this thru all 50 rows in the Item template of the form
view. Also, I would have to repeat the process in the Edit and Insert
templates as well.

Is this all correct?

Thanks...John
 
Reply With Quote
 
 
 
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      17th Apr 2010
"JohnE" <(E-Mail Removed)> wrote in message
news:7BEC2410-1DFB-4D8A-A4A3-(E-Mail Removed)...

> Is this all correct?


It's certainly not the way I'd do it...
http://www.google.co.uk/search?sourc...q=asp:Repeater


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

 
Reply With Quote
 
JohnE
Guest
Posts: n/a
 
      17th Apr 2010


"Mark Rae [MVP]" wrote:

> "JohnE" <(E-Mail Removed)> wrote in message
> news:7BEC2410-1DFB-4D8A-A4A3-(E-Mail Removed)...
>
> > Is this all correct?

>
> It's certainly not the way I'd do it...
> http://www.google.co.uk/search?sourc...q=asp:Repeater
>
>
> --
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net
>


A repeater control?. Interesting. Please explain further...
 
Reply With Quote
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      17th Apr 2010
"JohnE" <(E-Mail Removed)> wrote in message
news:F978BB98-123F-43FA-BE88-(E-Mail Removed)...

> A repeater control?


Indeed. Since v1.0...


> Please explain further...


http://www.google.co.uk/search?sourc...q=asp:Repeater


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

 
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
Inserting from a asp:table in an asp:formview merrittr Microsoft ADO .NET 0 26th Jan 2008 06:30 AM
dynamically adding a FormView justin Microsoft ASP .NET 1 30th Apr 2007 09:39 PM
FormView formatted as Table popsovy@hotmail.com Microsoft ASP .NET 0 6th Nov 2006 09:28 PM
FormView items in a table Peter Zolja Microsoft ASP .NET 1 30th May 2006 09:41 AM
asp:table in formview not possible??? Leo Pape Microsoft ASP .NET 0 17th Mar 2006 11:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:52 AM.