Showing posts with label design. Show all posts
Showing posts with label design. Show all posts

Saturday, March 31, 2012

Server side includes

Most of my web sites use server side includes to insert pieces of HTML design into the top and bottom of a page.

This has always worked fine with dreamweaver but now I am using VS2005 It doesn't seem to open these includes when viewing the site pages and therefore cannot switch to the design view.

Is there a way around this as otherwise I am completely stuck with dreamweaver and I really want to switch over to .net.

David Meagor

http://FreeOnlineSurveys.com

In VS2005, you may useMaster Pages and Content Pages or usercontrols to replace the inclues you used in classic asp.

The master page feature looks useful but with 300 or so classic ASP pages which have yet to be converted this isn't going to be practical.

It's such a shame that MS haven't provided support for server side includes in their editor as macromedia have with dreamweaver - it seems like such a simple feature to implement.

David Meagor

http://freeonlinesurveys.com

Monday, March 26, 2012

Server Table Control where do we use it?

Does anybody know when do we use the table server control in asp.net 2.0

it seems hard to design staff with the server table control am i right?I only use them from server side code, if I want to create a table programmatically. I don't usually us them in my .aspx page. Sometimes I use the HtmlTable control when I wanted to dynamically hide the table from code-behind or add other control to it instead of using a placeholder.

If you use the Table control, it could use a specific adapter for render the correct output for the client that accesses the page. That could be one reason to use it.
I find it great to show and hide certain details in forms

like:

<asp:TableRow Visible="<%# User.IsInRole("Administrator") %
</asp:TableRow
Without haveing to rewrite any of my code behind logic
some accessibility features for disabled persons
(detection of browser)