<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>FAQ - Frequently Asked Questions</title><link>http://forums.asp.net/13.aspx</link><description>Your question has probably already been answered. Look here for some great answers!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Deprecated Items and Newer Constructs</title><link>http://forums.asp.net/thread/3310662.aspx</link><pubDate>Fri, 24 Jul 2009 07:05:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3310662</guid><dc:creator>Dhaliwal</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3310662.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=3310662</wfw:commentRss><description>&lt;p&gt;&lt;b&gt;vcsjones,&lt;br /&gt;
&lt;br /&gt;
&lt;/b&gt;A very thoughtful post, but about name and id attribute, I was
under an impression that id is used to specify the unique id of a
control where as name specifies the name of a control. I normally use
these 2 in javascript in such way:&lt;br /&gt;
&lt;br /&gt;
id- when I look for a single control&lt;br /&gt;
name - when I look for group of controls&lt;br /&gt;
&lt;br /&gt;
the function in javascript that can be used for these are :&lt;br /&gt;
&lt;br /&gt;
document.getElementById(&amp;#39;&amp;#39;) for id &lt;br /&gt;
document.getElementsByName(&amp;#39;&amp;#39;) for name&lt;br /&gt;
&lt;br /&gt;
How come the name attribute is Deprecated, where as
document.getElementsByName(&amp;#39;&amp;#39;) is available in intellisense of
javascript in vs-2008. &lt;br /&gt;
and&lt;br /&gt;
How can id replace the need for name when we can have same name for many controls where as id should be unique&lt;br /&gt;
&lt;br /&gt;
ref: http://www.w3schools.com/TAGS/tag_a.asp&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Deprecated Items and Newer Constructs</title><link>http://forums.asp.net/thread/2592793.aspx</link><pubDate>Mon, 01 Sep 2008 11:30:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2592793</guid><dc:creator>mathewhadley</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2592793.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=2592793</wfw:commentRss><description>&lt;p&gt;The advantages of ``strict syntax&amp;#39;&amp;#39; over the legacy FTL syntax are:&lt;/p&gt;
    &lt;div class="itemizedlist"&gt;
&lt;ul&gt;&lt;li&gt;&lt;p&gt;Since all &amp;lt;#&lt;i&gt;...&lt;/i&gt;&amp;gt; and &amp;lt;/#&lt;i&gt;...&lt;/i&gt;&amp;gt; are reserved for FTL:
     &lt;/p&gt;    &lt;div class="itemizedlist"&gt;
&lt;ul&gt;&lt;li&gt;&lt;p&gt;We can introduce new directives without breaking backward compatibility.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;We can detect if you made a typo, i.e. &amp;lt;#inculde &lt;i&gt;...&lt;/i&gt;&amp;gt; is treated as parse-time error, rather than silently treated as simple text.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;It
is easier for third-party tools to handle templates (e.g. do syntax
highlighting), especially since they don&amp;#39;t have to know about the new
directives introduced with new releases.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Templates are more readable, since it is easier to spot &amp;lt;#...&amp;gt; tags embedded into HTML or other markup.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;    &lt;/div&gt;
&lt;/li&gt;&lt;li&gt;&lt;p&gt;&amp;lt;# and &amp;lt;/#
is illegal XML (except in CDATA sections), and illegal in almost all
other SGML applications, so they can&amp;#39;t interfere with the tags used in
the static text parts (e.g. if you have include element in the generated XML).&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;    &lt;/div&gt;&lt;p&gt;





-------------------------------------------------------------------&lt;br /&gt;mathew hadley&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;a target="_blank" title="”http://www.drivenwide.com”"&gt;
 
  Normal
  0
  
   
   
   
   
  
  MicrosoftInternetExplorer4
 




 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:&amp;quot;Table Normal&amp;quot;;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:&amp;quot;&amp;quot;;
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:&amp;quot;Times New Roman&amp;quot;;}

&lt;span style="font-size:12pt;font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;interactive marketing&lt;/span&gt;&lt;/a&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Deprecated Items and Newer Constructs</title><link>http://forums.asp.net/thread/2584832.aspx</link><pubDate>Wed, 27 Aug 2008 21:50:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2584832</guid><dc:creator>ratkiley</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2584832.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=2584832</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;The id attribute can be used instead.&amp;nbsp; This has the added value that every id must be unique within a page.&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.w3schools.com/TAGS/tag_a.asp"&gt;http://www.w3schools.com/TAGS/tag_a.asp&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;for example:&lt;/p&gt;&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;a&lt;/span&gt;&lt;span class="attr"&gt; id=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Location1&amp;quot;&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class="tag"&gt;a&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Deprecated Items and Newer Constructs</title><link>http://forums.asp.net/thread/1770361.aspx</link><pubDate>Mon, 25 Jun 2007 06:56:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1770361</guid><dc:creator>EOTB</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1770361.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1770361</wfw:commentRss><description>&lt;p&gt;Hi Guys,&lt;/p&gt;
&lt;p&gt;This maybe slightly off topic, but I have found that the &amp;lt;a name=&amp;quot;..... construct is also deprecated, as with the &amp;lt;map name=&amp;quot;.....&lt;/p&gt;
&lt;p&gt;Problem is, I am trying to programically code that when a button is click and the page is posted back, I want&amp;nbsp;to scroll the page down to a pre-defined point. In pure HTML you used the following to perform this function:&amp;nbsp;&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;a&lt;/span&gt;&lt;span class="attr"&gt; name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Location1&amp;quot;&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class="tag"&gt;a&lt;/span&gt;&amp;gt;
........
&amp;lt;&lt;span class="tag"&gt;a&lt;/span&gt;&lt;span class="attr"&gt; href=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;#Location1&amp;quot;&lt;/span&gt;&amp;gt;Move to Location 1&amp;lt;/&lt;span class="tag"&gt;a&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;Does anyone know how to achieve this in ASP.net VB code?&lt;/pre&gt;&lt;pre class="coloredcode"&gt;Thanks for your help&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;/pre&gt;</description></item><item><title>Re: Deprecated Items and Newer Constructs</title><link>http://forums.asp.net/thread/1734457.aspx</link><pubDate>Fri, 01 Jun 2007 04:14:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1734457</guid><dc:creator>thuhue</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1734457.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1734457</wfw:commentRss><description>&lt;p&gt;Try this: style=&amp;quot;white-space:nowrap&amp;quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Deprecated Items and Newer Constructs</title><link>http://forums.asp.net/thread/1734243.aspx</link><pubDate>Thu, 31 May 2007 23:26:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1734243</guid><dc:creator>bantionyou</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1734243.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1734243</wfw:commentRss><description>&lt;p&gt;Hi, for nowrap Newer Construct: Use the CSS property “word-wrap&amp;quot; is not working.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can not find CSS property “word-wrap&amp;quot; when i write style........&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please guide for this.&lt;/p&gt;</description></item><item><title>Re: Deprecated Items and Newer Constructs</title><link>http://forums.asp.net/thread/1520515.aspx</link><pubDate>Fri, 05 Jan 2007 20:21:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1520515</guid><dc:creator>NewToDev</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1520515.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1520515</wfw:commentRss><description>&lt;p&gt;Hi Kevin,&lt;/p&gt;
&lt;p&gt;Margin-left and&amp;nbsp;Magrin-right at "auto" only&amp;nbsp;get&amp;nbsp;a table&amp;nbsp;centered. if you want a left aligned or right aligned talbe,&amp;nbsp;&amp;nbsp;then set margin-left: 0 or margin-right: 0.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers&lt;img src="http://forums.asp.net/emoticons/emotion-2.gif" alt="Big Smile" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Deprecated Items and Newer Constructs</title><link>http://forums.asp.net/thread/1520493.aspx</link><pubDate>Fri, 05 Jan 2007 20:09:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1520493</guid><dc:creator>vcsjones</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1520493.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1520493</wfw:commentRss><description>Thanks! I updated it to use your suggestion.</description></item><item><title>Re: Deprecated Items and Newer Constructs</title><link>http://forums.asp.net/thread/1520488.aspx</link><pubDate>Fri, 05 Jan 2007 20:04:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1520488</guid><dc:creator>NewToDev</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1520488.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1520488</wfw:commentRss><description>&lt;h3&gt;&lt;font face=Arial&gt;"table&lt;/font&gt;&lt;/h3&gt;
&lt;p class=MsoNormal&gt;&lt;font size=2&gt;&lt;font face=Verdana&gt;&lt;b&gt;align&lt;/b&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Newer Construct: Use the CSS property “text-align”. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class=MsoNormal&gt;&lt;font face=Verdana&gt;"text-align" doesn't work the same way&amp;nbsp;as align in restrict mode, it only works on child elements of table but not the table itself. &lt;/font&gt;&lt;/p&gt;
&lt;p class=MsoNormal&gt;&lt;font face=Verdana&gt;The way to get table centered is to set table's&amp;nbsp;left margin and right margin at "auto".&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Deprecated Items and Newer Constructs</title><link>http://forums.asp.net/thread/1494978.aspx</link><pubDate>Tue, 12 Dec 2006 21:25:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1494978</guid><dc:creator>vcsjones</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1494978.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1494978</wfw:commentRss><description>&lt;img src="http://forums.asp.net/emoticons/emotion-1.gif" alt="Smile" /&gt; No problem. I do that all the time. And to answer your original question, none of the event attributes have been depricated. Though&amp;nbsp;VS might tell otherwise if the event isn't in a specific schema.</description></item><item><title>Re: Deprecated Items and Newer Constructs</title><link>http://forums.asp.net/thread/1494701.aspx</link><pubDate>Tue, 12 Dec 2006 17:41:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1494701</guid><dc:creator>RSewell</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1494701.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1494701</wfw:commentRss><description>Never mind, nix all that.&amp;nbsp; Funny how you can stare at a typo for months and not see it.&amp;nbsp; It took posting the error message here and then correcting it before I realized that VS2005 is right: attribute 'onmouse&lt;strong&gt;&lt;u&gt;m&lt;/u&gt;&lt;/strong&gt;over' is &lt;em&gt;indeed&lt;/em&gt; not a valid attribute of any element.&amp;nbsp; (sigh)&amp;nbsp; &lt;img src="http://forums.asp.net/emoticons/emotion-10.gif" alt="Embarrassed" /&gt;</description></item><item><title>Re: Deprecated Items and Newer Constructs</title><link>http://forums.asp.net/thread/1494676.aspx</link><pubDate>Tue, 12 Dec 2006 17:13:28 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1494676</guid><dc:creator>RSewell</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1494676.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1494676</wfw:commentRss><description>&lt;p&gt;What about events?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I've got a page I've converted from ASP to ASP.NET 2.0 that uses onmouseover and onmouseout events on an anchor tag.&amp;nbsp; VS2005 tells me "Validation (XHTML 1.0 Transitional) Attribute 'onmouseover' is not a valid attribute of element 'a'" and the events don't fire in the browser.&amp;nbsp; However, I have the exact same code in an XHTML 1.0 Transitional ASP page and the event fires there.&lt;/p&gt;
&lt;p&gt;Also, the W3C specs for XHTML 1.0 Transitional 1999 (&lt;a class="" href="http://www.w3.org/TR/1999/xhtml-modularization-19990406/DTD/doc/xhtml1-t.elt.html"&gt;http://www.w3.org/TR/1999/xhtml-modularization-19990406/DTD/doc/xhtml1-t.elt.html&lt;/a&gt;)&amp;nbsp;define the onmouseover/out events for an anchor tag.&amp;nbsp; So why does MS think it's not valid?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Deprecated Items and Newer Constructs</title><link>http://forums.asp.net/thread/1463635.aspx</link><pubDate>Tue, 14 Nov 2006 03:45:12 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1463635</guid><dc:creator>vcsjones</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1463635.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1463635</wfw:commentRss><description>yes that is correct, depending on what element you are applying it to.</description></item><item><title>Re: Deprecated Items and Newer Constructs</title><link>http://forums.asp.net/thread/1463101.aspx</link><pubDate>Mon, 13 Nov 2006 19:36:27 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1463101</guid><dc:creator>BradRoberts56</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1463101.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1463101</wfw:commentRss><description>&lt;p&gt;Is this also correct?&lt;/p&gt;&lt;font color=#ff0000 size=2&gt;
&lt;p&gt;style&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="width:50%"&lt;/font&gt;</description></item><item><title>Re: Deprecated Items and Newer Constructs</title><link>http://forums.asp.net/thread/1310665.aspx</link><pubDate>Fri, 09 Jun 2006 21:53:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1310665</guid><dc:creator>vcsjones</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1310665.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1310665</wfw:commentRss><description>Correct.</description></item></channel></rss>