<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>p2p.wrox.com Forums - ASP.NET 3.5 Professionals</title>
		<link>http://p2p.wrox.com</link>
		<description>If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.</description>
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 11:28:51 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://p2p.wrox.com/images/misc/rss.jpg</url>
			<title>p2p.wrox.com Forums - ASP.NET 3.5 Professionals</title>
			<link>http://p2p.wrox.com</link>
		</image>
		<item>
			<title>ICallbackEventHandler.RaiseCallbackEvent</title>
			<link>http://p2p.wrox.com/asp-net-3-5-professionals/77058-icallbackeventhandler-raisecallbackevent.html</link>
			<pubDate>Tue, 17 Nov 2009 08:53:21 GMT</pubDate>
			<description><![CDATA[Hi all,
I've been looking into the MSDN exampe of how to implement a simple client/server callback, which involves implementing the...]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
I've been looking into the MSDN exampe of how to implement a simple client/server callback, which involves implementing the ICallbackEventHandler interface, which works fine. <a href="http://msdn.microsoft.com/en-us/library/ms178210%28VS.80%29.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/ms178210(VS.80).aspx</a><br />
<br />
The example shows that you can pass an extra context value with the partial postback, and you can also pick it up on the return client callback function. Yup, understood and I can see how that works.<br />
<br />
However, the implementation of &quot;RaiseCallbackEvent&quot; function on the server side accepts only one parameter and there seems no way of accessing the context value in the code behind, and have the ability to manipulate if needed?<br />
<br />
Here's the example I've been looking at:<br />
<br />
1. A button fires a javascript function:<br />
&lt;button type=&quot;button&quot; onclick=&quot;LookUpStock()&quot;&gt;Look Up Stock&lt;/button&gt;<br />
<br />
2. The javascript function:<br />
&lt;script type=&quot;text/ecmascript&quot;&gt;<br />
        function LookUpStock()<br />
        {<br />
            var lb = document.getElementById(&quot;ListBox1&quot;);<br />
            var product = lb.options[lb.selectedIndex].text;<br />
            CallServer(product, &quot;mycontextval&quot;);<br />
        }<br />
    <br />
        function ReceiveServerData(rValue,contextvalue)<br />
        {   <br />
            document.getElementById(&quot;ResultsSpan&quot;).innerHTML = rValue + ' ' + contextvalue;<br />
        }<br />
  &lt;/script&gt;<br />
<br />
3. The Call Server Javascript call which fires the postback and contains the parameters and return client callback function:<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
//&lt;![CDATA[<br />
function CallServer(arg, context){ WebForm_DoCallback('__Page',arg,ReceiveServerData,  context,null,false);}//]]&gt;<br />
&lt;/script&gt;<br />
<br />
You can see the &quot;arg&quot; AND &quot;context&quot; values in the WebForm_DoCallback function, but you cannot seem to access it on the server as the RaiseCallbackEvent event signature has only one string parameter, and handles the in coming &quot;arg&quot; value only: <br />
<br />
void ICallbackEventHandler.RaiseCallbackEvent(String eventArgument)<br />
        {<br />
            // code here<br />
        }<br />
<br />
Does anyone know how you can access the context value in the code behind? As it seems to be sent to the server. I can see how everything hangs together, and how the calls are working, just can't work out how to to access the context value server side!<br />
<br />
Any help would be appreciated...<br />
Regards<br />
Elwappo</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/asp-net-3-5-professionals-352/">ASP.NET 3.5 Professionals</category>
			<dc:creator>elwappo</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/asp-net-3-5-professionals/77058-icallbackeventhandler-raisecallbackevent.html</guid>
		</item>
		<item>
			<title>Non visual control development in window forms applications</title>
			<link>http://p2p.wrox.com/asp-net-3-5-professionals/77029-non-visual-control-development-window-forms-applications.html</link>
			<pubDate>Sat, 14 Nov 2009 02:05:03 GMT</pubDate>
			<description>Hi,

I have been developing an desktop application in VB.NET 3.5. I have come across a situation where i need to develop a user control that contains...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have been developing an desktop application in <acronym title="vBulletin">VB</acronym>.NET 3.5. I have come across a situation where i need to develop a user control that contains infragistics validator components and work as  an custom validator. At the moment, user control is fully functional. Only to thing to work out at the moment is to make it  non visible in the form design window and place control on the component try likewise where timer control/menu strip control appears, when it is dragged and dropped on to the windows form.<br />
<br />
In web development, we have namespace System.Web.UI that leverage us with the [NonVisualControl] Attribute Class, Do we have something same for desktop application development as well.<br />
Help would be really appreciated.[:)]</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/asp-net-3-5-professionals-352/">ASP.NET 3.5 Professionals</category>
			<dc:creator>pratik28</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/asp-net-3-5-professionals/77029-non-visual-control-development-window-forms-applications.html</guid>
		</item>
		<item>
			<title>Event In User Control.</title>
			<link>http://p2p.wrox.com/asp-net-3-5-professionals/77017-event-user-control.html</link>
			<pubDate>Fri, 13 Nov 2009 13:05:02 GMT</pubDate>
			<description>Hello Friends,
I have telrik combo box , I m using this control as my Custom Control. Telrik combobox has an event named “ItemsRequested”.
I hv made...</description>
			<content:encoded><![CDATA[<div>Hello Friends,<br />
I have telrik combo box , I m using this control as my Custom Control. Telrik combobox has an event named “ItemsRequested”.<br />
I hv made an user control in which I have made a property suppose :<br />
    public string Query<br />
    {<br />
        get { return _Query; }        set { _Query = value; }<br />
    }<br />
  <br />
Now I want to create an event for this control in my<b> UserControl.ascx.cs</b> file using delegate according to “Query “ property’s value that has been set for this control by user.<br />
  protected void Page_Load(object sender, EventArgs e)<br />
  {<br />
         if (_Query == &quot;anything&quot;)<br />
        {<br />
                 RadComboBox1.ItemsRequested += new   Telerik.Web.UI.RadComboBoxItemsRequestedEventHandl  er(KeyPressOnCombo);<br />
         }<br />
}<br />
  <br />
Please tell me that in which event I can create this event because if I do this in Page_load of the control then I am getting my Control’s property always is blank while I have set the property with a string value.<br />
 <br />
I hope I have described my query nicely.<br />
 <br />
 <br />
Thanks!!</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/asp-net-3-5-professionals-352/">ASP.NET 3.5 Professionals</category>
			<dc:creator>dpkbahuguna</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/asp-net-3-5-professionals/77017-event-user-control.html</guid>
		</item>
		<item>
			<title>How to Make Live Broadcast on the web page</title>
			<link>http://p2p.wrox.com/asp-net-3-5-professionals/76930-how-make-live-broadcast-web-page.html</link>
			<pubDate>Fri, 06 Nov 2009 13:10:38 GMT</pubDate>
			<description><![CDATA[I really want to know how i can broadcast(live) in my web page[:confused:]

what kind of control to use nd .....just how to do it.......]]></description>
			<content:encoded><![CDATA[<div>I really want to know how i can broadcast(live) in my web page[:confused:]<br />
<br />
what kind of control to use nd .....just how to do it.... <br />
<br />
really..!!!!!!![:confused:][:confused:][:confused:]</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/asp-net-3-5-professionals-352/">ASP.NET 3.5 Professionals</category>
			<dc:creator>vivek.talkin</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/asp-net-3-5-professionals/76930-how-make-live-broadcast-web-page.html</guid>
		</item>
		<item>
			<title>Domain and Subdomain</title>
			<link>http://p2p.wrox.com/asp-net-3-5-professionals/76892-domain-subdomain.html</link>
			<pubDate>Wed, 04 Nov 2009 10:17:19 GMT</pubDate>
			<description><![CDATA[Hello Friends,

I'm working on property portal where i've to implement subdomain concept.

* for example *http://www.myDomain.com is url of my...]]></description>
			<content:encoded><![CDATA[<div>Hello Friends,<br />
<br />
I'm working on property portal where i've to implement subdomain concept.<br />
<br />
<b> for example </b><a href="http://www.myDomain.com" target="_blank">http://www.myDomain.com</a> is url of my site.<br />
And also, there are some locations as Noida,Gurgaon and etc. As any user click on <b>Noida</b> then my site should display the url as shown here <b><a href="http://noida.myDomain.com" target="_blank">http://noida.myDomain.com</a></b>. For this i've implemented subdomain concept and also created some subdomain in Domain Panel. But now i've to ask <b>Should i've to keep App_code and web.config</b> file in subdomain(noida) folder as well because if i don't upload <b>App_Code and web.config</b> file in subdomain folder then it raise error(s). Is it any other way to implement this concept(Sub domain) please let me know.</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/asp-net-3-5-professionals-352/">ASP.NET 3.5 Professionals</category>
			<dc:creator>Manoj Bisht</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/asp-net-3-5-professionals/76892-domain-subdomain.html</guid>
		</item>
		<item>
			<title>Avoid Duplicate insertion into DB</title>
			<link>http://p2p.wrox.com/asp-net-3-5-professionals/76891-avoid-duplicate-insertion-into-db.html</link>
			<pubDate>Wed, 04 Nov 2009 09:47:42 GMT</pubDate>
			<description>On ASP.NET 3.5 page, there is a dorpdownlist (shows travelers), image and AJAX popup control extender associated with image to open Formview in it...</description>
			<content:encoded><![CDATA[<div>On ASP.NET 3.5 page, there is a dorpdownlist (shows travelers), image and AJAX popup control extender associated with image to open Formview in it (in a Panel) to create new traveler if it is not in the list.<br />
<br />
I am using LINQ to SQL to generate new Traveler ID and record insertion is happening into DB through simple configuration of FormView control.<br />
<br />
The problem is: when I add new traveler by open and filling data into FormView control it works fine. But when I refresh Page just after that, it adds same record again.<br />
<br />
Is there any way to stop doing that???<br />
<br />
I can send you screenshots and code, if you please mention your email.<br />
Thanks very much.</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/asp-net-3-5-professionals-352/">ASP.NET 3.5 Professionals</category>
			<dc:creator>farhhan</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/asp-net-3-5-professionals/76891-avoid-duplicate-insertion-into-db.html</guid>
		</item>
		<item>
			<title>Save multiple rows at once.</title>
			<link>http://p2p.wrox.com/asp-net-3-5-professionals/76826-save-multiple-rows-once.html</link>
			<pubDate>Fri, 30 Oct 2009 10:01:22 GMT</pubDate>
			<description>Hello Friends,

     I have to make an Interface in ASP.Net using C#. I have to take multiple rows at once maybe using Grid. I mean suppose user has...</description>
			<content:encoded><![CDATA[<div><font face="Times New Roman"><font size="3"><font color="#000000">Hello Friends,</font></font></font><br />
<br />
<font size="3"><font color="#000000"><font face="Times New Roman">     I have to make an Interface in ASP.Net using C#. I have to take multiple rows at once maybe using Grid. I mean suppose user has to put 5 or more rows and in one click all row should be saved into database. Please advice what the way and server control should be best to do it.</font></font></font><br />
<br />
<br />
<font face="Times New Roman"><font size="3"><font color="#000000">Thanks!</font></font></font><br />
<font face="Times New Roman"><font size="3"><font color="#000000">Cheers!!</font></font></font></div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/asp-net-3-5-professionals-352/">ASP.NET 3.5 Professionals</category>
			<dc:creator>dpkbahuguna</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/asp-net-3-5-professionals/76826-save-multiple-rows-once.html</guid>
		</item>
		<item>
			<title>Is it possible to create anti-virus using C#.net?</title>
			<link>http://p2p.wrox.com/asp-net-3-5-professionals/76823-possible-create-anti-virus-using-c-net.html</link>
			<pubDate>Fri, 30 Oct 2009 04:31:26 GMT</pubDate>
			<description>Hi all,
Is it possible to create anti-virus using C#.net?
...Mohak</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
Is it possible to create anti-virus using C#.net?<br />
...Mohak</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/asp-net-3-5-professionals-352/">ASP.NET 3.5 Professionals</category>
			<dc:creator>mohak</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/asp-net-3-5-professionals/76823-possible-create-anti-virus-using-c-net.html</guid>
		</item>
		<item>
			<title>Hiding FileUpload Control</title>
			<link>http://p2p.wrox.com/asp-net-3-5-professionals/76792-hiding-fileupload-control.html</link>
			<pubDate>Wed, 28 Oct 2009 04:52:38 GMT</pubDate>
			<description>Hi All,
for cosmetic reaons I need to hide the file upload control and just expose an image button.
This all seems fine, I have the image button that...</description>
			<content:encoded><![CDATA[<div>Hi All,<br />
for cosmetic reaons I need to hide the file upload control and just expose an image button.<br />
This all seems fine, I have the image button that is firing the file upload control and the user can select the file.<br />
 <br />
Howver when a different button is clicked to submit the form the Fileupload box clears before the page posts back.<br />
Correction: The file doesn't post back, it clears the file upload control and gives it focus, I have to press the submit button again to post back, but the file has gone by then.<br />
 <br />
If I dont use the image button to load hte fileupload and show use the regular Browse button, the form submit button works correctly.<br />
 <br />
Why would an asp:imagebutton clear the fileupload control? <br />
It should it even know it is there?<br />
 <br />
Any assistance would be greatly appreciated.<br />
 <br />
Regards,<br />
Rod<br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><font size="2"><font color="#0000ff"><br />
<font size="2"><font color="#0000ff">&lt;</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">asp</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">:</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">ImageButton</font></font></font></font><br />
<font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">ID</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;ImageButton2&quot;</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">ImageUrl</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;/Interface/Images/UploadImagesLink.gif&quot;</font></font><br />
</font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">OnClientClick</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;triggerFileUpload();return false;&quot;</font></font><br />
</font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">runat</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;server&quot;</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">/&gt;</font></font><br />
</font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&lt;</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">asp</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">:</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">ImageButton</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">ID</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;ImageButton3&quot;</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">ImageUrl</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;/Interface/Images/EnterLink.gif&quot;</font></font><br />
</font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">runat</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;server&quot;</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">onclick</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;EnterImageButton_Click&quot;</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">/&gt;</font></font><br />
</font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&lt;</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">asp</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">:</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">Button</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">ID</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;Button2&quot;</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">runat</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;server&quot;</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">onclick</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;Button1_Click&quot;</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">Text</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;Button&quot;</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">/&gt;</font></font><br />
&nbsp;<br />
</font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&lt;</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">asp</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">:</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">FileUpload</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">ID</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;FileUpload2&quot;</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">runat</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;server&quot;</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">/&gt;</font></font><br />
</font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&lt;</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">script</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">type</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;text/javascript&quot;&gt;</font></font><br />
</font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">function</font></font></font></font><font size="2"> triggerFileUpload() {</font><br />
<font size="2">document.getElementById(</font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">'&lt;%= FileUpload1.ClientID.ToString() %&gt;'</font></font></font></font><font size="2">).click();</font><br />
<font size="2">}</font><br />
<font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&lt;/</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">script</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&gt;</font></font><br />
</font></font></code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/asp-net-3-5-professionals-352/">ASP.NET 3.5 Professionals</category>
			<dc:creator>rodmcleay</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/asp-net-3-5-professionals/76792-hiding-fileupload-control.html</guid>
		</item>
	</channel>
</rss>
