<?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>Web Forms</title><link>http://forums.asp.net/18.aspx</link><description>All about building ASP.NET Pages - server controls, events, validation, etc.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: linkbutton And session</title><link>http://forums.asp.net/thread/1694239.aspx</link><pubDate>Fri, 04 May 2007 02:26:11 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1694239</guid><dc:creator>Jessica Cao - MSFT</dc:creator><author>Jessica Cao - MSFT</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1694239.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=1694239</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am afraind that when you set the PostBackUrl for a LinkButton, the code in the lnk1_Click will never execute, and the value never be stored in the session.&lt;/p&gt;
&lt;p&gt;Jessica&lt;/p&gt;</description></item><item><title>Re: linkbutton And session</title><link>http://forums.asp.net/thread/1691594.aspx</link><pubDate>Wed, 02 May 2007 15:31:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1691594</guid><dc:creator>royroy7</dc:creator><author>royroy7</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1691594.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=1691594</wfw:commentRss><description>&amp;nbsp;my asp code:&lt;pre class=coloredcode&gt;&amp;lt;&lt;span class=tag&gt;asp:LinkButton&lt;/span&gt;&lt;span class=attr&gt; runat=&lt;/span&gt;&lt;span class=attrv&gt;"server"&lt;/span&gt;&lt;span class=attr&gt; Text=&lt;/span&gt;&lt;span class=attrv&gt;"Edit"&lt;/span&gt;&lt;span class=attr&gt; ID=&lt;/span&gt;&lt;span class=attrv&gt;"lnk1"&lt;/span&gt;&lt;span class=attr&gt; PostBackUrl=&lt;/span&gt;&lt;span class=attrv&gt;"../Editor/Editor.aspx"&lt;/span&gt;&lt;span class=attr&gt; OnClick=&lt;/span&gt;&lt;span class=attrv&gt;"lnk1_Click"&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=tag&gt;asp:LinkButton&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;pre class=coloredcode&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class=coloredcode&gt;my cs code:&lt;/pre&gt;&lt;pre class=coloredcode&gt;&amp;nbsp;&lt;pre class=coloredcode&gt;&lt;span class=kwd&gt;&amp;nbsp;&lt;pre class=coloredcode&gt;&lt;span class=kwd&gt;public string&lt;/span&gt; Link
    {
        &lt;span class=kwd&gt;set&lt;/span&gt;
        {
            
            lnk1.PostBackUrl += &lt;span class=st&gt;"?ArticalID="&lt;/span&gt; + &lt;span class=kwd&gt;value&lt;/span&gt;;
            lnk1.AccessKey = &lt;span class=kwd&gt;value&lt;/span&gt;;
        }
    }&lt;/pre&gt;&lt;pre class=coloredcode&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class=coloredcode&gt;&amp;nbsp;&lt;/pre&gt;&amp;nbsp;protected void&lt;/span&gt; lnk1_Click(&lt;span class=kwd&gt;object&lt;/span&gt; sender, EventArgs e)
    {
        updateArtSession up = &lt;span class=kwd&gt;new&lt;/span&gt; updateArtSession();
        up.ArtCode = Convert.ToInt32(lnk1.AccessKey);
    }&lt;/pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;p&gt;is there better way to put the value for this session?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: linkbutton And session</title><link>http://forums.asp.net/thread/1691534.aspx</link><pubDate>Wed, 02 May 2007 15:06:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1691534</guid><dc:creator>roy_huntley</dc:creator><author>roy_huntley</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1691534.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=1691534</wfw:commentRss><description>&lt;p&gt;Please explain your problem in more detail...&lt;/p&gt;</description></item><item><title>linkbutton And session</title><link>http://forums.asp.net/thread/1691447.aspx</link><pubDate>Wed, 02 May 2007 14:17:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1691447</guid><dc:creator>royroy7</dc:creator><author>royroy7</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1691447.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=1691447</wfw:commentRss><description>&lt;div class=full-text-translation id=BABFT_TextDest style="BORDER-RIGHT:#c9c9c2 1px solid;PADDING-RIGHT:8px;BORDER-TOP:medium none;DISPLAY:block;PADDING-LEFT:8px;PADDING-BOTTOM:8px;MARGIN:0px -2px;BORDER-LEFT:#c9c9c2 1px solid;PADDING-TOP:8px;BORDER-BOTTOM:#c9c9c2 1px solid;TEXT-ALIGN:left;"&gt;I want to put value for session&amp;nbsp;inside linkbutton &lt;/div&gt;
&lt;div class=full-text-translation style="BORDER-RIGHT:#c9c9c2 1px solid;PADDING-RIGHT:8px;BORDER-TOP:medium none;DISPLAY:block;PADDING-LEFT:8px;PADDING-BOTTOM:8px;MARGIN:0px -2px;BORDER-LEFT:#c9c9c2 1px solid;PADDING-TOP:8px;BORDER-BOTTOM:#c9c9c2 1px solid;TEXT-ALIGN:left;"&gt;&amp;nbsp;which preferable&amp;nbsp;property to use ?&lt;/div&gt;
&lt;div class=full-text-translation style="BORDER-RIGHT:#c9c9c2 1px solid;PADDING-RIGHT:8px;BORDER-TOP:medium none;DISPLAY:block;PADDING-LEFT:8px;PADDING-BOTTOM:8px;MARGIN:0px -2px;BORDER-LEFT:#c9c9c2 1px solid;PADDING-TOP:8px;BORDER-BOTTOM:#c9c9c2 1px solid;TEXT-ALIGN:left;"&gt;for now its on my onclick...&lt;/div&gt;
&lt;div class=full-text-translation style="BORDER-RIGHT:#c9c9c2 1px solid;PADDING-RIGHT:8px;BORDER-TOP:medium none;DISPLAY:block;PADDING-LEFT:8px;PADDING-BOTTOM:8px;MARGIN:0px -2px;BORDER-LEFT:#c9c9c2 1px solid;PADDING-TOP:8px;BORDER-BOTTOM:#c9c9c2 1px solid;TEXT-ALIGN:left;"&gt;&amp;nbsp;&lt;/div&gt;</description></item></channel></rss>