Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Bring in the same CSS for editform.aspx which is like renders like OOTB editform.aspx c#

$
0
0
Hi I have created a VS2010 list definition and I wanted to use a custom editform.aspx . I have done this succesful with c# behind which writes data back to the list
What I would like is use the same CSS as Sharepoint so it looks like OOTB Editform.aspx 
How and what CSS elements required to do this.

So far i have found this

<SharePoint:CssRegistration Name="forms.css" runat="server"/>

<table border="0" cellspacing="0" width="100%">
<tr>
<td width="190px" valign="top" class="ms-formlabel">
<H3 class="ms-standardheader">
<nobr>TitleXXXXXXXXXX<span class="ms-formvalidation"> *</span>
</nobr>
</H3>
</td>
<td width="400px" valign="top" class="ms-formbody">
hello there
</td>
</tr>
</table>

but it doesnt render like Sharepoint OOTB and am not sure.

As anyone got a sample code which get the CSS and apply classes ???? 

Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>