<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Page_Load fires twice webforms set up with master page</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/page_load-fires-twice-webforms-set-up-with-master-page</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/page_load-fires-twice-webforms-set-up-with-master-page/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>cr8zymike on Page_Load fires twice webforms set up with master page</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/page_load-fires-twice-webforms-set-up-with-master-page#p26326</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/page_load-fires-twice-webforms-set-up-with-master-page#p26326</guid>
        	        	<description><![CDATA[<p>So after some banging on the head and looking over the documentation&#8230;</p>
<p>It looks like this works:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8973' value='Select Code' data-codeid='sfcode8973' /></p>
<div class='sfcode' id='sfcode8973'>
<p>if (!Page.IsPostBack &#38;&#38; Jqgrid1.AjaxCallBackMode == AjaxCallBackMode.RequestData)<br />{</p>
<p>}</p>
</div>
<p>I&#39;m thinking this is the answer&#8230;unless someone tells me that i&#39;m doing a stupid hack <img class="spSmiley" style="margin:0" title="Cool" src="/blog/wp-content/forum-smileys/sf-cool.gif" alt="Cool" /></p>
]]></description>
        	        	<pubDate>Tue, 10 Apr 2012 04:32:35 +0300</pubDate>
        </item>
        <item>
        	<title>cr8zymike on Page_Load fires twice webforms set up with master page</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/page_load-fires-twice-webforms-set-up-with-master-page#p26325</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/page_load-fires-twice-webforms-set-up-with-master-page#p26325</guid>
        	        	<description><![CDATA[<p>Hello!</p>
<p>I&#39;m new to jQuery so it has been a bit of a learning curve.&#160;</p>
<p>We are using jQuery with an ASP .Net web forms application.</p>
<p>I was playing around and did a very simple example where I get the values back from the database in a datatable and then bind it just like the example.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4126' value='Select Code' data-codeid='sfcode4126' /></p>
<div class='sfcode' id='sfcode4126'>&#160;&#60;cc1:JQGrid ID=&#34;Jqgrid1&#34; runat=&#34;server&#34;&#160; MultiSelect=true Width=100% &#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;Columns&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cc1:JQGridColumn HeaderText=&#34;ID&#34; DataField=&#34;ContactID&#34; PrimaryKey=&#34;true&#34; /&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cc1:JQGridColumn HeaderText=&#34;Title&#34; DataField=&#34;Title&#34; Editable=&#34;true&#34;/&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cc1:JQGridColumn HeaderText=&#34;First Name&#34; DataField=&#34;FirstName&#34; Editable=&#34;true&#34;/&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cc1:JQGridColumn HeaderText=&#34;Last Name&#34; DataField=&#34;LastName&#34; Editable=&#34;true&#34;/&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cc1:JQGridColumn HeaderText=&#34;Email Address&#34; DataField=&#34;EmailAddress&#34; Editable=&#34;true&#34;/&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/Columns&#62;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;ToolBarSettings ShowRefreshButton=&#34;True&#34; ShowSearchButton=&#34;True&#34; /&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;/cc1:JQGrid&#62;</div>
</p>
<p>In the Page_Load event:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8576' value='Select Code' data-codeid='sfcode8576' /></p>
<div class='sfcode' id='sfcode8576'>&#160;DataTable dt = testData.GetContactDataTable();</p>
<p>&#160;Jqgrid1.DataSource = dt;<br />&#160;Jqgrid1.DataBind();</p>
</div>
<p>When I run it I get the results in the jqGrid.&#160; Great!&#160; When I looked at the code behind, I notice that it fires up twice. I forgot to check for postbacks, so I added that in to see if that fixed it.&#160; Nope.&#160; If I take away the jqGrid the page load only fires once.&#160; So somewhere it&#39;s firing it twice.&#160; I&#39;m thinking it must be something simple that i&#39;ve overlooked but can&#39;t figure get it out of the head. <img class="spSmiley" style="margin:0" title="Yell" src="/blog/wp-content/forum-smileys/sf-yell.gif" alt="Yell" /></p>
<p>Any suggestions are greatly appreciated!</p>
]]></description>
        	        	<pubDate>Tue, 10 Apr 2012 03:42:59 +0300</pubDate>
        </item>
</channel>
</rss>