xhtmlConformance Element and Cassini

Today I was working with Watin, a framework for testing of web pages in .NET, using Cassini web server integrated in VS2005. I found a strange problem in referencing html control generated by asp.net.I saw that it create tags in this way:

<td class="width175px">
            <span id="ManageRichiesta1_Label3" class="lbl">Professione *</span>
        </td>

and some other controls in this way:

ManageRichiesta1$ChooseProfessionalCategories1$MasterTableSelectControl1$HierarchicControlSearch1$cntSearch$txtSearch 

and we had a method that process  that use "_" for process controls. It happened with Cassini Web Server, IIS generate ever control with "_" char.

So I found this this config element xhtmlConformance. I resolved the problem of "_" with Legacy option but my Ajax controls didn't postback correctly. For resolve I used

<xhtmlConformance mode="Strict" />

that is the most right way and I write different method where I control what is the web server by this method:

System.Diagnostics.Process.GetCurrentProcess().MainModule.ModuleName

:-((((((((((

Antonio 

 

 

Published 10 July 2007 09:29 AM by antrad
Filed under:

Comments

No Comments

This site

Search

Go

This Blog

Syndication

Sponsors

  • MaximumASP
  • Social Bookmarking
    Online Shopping
    asp.net hosting
    UK online local dating