<?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>Search results matching tag 'LinkButton'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=LinkButton&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'LinkButton'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: LinkButton vs Button Events for Data Update</title><link>http://forums.asp.net/thread/3528877.aspx</link><pubDate>Mon, 23 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3528877</guid><dc:creator>QUL001</dc:creator><description>&lt;p&gt;Yes here is the aspx.&amp;nbsp; (Also, the Hyperlink control has the same problem with executing the code as does&amp;nbsp;the LinkButton control).&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;lt;%&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;@&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;Page&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;Language&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;VB&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;AutoEventWireup&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;false&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;CodeFile&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;Default5.aspx.vb&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;Inherits&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;Default5&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; %&amp;gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;p&gt;&amp;lt;!&lt;/p&gt;
&lt;p&gt;&amp;lt;&lt;/p&gt;
&lt;p&gt;&amp;lt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;DOCTYPE&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;html&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;PUBLIC&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;html&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;xmlns&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;head&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&amp;lt;/&lt;/p&gt;
&lt;p&gt;&amp;lt;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;title&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;title&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;head&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;body&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;form&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;id&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;form1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;TextBox1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;style&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;z-index&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;: &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;1&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;left&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;: &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;293px&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;top&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;: &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;115px&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;position&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;: &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;absolute&amp;quot;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;HyperLink&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;HyperLink1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;Enabled&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;False&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;style&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;z-index&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;: &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;1&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;left&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;: &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;-213px&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;top&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;: &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;611px&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;position&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;: &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;absolute&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;HyperLink&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;HyperLink&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;br&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;br&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;TextBox2&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;style&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;z-index&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;: &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;1&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;left&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;: &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;206px&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;top&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;: &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;211px&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;position&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;: &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;absolute&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;height&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;: &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;21px&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;quot;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;br&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;br&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;br&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;br&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;Button&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;Button1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;Text&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;Button&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;br&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;br&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;br&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;br&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;br&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;br&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;LinkButton&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;LinkButton1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;PostBackUrl&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;~/Default6.aspx&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;LinkButton&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;LinkButton&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;br&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;br&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;lt;/&lt;/p&gt;
&lt;p&gt;&amp;lt;/&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;form&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;body&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;html&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: LinkButton vs Button Events for Data Update</title><link>http://forums.asp.net/thread/3526353.aspx</link><pubDate>Sun, 22 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3526353</guid><dc:creator>QUL001</dc:creator><description>&lt;p&gt;Hi, no the code is not executing -- it is as though subroutines with LinkButton events do not process database commands.&amp;nbsp;&amp;nbsp;I have both Button and&amp;nbsp;LinkButton subroutines with the same code on the same page; the Button subroutine works perfectly, the LinkButton subroutine does not.&amp;nbsp; And I am testing with&amp;nbsp;new (unique) values each time; the Button subroutine posts the new record, the LinkButton subroutine does not.&amp;nbsp; Thanks.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: LinkButton vs Button Events for Data Update</title><link>http://forums.asp.net/thread/3525944.aspx</link><pubDate>Sat, 21 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3525944</guid><dc:creator>QUL001</dc:creator><description>&lt;p&gt;Yes, here is the code, and the event subroutine frame was auto-generated from Design mode:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GRName = TextBox1.Text&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GRCompany = TextBox2.Text&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; con.Open()&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmd = New OleDbCommand(&amp;quot;Insert Into Table1(Name, Company) Values (@NameParam, @CompanyParam)&amp;quot;, con)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmd.Parameters.AddWithValue(&amp;quot;@NameParam&amp;quot;, GRName)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmd.Parameters.AddWithValue(&amp;quot;@CompanyParam&amp;quot;, GRCompany)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmd.ExecuteNonQuery()&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;It proceeds as though successful, but when reviewing the database, the table has not been updated.&amp;nbsp; Thanks.&lt;/p&gt;</description></item><item><title>LinkButton Not Functioning Properly With Partial Rendering</title><link>http://forums.asp.net/thread/3515965.aspx</link><pubDate>Mon, 16 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3515965</guid><dc:creator>ezsolution</dc:creator><description>&lt;p&gt;The dynamically created LinkButton click event in my Update Panel (Masterpage) is not firing as expected when EnablePartialRendering is set to &amp;quot;true&amp;quot;. I need to have partial rendering turned on for the pages that use this section of code , but I&amp;#39;m not sure what the problem is. If I set EnablePartialRendering to false, the page works as expected. Basically, the code is populating something similar to a Shopping Cart on the right side nav, with the ability to &amp;quot;Remove&amp;quot; an object from the cart. If EnablePartialRendering=&amp;quot;true&amp;quot; I can add/remove objects into the cart by using the clickable Image for that product, but if I click &amp;quot;Remove&amp;quot; in the cart, it doesn&amp;#39;t work the first time. If I click it a second time it will remove the item as normal, however none of the other LinkButtons or Buttons on the page will fire. The modifyList() function is called from various pages whenever an item on that page is selected. I can include a sample of that if necessary. Any suggestions are appreciated. Please let me know if you need anything else!&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="xhtml"&gt;&amp;lt;%@ Master Language=&amp;quot;C#&amp;quot; AutoEventWireup=&amp;quot;true&amp;quot; CodeFile=&amp;quot;MasterPage.master.cs&amp;quot; Inherits=&amp;quot;beta_MasterPage&amp;quot; %&amp;gt;

&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;
&amp;lt;head id=&amp;quot;Head1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
    &amp;lt;title&amp;gt;Find Executive Offices&amp;lt;/title&amp;gt;
    &amp;lt;asp:ContentPlaceHolder id=&amp;quot;header&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
    
    &amp;lt;/asp:ContentPlaceHolder&amp;gt;
    &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
        function mp_onload()
        {
            if(window.body_onload != null)
            window.body_onload();
        }
    &amp;lt;/script&amp;gt;   
&amp;lt;link href=&amp;quot;styles.css?reload&amp;quot; rel=&amp;quot;stylesheet&amp;quot; type=&amp;quot;text/css&amp;quot; /&amp;gt;    
&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;javascript.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body onload=&amp;quot;preloadImages();mp_onload();&amp;quot;&amp;gt;
    &amp;lt;table width=&amp;quot;867&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot; class=&amp;quot;tablebg&amp;quot;&amp;gt;
    &amp;lt;tr&amp;gt;&amp;lt;td valign=&amp;quot;top&amp;quot;&amp;gt;
   	    &amp;lt;table cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot;&amp;gt;
	    &amp;lt;tr&amp;gt;
		    &amp;lt;td valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;img alt=&amp;quot;Find Executive Offices Logo&amp;quot; src=&amp;quot;images/logo.jpg&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;
		    &amp;lt;td valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;img alt=&amp;quot;Find Executive Offices Logo&amp;quot; src=&amp;quot;images/top01.jpg&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;
	    &amp;lt;/tr&amp;gt;
        &amp;lt;/table&amp;gt;
		&amp;lt;table width=&amp;quot;867&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot;&amp;gt;
		    &amp;lt;tr&amp;gt;
			    &amp;lt;td width=&amp;quot;15&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;images/left-shadow.jpg&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;
			    &amp;lt;td width=&amp;quot;837&amp;quot; valign=&amp;quot;top&amp;quot; style=&amp;quot;background: url(images/copy-bg.jpg) no-repeat; height: 275px;&amp;quot;&amp;gt;
				    &amp;lt;!-- ImageReady Slices (nav.psd) --&amp;gt;
				    &amp;lt;table width=&amp;quot;837&amp;quot; height=&amp;quot;48&amp;quot; border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;
					    
				      ......		        &amp;lt;/table&amp;gt;
			        
			        &amp;lt;table&amp;gt;
			        &amp;lt;form id=&amp;quot;masterform&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
			        &amp;lt;tr&amp;gt;
					    &amp;lt;td valign=&amp;quot;top&amp;quot; width=&amp;quot;617&amp;quot;&amp;gt;
					        &amp;lt;div style=&amp;quot;padding: 0px 0px 0px 10px;&amp;quot;&amp;gt;     	
                                &amp;lt;asp:ScriptManager ID=&amp;quot;ScriptManager1&amp;quot; EnablePartialRendering=&amp;quot;true&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;
                                &amp;lt;table id=&amp;quot;masterTable&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;padding-top: 10px;&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
                                    &amp;lt;tr&amp;gt;
                                        &amp;lt;td&amp;gt;
                                            &amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt; 
                                                &amp;lt;asp:ContentPlaceHolder id=&amp;quot;content&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;

                                                &amp;lt;!--.......... Content Goes Here............ --&amp;gt;


                                                &amp;lt;/asp:ContentPlaceHolder&amp;gt;                             
                                            &amp;lt;/div&amp;gt;
                                        &amp;lt;/td&amp;gt;
                                    &amp;lt;/tr&amp;gt;
                                &amp;lt;/table&amp;gt; 
                                	
					        &amp;lt;/div&amp;gt;
					    &amp;lt;/td&amp;gt;
					    &amp;lt;td valign=&amp;quot;top&amp;quot; width=&amp;quot;250&amp;quot; align=&amp;quot;right&amp;quot; style=&amp;quot;padding: 32px 10px 30px 10px;&amp;quot;&amp;gt;
					        &amp;lt;asp:Table ID=&amp;quot;tblComparison&amp;quot; CellPadding=&amp;quot;5&amp;quot; Width=&amp;quot;240&amp;quot; HorizontalAlign=&amp;quot;Center&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
					            &amp;lt;asp:TableHeaderRow&amp;gt;
					                &amp;lt;asp:TableCell id=&amp;quot;cellHeaderComparison&amp;quot; Text=&amp;quot;Comparison List&amp;quot; Font-Size=&amp;quot;Larger&amp;quot; Font-Bold=&amp;quot;true&amp;quot; Font-Underline=&amp;quot;true&amp;quot; HorizontalAlign=&amp;quot;Center&amp;quot; /&amp;gt;
					            &amp;lt;/asp:TableHeaderRow&amp;gt;
    					        &amp;lt;asp:TableRow&amp;gt;
    					            &amp;lt;asp:TableCell ID=&amp;quot;cellComparison&amp;quot; Text=&amp;quot;To Add Offices to the List, Find the Office then click &amp;#39;Add to List&amp;#39;&amp;quot; /&amp;gt;
    					        &amp;lt;/asp:TableRow&amp;gt;
    					        &amp;lt;asp:TableRow ID=&amp;quot;trComparisonNum&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
    					            &amp;lt;asp:TableCell ID=&amp;quot;cellComparisonNum&amp;quot; runat=&amp;quot;server&amp;quot; HorizontalAlign=&amp;quot;Center&amp;quot;&amp;gt;
    					                &amp;lt;asp:UpdatePanel ID=&amp;quot;panelComparisonNum&amp;quot; UpdateMode=&amp;quot;Conditional&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
    					                &amp;lt;ContentTemplate&amp;gt;
    					                    &amp;lt;asp:Label id=&amp;quot;lblComparisonNum&amp;quot; Text=&amp;quot;You have selected: 0 Offices&amp;quot; Width=&amp;quot;200&amp;quot; Height=&amp;quot;20&amp;quot; BorderColor=&amp;quot;ActiveBorder&amp;quot; BorderWidth=&amp;quot;1&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;
    					                &amp;lt;/ContentTemplate&amp;gt;    
    					                &amp;lt;/asp:UpdatePanel&amp;gt; 
    					            &amp;lt;/asp:TableCell&amp;gt;
    					        &amp;lt;/asp:TableRow&amp;gt;
    					        &amp;lt;asp:TableRow ID=&amp;quot;rowComparisonList&amp;quot;  Height=&amp;quot;100&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
    					            &amp;lt;asp:TableCell ID=&amp;quot;cellComparisonList&amp;quot; HorizontalAlign=&amp;quot;Center&amp;quot;&amp;gt;
    					                &amp;lt;asp:UpdatePanel ID=&amp;quot;panelComparisonList&amp;quot; UpdateMode=&amp;quot;Conditional&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
    					                &amp;lt;ContentTemplate&amp;gt;
    					                    &amp;lt;asp:Table ID=&amp;quot;tblComparisonList&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
        					                   
    					                    &amp;lt;/asp:Table&amp;gt;
    					                &amp;lt;/ContentTemplate&amp;gt;
    					                &amp;lt;/asp:UpdatePanel&amp;gt;
    					            &amp;lt;/asp:TableCell&amp;gt;
    					        &amp;lt;/asp:TableRow&amp;gt;
    					        &amp;lt;asp:TableRow&amp;gt;
    					            &amp;lt;asp:TableCell ID=&amp;quot;cellSendList&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
    					                &amp;lt;asp:Table ID=&amp;quot;tblForm&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
    					                    &amp;lt;asp:TableRow ID=&amp;quot;trHeader&amp;quot;&amp;gt;
    					                        &amp;lt;asp:TableCell Text=&amp;quot;Complete Form To Submit&amp;quot; ColumnSpan=&amp;quot;2&amp;quot; HorizontalAlign=&amp;quot;Center&amp;quot; Font-Size=&amp;quot;Small&amp;quot; Font-Underline=&amp;quot;true&amp;quot; /&amp;gt;
    					                    &amp;lt;/asp:TableRow&amp;gt;
    					                    &amp;lt;asp:TableRow ID=&amp;quot;trCompany&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
    					                        &amp;lt;asp:TableCell Text=&amp;quot;Company:&amp;quot; /&amp;gt;
    					                        &amp;lt;asp:TableCell&amp;gt;
    					                            &amp;lt;asp:TextBox ID=&amp;quot;txtCompany&amp;quot; Width=&amp;quot;140&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;
    					                        &amp;lt;/asp:TableCell&amp;gt;
    					                    &amp;lt;/asp:TableRow&amp;gt;
    					                    &amp;lt;asp:TableRow ID=&amp;quot;trName&amp;quot;  runat=&amp;quot;server&amp;quot;&amp;gt;
    					                        &amp;lt;asp:TableCell HorizontalAlign=&amp;quot;Right&amp;quot; Text=&amp;quot;Name:&amp;quot; /&amp;gt;
    					                        &amp;lt;asp:TableCell&amp;gt;
    					                            &amp;lt;asp:TextBox ID=&amp;quot;txtName&amp;quot; Width=&amp;quot;140&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;
    					                        &amp;lt;/asp:TableCell&amp;gt;
    					                    &amp;lt;/asp:TableRow&amp;gt;
    					                    &amp;lt;asp:TableRow ID=&amp;quot;trState&amp;quot;&amp;gt;
    					                        &amp;lt;asp:TableCell HorizontalAlign=&amp;quot;Right&amp;quot; Text=&amp;quot;State: &amp;quot; /&amp;gt;
    					                        &amp;lt;asp:TableCell&amp;gt;
    					                            &amp;lt;asp:DropDownList ID=&amp;quot;ddlFormState&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
    					                                &amp;lt;asp:ListItem Selected=&amp;quot;True&amp;quot; Value=&amp;quot;&amp;quot; Text=&amp;quot;Select:&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;AL&amp;quot; Text=&amp;quot;Alabama&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;AZ&amp;quot; Text=&amp;quot;Arizona&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;AR&amp;quot; Text=&amp;quot;Arkansas&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;CA&amp;quot; Text=&amp;quot;California&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;CO&amp;quot; Text=&amp;quot;Colorado&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;CT&amp;quot; Text=&amp;quot;Connecticut&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;DE&amp;quot; Text=&amp;quot;Delaware&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;DC&amp;quot; Text=&amp;quot;District Of Columbia&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;FL&amp;quot; Text=&amp;quot;Florida&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;GA&amp;quot; Text=&amp;quot;Georgia&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;ID&amp;quot; Text=&amp;quot;Idaho&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;IL&amp;quot; Text=&amp;quot;Illinois&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;IN&amp;quot; Text=&amp;quot;Indiana&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;IA&amp;quot; Text=&amp;quot;Iowa&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;KS&amp;quot; Text=&amp;quot;Kansas&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;KY&amp;quot; Text=&amp;quot;Kentucky&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;LA&amp;quot; Text=&amp;quot;Louisiana&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;ME&amp;quot; Text=&amp;quot;Maine&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;MD&amp;quot; Text=&amp;quot;Maryland&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;MA&amp;quot; Text=&amp;quot;Massachusetts&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;MI&amp;quot; Text=&amp;quot;Michigan&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;MN&amp;quot; Text=&amp;quot;Minnesota&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;MS&amp;quot; Text=&amp;quot;Mississippi&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;MO&amp;quot; Text=&amp;quot;Missouri&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;MT&amp;quot; Text=&amp;quot;Montana&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;NE&amp;quot; Text=&amp;quot;Nebraska&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;NV&amp;quot; Text=&amp;quot;Nevada&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;NH&amp;quot; Text=&amp;quot;New Hampshire&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;NJ&amp;quot; Text=&amp;quot;New Jersey&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;NM&amp;quot; Text=&amp;quot;New Mexico&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;NY&amp;quot; Text=&amp;quot;New York&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;NC&amp;quot; Text=&amp;quot;North Carolina&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;ND&amp;quot; Text=&amp;quot;North Dakota&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;OH&amp;quot; Text=&amp;quot;Ohio&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;OK&amp;quot; Text=&amp;quot;Oklahoma&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;OR&amp;quot; Text=&amp;quot;Oregon&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;PA&amp;quot; Text=&amp;quot;Pennsylvania&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;RI&amp;quot; Text=&amp;quot;Rhode Island&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;SC&amp;quot; Text=&amp;quot;South Carolina&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;SD&amp;quot; Text=&amp;quot;South Dakota&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;TN&amp;quot; Text=&amp;quot;Tennessee&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;TX&amp;quot; Text=&amp;quot;Texas&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;UT&amp;quot; Text=&amp;quot;Utah&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;VT&amp;quot; Text=&amp;quot;Vermont&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;VA&amp;quot; Text=&amp;quot;Virginia&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;WA&amp;quot; Text=&amp;quot;Washington&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;WV&amp;quot; Text=&amp;quot;West Virginia&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;WI&amp;quot; Text=&amp;quot;Wisconsin&amp;quot; /&amp;gt;
	                                                    &amp;lt;asp:ListItem Value=&amp;quot;WY&amp;quot; Text=&amp;quot;Wyoming&amp;quot; /&amp;gt;
    					                            &amp;lt;/asp:DropDownList&amp;gt;
    					                        &amp;lt;/asp:TableCell&amp;gt;
    					                    &amp;lt;/asp:TableRow&amp;gt;
    					                    &amp;lt;asp:TableRow ID=&amp;quot;trPhone&amp;quot;&amp;gt;
    					                        &amp;lt;asp:TableCell HorizontalAlign=&amp;quot;Right&amp;quot; Text=&amp;quot;Phone: &amp;quot; /&amp;gt;
    					                        &amp;lt;asp:TableCell&amp;gt;
    					                            (&amp;lt;asp:TextBox id=&amp;quot;txtPhone1&amp;quot; 
    					                                          runat=&amp;quot;server&amp;quot; 
    					                                          MaxLength=&amp;quot;3&amp;quot; 
    					                                          columns=&amp;quot;1&amp;quot; /&amp;gt;)&amp;lt;asp:TextBox 
    					                                          id=&amp;quot;txtPhone2&amp;quot; 
                                                                  runat=&amp;quot;server&amp;quot; 
                                                                  MaxLength=&amp;quot;3&amp;quot; 
                                                                  columns=&amp;quot;1&amp;quot; /&amp;gt;-&amp;lt;asp:TextBox 
                                                                  id=&amp;quot;txtPhone3&amp;quot; 
                                                                  runat=&amp;quot;server&amp;quot; 
                                                                  MaxLength=&amp;quot;4&amp;quot; 
                                                                  columns=&amp;quot;1&amp;quot; /&amp;gt;
                                                &amp;lt;/asp:TableCell&amp;gt;
    					                    &amp;lt;/asp:TableRow&amp;gt;
    					                    &amp;lt;asp:TableRow ID=&amp;quot;trSubmit&amp;quot;&amp;gt;
    					                        &amp;lt;asp:TableCell ColumnSpan=&amp;quot;2&amp;quot; HorizontalAlign=&amp;quot;Center&amp;quot;&amp;gt;
    					                            &amp;lt;asp:Button Text=&amp;quot;Submit&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt; 
    					                        &amp;lt;/asp:TableCell&amp;gt;
    					                    &amp;lt;/asp:TableRow&amp;gt;
    					                &amp;lt;/asp:Table&amp;gt;  
    					            &amp;lt;/asp:TableCell&amp;gt;
    					        &amp;lt;/asp:TableRow&amp;gt;      
    					    &amp;lt;/asp:Table&amp;gt;
					    &amp;lt;/td&amp;gt;
				    &amp;lt;/tr&amp;gt;
			        &amp;lt;/form&amp;gt;
			        &amp;lt;/table&amp;gt;
			    &amp;lt;/td&amp;gt;
		    &amp;lt;td width=&amp;quot;15&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;images/right-shadow.jpg&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;
	        &amp;lt;/tr&amp;gt;
        &amp;lt;/table&amp;gt;

        &amp;lt;!--big table stuff--&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td valign=&amp;quot;bottom&amp;quot;&amp;gt;

        &amp;lt;table width=&amp;quot;867&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot;&amp;gt;
	        &amp;lt;tr&amp;gt;&amp;lt;td valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;images/footer.jpg&amp;quot; border=0 /&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
	        &amp;lt;tr&amp;gt;
		        &amp;lt;td valign=&amp;quot;top&amp;quot; align=&amp;quot;center&amp;quot; class=&amp;quot;address&amp;quot;&amp;gt;
        &amp;lt;b&amp;gt;Find Executive Offices&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;
        2173 Embassy Dr. (Suite 472) • Lancaster, PA 17603 &amp;lt;br /&amp;gt;
        &amp;lt;b&amp;gt;Phone:&amp;lt;/b&amp;gt; (717) 390-9858 • &amp;lt;b&amp;gt;Email:&amp;lt;/b&amp;gt; &amp;lt;a href=&amp;quot;mailto:info@findexecutiveoffices.com&amp;quot;&amp;gt;info@findexecutiveoffices.com&amp;lt;/a&amp;gt;
        &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;
        &amp;lt;span class=&amp;quot;copyright&amp;quot;&amp;gt;© 2009, Find Executive Offices.  All Rights Reserved.&amp;lt;br /&amp;gt;
        
	        &amp;lt;/td&amp;gt;
	        &amp;lt;/tr&amp;gt;
        &amp;lt;/table&amp;gt;

      &amp;lt;/td&amp;gt;
    &amp;lt;/tr&amp;gt;
    &amp;lt;/table&amp;gt;
  
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;pre name="code" class="c-sharp"&gt;using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using System.Data.SqlClient;
using System.IO;
using System.Text;
using System.Web.Configuration;

public partial class beta_MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        tblComparison.BorderColor = System.Drawing.ColorTranslator.FromHtml(&amp;quot;#0A276A&amp;quot;);
        tblComparison.BorderWidth = 1;
        tblComparison.BackColor = System.Drawing.Color.AliceBlue;
        displaySelections();
        FixPopupFormSubmit();
    }

    private void FixPopupFormSubmit()
    {
        var script =
            @&amp;quot;if (Sys&amp;amp;&amp;amp;Sys.WebForms&amp;amp;&amp;amp;Sys.WebForms.PageRequestManager&amp;amp;&amp;amp;Sys.WebForms.PageRequestManager.getInstance) 
                 {
                    var prm=Sys.WebForms.PageRequestManager.getInstance();
                    if (prm&amp;amp;&amp;amp;!prm._postBackSettings) prm._postBackSettings=prm._createPostBackSettings(false, null, null);
                 }&amp;quot;;

        ScriptManager.RegisterOnSubmitStatement(Page, Page.GetType(), &amp;quot;FixPopupFormSubmit&amp;quot;, script);
    }
    


    protected void displaySelections()
    {
        int counter = 0;

        foreach (string key in Session.Keys)
        {
            if ((string)Session[key].ToString() == &amp;quot;selected&amp;quot;)
            {
                // query database and gather listing number and partial address
                SqlConnection conn = new SqlConnection(WebConfigurationManager.ConnectionStrings[&amp;quot;ConnString&amp;quot;].ConnectionString);
                conn.Open();
                string sqlQuery = &amp;quot;SELECT city, state FROM Listing WHERE id = @listing&amp;quot;;

                // bind the information to the query
                SqlCommand cmd = new SqlCommand(sqlQuery, conn);
                cmd.Parameters.Add(new SqlParameter(&amp;quot;@listing&amp;quot;, SqlDbType.Int)).Value = key;

                //execute the query
                SqlDataReader reader = cmd.ExecuteReader();
                reader.Read();               
                
                // create a new row with 4 cells
                TableRow rowAddListing = new TableRow();
                rowAddListing.ID = &amp;quot;row&amp;quot; + key;
                TableCell cellOne = new TableCell();
                TableCell cellTwo = new TableCell();
                TableCell cellThree = new TableCell();
                TableCell cellFour = new TableCell();

                cellOne.Text = &amp;quot;-&amp;quot;;
                cellOne.ID = &amp;quot;cellOne&amp;quot; + key;
                cellOne.HorizontalAlign = HorizontalAlign.Center;
                cellTwo.ID = key;
                cellTwo.Text = &amp;quot;#&amp;quot; + key;

                cellThree.Text =&amp;quot;(&amp;quot; + reader[&amp;quot;city&amp;quot;].ToString() + &amp;quot;, &amp;quot; + reader[&amp;quot;state&amp;quot;].ToString() + &amp;quot;)&amp;quot;;
                cellThree.ID = &amp;quot;cellThree&amp;quot; + key;

                LinkButton btnRemove = new LinkButton();
                btnRemove.ID = &amp;quot;btn&amp;quot; + key;
                btnRemove.Text = &amp;quot;Remove&amp;quot;;
                btnRemove.Font.Size = FontUnit.XXSmall;
                btnRemove.Click += new EventHandler(btnRemove_Click);
              
                AsyncPostBackTrigger trigger = new AsyncPostBackTrigger();
                trigger.ControlID = btnRemove.ID;
                trigger.EventName = &amp;quot;Click&amp;quot;;
                panelComparisonList.Triggers.Add(trigger);
                panelComparisonNum.Triggers.Add(trigger);

                cellFour.ID = &amp;quot;cellFour&amp;quot; + key;
                cellFour.Controls.Add(btnRemove);
                cellFour.HorizontalAlign = HorizontalAlign.Center;

                // close the connections
                reader.Close();
                conn.Close();

                // add the cells to the row
                rowAddListing.Cells.Add(cellOne);
                rowAddListing.Cells.Add(cellTwo);
                rowAddListing.Cells.Add(cellThree);
                rowAddListing.Cells.Add(cellFour);               
                tblComparisonList.Rows.Add(rowAddListing);
                panelComparisonList.Update();
                counter++;
            }
            //Response.Write(key + &amp;quot; - &amp;quot; + Session[key] + &amp;quot;&amp;lt;br /&amp;gt;&amp;quot;);
        }

        lblComparisonNum.Text = &amp;quot;You have selected: &amp;lt;b&amp;gt;&amp;quot; + counter + &amp;quot; Offices&amp;lt;/b&amp;gt;&amp;quot;;
        Session[&amp;quot;ComparisonListNum&amp;quot;] = counter;
        panelComparisonNum.Update();
    }

    public void modifyList(object sender, ImageClickEventArgs e)
    {
        ImageButton btnSender = sender as ImageButton;

        // swap the Add To List &amp;amp; Remove From List icons
        if (btnSender != null)
        {
            if ((string)Session[btnSender.ID] != &amp;quot;selected&amp;quot;)
            {
                // query database and gather listing number and partial address
                SqlConnection conn = new SqlConnection(WebConfigurationManager.ConnectionStrings[&amp;quot;ConnString&amp;quot;].ConnectionString);
                conn.Open();
                string sqlQuery = &amp;quot;SELECT city, state FROM Listing WHERE id = @listing&amp;quot;;

                // bind the information to the query
                SqlCommand cmd = new SqlCommand(sqlQuery, conn);
                cmd.Parameters.Add(new SqlParameter(&amp;quot;@listing&amp;quot;, SqlDbType.Int)).Value = btnSender.ID;

                //execute the query
                SqlDataReader reader = cmd.ExecuteReader();
                reader.Read();

                // change the image to Remove From List and set Session
                btnSender.ImageUrl = &amp;quot;images/remove-from-list.jpg&amp;quot;;
                Session[btnSender.ID] = &amp;quot;selected&amp;quot;;

                // update the Comparison List with the new Listing
                TableRow rowAddListing = new TableRow();
                rowAddListing.ID = &amp;quot;row&amp;quot; + btnSender.ID;
                TableCell cellOne = new TableCell();
                TableCell cellTwo = new TableCell();
                TableCell cellThree = new TableCell();
                TableCell cellFour = new TableCell();

                cellOne.Text = &amp;quot;-&amp;quot;;
                cellOne.ID = &amp;quot;cellOne&amp;quot; + btnSender.ID;
                cellOne.HorizontalAlign = HorizontalAlign.Center;
                cellTwo.ID = btnSender.ID;
                cellTwo.Text = &amp;quot;#&amp;quot; + btnSender.ID;
                cellThree.Text = &amp;quot;(&amp;quot; + reader[&amp;quot;city&amp;quot;].ToString() + &amp;quot;, &amp;quot; + reader[&amp;quot;state&amp;quot;].ToString() + &amp;quot;)&amp;quot;;
                cellThree.ID = &amp;quot;cellThree&amp;quot; + btnSender.ID;

                LinkButton btnRemove = new LinkButton();
                btnRemove.ID = &amp;quot;btn&amp;quot; + btnSender.ID;
                btnRemove.Text = &amp;quot;Remove&amp;quot;;
                btnRemove.Font.Size = FontUnit.XXSmall;
                btnRemove.Click += new EventHandler(btnRemove_Click);
                cellFour.ID = &amp;quot;cellFour&amp;quot; + btnSender.ID;
                cellFour.Controls.Add(btnRemove);
                cellFour.HorizontalAlign = HorizontalAlign.Center;

                // close the connections
                reader.Close();
                conn.Close();

                // add the cells to the row
                rowAddListing.Cells.Add(cellOne);
                rowAddListing.Cells.Add(cellTwo);
                rowAddListing.Cells.Add(cellThree);
                rowAddListing.Cells.Add(cellFour);

                // add the row to the Comparison List Table &amp;amp; Update the UpdatePanel
                tblComparisonList.Rows.Add(rowAddListing); 
                panelComparisonList.Update();

                // update the Number of Offices Selected Counter
                Session[&amp;quot;ComparisonListNum&amp;quot;] = int.Parse(Session[&amp;quot;ComparisonListNum&amp;quot;].ToString()) + 1;
                lblComparisonNum.Text = &amp;quot;You have selected: &amp;lt;b&amp;gt;&amp;quot; + Session[&amp;quot;ComparisonListNum&amp;quot;].ToString() + &amp;quot; Offices&amp;lt;/b&amp;gt;&amp;quot;;
                panelComparisonNum.Update();
            }
            else
            {
                // change image to Add To List &amp;amp; Delete Item From Side Nav Comparison List
                btnSender.ImageUrl = &amp;quot;images/add-to-list.jpg&amp;quot;;
                TableRow delRow = (TableRow)tblComparisonList.FindControl(&amp;quot;row&amp;quot; + btnSender.ID);
                tblComparisonList.Rows.Remove(delRow);
                Session.Remove(btnSender.ID);
                panelComparisonList.Update();

                // update the Comparison List counter
                Session[&amp;quot;ComparisonListNum&amp;quot;] = int.Parse(Session[&amp;quot;ComparisonListNum&amp;quot;].ToString()) - 1;
                lblComparisonNum.Text = &amp;quot;You have selected: &amp;lt;b&amp;gt;&amp;quot; + Session[&amp;quot;ComparisonListNum&amp;quot;].ToString() + &amp;quot; Offices&amp;lt;/b&amp;gt;&amp;quot;;
                panelComparisonNum.Update();
            }
        }
    }

    public void btnRemove_Click(object sender, EventArgs e)
    {
        LinkButton btnRemoveFromList = sender as LinkButton;

        Response.Write(&amp;quot;ID is&amp;quot; + btnRemoveFromList.ID);
        
        // Delete Item From Side Nav Comparison List
        char[] trimChars = { &amp;#39;b&amp;#39;, &amp;#39;t&amp;#39;, &amp;#39;n&amp;#39; };
        string listingNum = btnRemoveFromList.ID.TrimStart(trimChars);
        TableRow delRow = (TableRow)tblComparisonList.FindControl(&amp;quot;row&amp;quot; + listingNum);
        tblComparisonList.Rows.Remove(delRow);
        Session.Remove(btnRemoveFromList.ID.TrimStart(trimChars));
        panelComparisonList.Update();

        // change the button back to Add To List (if it&amp;#39;s on the listings-search page)
        ImageButton btnAddRemove = (ImageButton)Page.Master.FindControl(&amp;quot;content$tbl&amp;quot; + listingNum + &amp;quot;$&amp;quot; + listingNum);
        if(btnAddRemove != null)
        {
            Response.Write(&amp;quot;the ID is &amp;quot; + btnAddRemove.ID);
            btnAddRemove.ImageUrl = &amp;quot;images/add-to-list.jpg&amp;quot;;
        }
        // change the button back to Add To List (if it&amp;#39;s on the listing-details page)
        ImageButton btnAddRemoveSingle = (ImageButton)Page.Master.FindControl(&amp;quot;content$&amp;quot; + listingNum);
        if(btnAddRemoveSingle != null)
        {
            btnAddRemoveSingle.ImageUrl = &amp;quot;images/add-to-list.jpg&amp;quot;;
        }

        // update the Comparison List counter
        Session[&amp;quot;ComparisonListNum&amp;quot;] = int.Parse(Session[&amp;quot;ComparisonListNum&amp;quot;].ToString()) - 1;
        lblComparisonNum.Text = &amp;quot;You have selected: &amp;lt;b&amp;gt;&amp;quot; + Session[&amp;quot;ComparisonListNum&amp;quot;].ToString() + &amp;quot; Offices&amp;lt;/b&amp;gt;&amp;quot;;
        lblComparisonNum.Text = btnRemoveFromList.ID;
        panelComparisonNum.Update();

    }
    
}
&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>LinkButton vs Submit button</title><link>http://forums.asp.net/thread/3441675.aspx</link><pubDate>Mon, 05 Oct 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3441675</guid><dc:creator>jerry.noll</dc:creator><description>&lt;p&gt;I have a&amp;nbsp;web control that has a few text boxes on it.&amp;nbsp;&amp;nbsp;If I submit the page using the Button, I see the TextBox.Text properties are restored to the values I entered&amp;nbsp;during the OnLoad event handler.&amp;nbsp; &amp;nbsp;If I change the definition from Button to LinkButton, the exact same code does not have the TextBox.Text properties set during the same event handler.&amp;nbsp; What is different between the LinkButton and the other Button control which might explain this behavior?&lt;/p&gt;
&lt;p&gt;My LinkButton does not have its CommandName property set.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>LinkButton and ViewState</title><link>http://forums.asp.net/thread/3441584.aspx</link><pubDate>Mon, 05 Oct 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3441584</guid><dc:creator>jerry.noll</dc:creator><description>&lt;p&gt;I&amp;nbsp;have a void in my understanding about &lt;strong&gt;LinkButtons&lt;/strong&gt; and view state.&amp;nbsp; I have a web page that has text boxes on it.&amp;nbsp; If I use a normal button on the page, the textboxes will have their text values set after a postback to the values I entered before submit.&amp;nbsp; If I change the&amp;nbsp;Button to a LinkButton (the only change I made), the text boxes will not have their text values&amp;nbsp;set.&amp;nbsp; The LinkButton has an OnClick Handler and&amp;nbsp;its CommandName is empty.&amp;nbsp; According &amp;nbsp;according to the documentation, the LinkButton should be have just like a Submit button.&amp;nbsp; However, that is not what is happening.&amp;nbsp; &lt;/p&gt;</description></item><item><title>when i was sorted the GridView, datakeys no change!</title><link>http://forums.asp.net/thread/3402375.aspx</link><pubDate>Sun, 13 Sep 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3402375</guid><dc:creator>fatix</dc:creator><description>&lt;p&gt;Dear developers,&lt;br /&gt;&lt;br /&gt;I have a Gridview and i was add a TemplateField. And i was add LinkButton in the TemplateField.&lt;br /&gt;When the LinkButton clicked running OnRowCommand events. I get Datakey (its ID) use a SQL query in the OnRowCommand event.&lt;br /&gt;Yes i get datakey.&lt;br /&gt;&lt;br /&gt;int rowindex = ((GridViewRow)(((LinkButton)(e.CommandSource)).Parent.Parent)).RowIndex;&lt;br /&gt;string dkey = GridView1.DataKeys[rowindex].Value.ToString();&lt;br /&gt;&lt;br /&gt;This commands giving datakey.&lt;br /&gt;&lt;br /&gt;But when a was sorted Gridview datakeys doesnt change. But it paged datakeys changes.&lt;br /&gt;Im explaining it an basic grid example.&lt;br /&gt;&lt;br /&gt;id value&lt;br /&gt;&lt;br /&gt;1 value1 &amp;nbsp;&amp;nbsp; &amp;nbsp;coming datakey = 1&lt;br /&gt;2 value2 &amp;nbsp;&amp;nbsp; &amp;nbsp;coming datakey = 2&lt;br /&gt;3 value3 &amp;nbsp;&amp;nbsp; &amp;nbsp;coming datakey = 3&lt;br /&gt;4 value4 &amp;nbsp;&amp;nbsp; &amp;nbsp;coming datakey = 4&lt;br /&gt;5 value5 &amp;nbsp;&amp;nbsp; &amp;nbsp;coming datakey = 5&lt;br /&gt;6 value6 &amp;nbsp;&amp;nbsp; &amp;nbsp;coming datakey = 6&lt;br /&gt;7 value7 &amp;nbsp;&amp;nbsp; &amp;nbsp;coming datakey = 7&lt;br /&gt;8 value8 &amp;nbsp;&amp;nbsp; &amp;nbsp;coming datakey = 8&lt;br /&gt;9 value9 &amp;nbsp;&amp;nbsp; &amp;nbsp;coming datakey = 9&lt;br /&gt;&lt;br /&gt;when i was sorted the grid.&lt;br /&gt;&lt;br /&gt;id value&lt;br /&gt;&lt;br /&gt;9 value9 &amp;nbsp;&amp;nbsp; &amp;nbsp;coming datakey = 1 (wheras it will be 9 (beacuse id is datakey. datakey is id))&lt;br /&gt;8 value8 &amp;nbsp;&amp;nbsp; &amp;nbsp;coming datakey = 2 (wheras it will be 8 (beacuse id is datakey. datakey is id))&lt;br /&gt;7 value7 &amp;nbsp;&amp;nbsp; &amp;nbsp;coming datakey = 3&lt;br /&gt;6 value6 &amp;nbsp;&amp;nbsp; &amp;nbsp;coming datakey = 4&lt;br /&gt;5 value5 &amp;nbsp;&amp;nbsp; &amp;nbsp;coming datakey = 5&lt;br /&gt;4 value4 &amp;nbsp;&amp;nbsp; &amp;nbsp;coming datakey = 6&lt;br /&gt;3 value3 &amp;nbsp;&amp;nbsp; &amp;nbsp;coming datakey = 7&lt;br /&gt;2 value2 &amp;nbsp;&amp;nbsp; &amp;nbsp;coming datakey = 8&lt;br /&gt;1 value1 &amp;nbsp;&amp;nbsp; &amp;nbsp;coming datakey = 9&lt;br /&gt;&lt;br /&gt;i hope i explain it.&lt;br /&gt;&lt;br /&gt;Thanks for yours help&lt;/p&gt;</description></item><item><title>Re: How to create dynamic link button control on mobile form?</title><link>http://forums.asp.net/thread/3362625.aspx</link><pubDate>Sat, 22 Aug 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3362625</guid><dc:creator>realfantasy</dc:creator><description>&lt;p&gt;use link button in repeater and bind&amp;nbsp;&lt;/p&gt;&lt;p&gt;i hope this link can help u&lt;/p&gt;&lt;p&gt;&lt;a href="http://aspalliance.com/1343_Handling_Events_within_a_Repeater_Control_Using_ASPNET_20.3"&gt;http://aspalliance.com/1343_Handling_Events_within_a_Repeater_Control_Using_ASPNET_20.3&lt;/a&gt;&lt;/p&gt;</description></item><item><title>dynamically create LinkButton for each record</title><link>http://forums.asp.net/thread/3258755.aspx</link><pubDate>Thu, 25 Jun 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3258755</guid><dc:creator>dkaur76</dc:creator><description>&lt;p&gt;I want a &amp;#39;delete&amp;#39; asp link button created dynamically, for each
record that I display in my table. I am getting a compilation error. I
guess I am mixing client-side and server-side calls. All I want to do
is when the user clicks &amp;#39;Delete&amp;#39; on btnLnk it should run this command:
DeleteRecord(bloodGlucose.Key.Id.ToString());&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;&amp;nbsp; &amp;nbsp;1&amp;nbsp;&amp;nbsp; &amp;nbsp;Cannot implicitly convert type &amp;#39;void&amp;#39; to &amp;#39;string&amp;#39;&amp;nbsp; on line 5&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Here is my code, please check and suggest correction:&lt;/p&gt;
&lt;p&gt;1. TableCell deleteCell = new TableCell();&lt;br /&gt;2. LinkButton btnLnk = new LinkButton();&lt;br /&gt;3. btnLnk.Text = &amp;quot;Delete&amp;quot;;&lt;br /&gt;4. btnLnk.Visible = true;&lt;br /&gt;5. btnLnk.CommandName = DeleteRecord(bloodGlucose.Key.Id.ToString());&lt;br /&gt;6. deleteCell.HorizontalAlign = HorizontalAlign.Center;&lt;br /&gt;7. row.Cells.Add(deleteCell);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;15. void DeleteRecord(String KeyID)&lt;br /&gt;16. &amp;nbsp;&amp;nbsp; {&lt;br /&gt;17. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Guid ItemID = new Guid(KeyID);&lt;br /&gt;18. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BloodGlucose bg = (BloodGlucose)PersonInfo.SelectedRecord.GetItem(ItemID, HealthRecordItemSections.Xml);&lt;br /&gt;19. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;br /&gt;20. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;21. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.PersonInfo.SelectedRecord.RemoveItem(bg);&lt;br /&gt;22. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;23. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Exception e1)&lt;br /&gt;24. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;25. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status.Text = e1.ToString();&lt;br /&gt;26. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;27. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status.Text = &amp;quot;Record Deleted&amp;quot;;&lt;br /&gt;28. &amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;
Thank You.&lt;/p&gt;</description></item><item><title>LinkButton + ToolTip  + Disappear</title><link>http://forums.asp.net/thread/3239603.aspx</link><pubDate>Wed, 17 Jun 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3239603</guid><dc:creator>studotnet</dc:creator><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m using a LinkButton and want to show a ToolTip.&lt;/p&gt;&lt;p&gt;These are steps I followed.&lt;/p&gt;&lt;p&gt;Create LinkButton&lt;br /&gt;Give a value to ToolTip property,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Problem.&lt;/p&gt;&lt;p&gt;When I mouseover the link the button tooltip it shows and disappears after a while. Then it won&amp;#39;t&amp;nbsp; show again until I refresh the page. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I want to see the tooltip whenever I mouseover the the linkbutton without refreshing.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;please help... &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>