Usercontrol and scriptmanagerproxy - need helphttp://forums.asp.net/t/1059480.aspx/1?Usercontrol+and+scriptmanagerproxy+need+helpMon, 14 Sep 2009 09:19:02 -040010594801517064http://forums.asp.net/p/1059480/1517064.aspx/1?Usercontrol+and+scriptmanagerproxy+need+helpUsercontrol and scriptmanagerproxy - need help <p>I have a user control, which cotains a scriptmanager and updatepanel. Inside the update panel I have a calendar control and a textbox. On selectionchange event of the calendar contol, i store the claendar value into the the text box. it work fine.</p> <p>but when i try to drag this user control more than once on my page, it gives me an error that only once instance of the script manager can be used. I understand this? and the soultion is to use scriptmanagerproxy? but how, i need an example or some url that can help me with this.</p> <p>&nbsp;</p> <p>thanks in advance.</p> 2007-01-03T19:28:42-05:001517160http://forums.asp.net/p/1059480/1517160.aspx/1?Re+Usercontrol+and+scriptmanagerproxy+need+helpRe: Usercontrol and scriptmanagerproxy - need help <p>Hi FutureGuru,</p> <p>You can Add an scriptmanagerproxy to your user control the same way as you add you scriptmanager control. The scriptmanagerproxy reacts the same way the scriptmanager. You have to add the scriptmanager to your webpage and the scriptmanagerproxy to your user control and your done!</p> <p>Regards,</p> 2007-01-03T20:22:30-05:001995224http://forums.asp.net/p/1059480/1995224.aspx/1?Re+Usercontrol+and+scriptmanagerproxy+need+helpRe: Usercontrol and scriptmanagerproxy - need help <p>Hi Dennis&nbsp;</p> <p>I have same problem and i did like you said in above thread, but no difference. Is there something&nbsp; i m still missing?</p> <p>Regards</p> 2007-11-07T19:55:27-05:001995228http://forums.asp.net/p/1059480/1995228.aspx/1?Re+Usercontrol+and+scriptmanagerproxy+need+helpRe: Usercontrol and scriptmanagerproxy - need help <p>hello. </p> <p>well~, you don't really need to add a scriptmanagerproxy to your control. you just need to put the scriptmanager on the page (or master page) and then just drop the updatepanel on your user control. that should work without any problems...</p> 2007-11-07T19:58:22-05:001995550http://forums.asp.net/p/1059480/1995550.aspx/1?Re+Usercontrol+and+scriptmanagerproxy+need+helpRe: Usercontrol and scriptmanagerproxy - need help <p>Hi Luis </p> <p>In my case it little different. Its not exactly the same as the first post. I dont have UpdatePanel. All i need to make textbox work with Ajax in userControl which get called from Default.aspx page. My scriptManager is already declared in in the master page.</p> <p>&nbsp;</p> <p>Any ideas.</p> <p>Regards</p> <p>&nbsp;</p> 2007-11-08T00:23:11-05:001996028http://forums.asp.net/p/1059480/1996028.aspx/1?Re+Usercontrol+and+scriptmanagerproxy+need+helpRe: Usercontrol and scriptmanagerproxy - need help <p>hello.</p> <p>can you give more info about this? </p> 2007-11-08T08:20:24-05:001996654http://forums.asp.net/p/1059480/1996654.aspx/1?Re+Usercontrol+and+scriptmanagerproxy+need+helpRe: Usercontrol and scriptmanagerproxy - need help <p>Thanx for the reply....I can explain more in detail as:</p> <p>I m trying to use CalendarExtender in my ascx file. The issue is i cant declare ScriptManager on this page since this get called many times based on number of rows returned and u cant add more than one ScriptManager in a page.</p> <p>For this i added, the ScriptManager in the Master page. But i dont know how to use it in ascx after declaring it into the master page.</p> <p>I am able to use to it in Default.aspx page using MasterPageFile =&quot;~/MainMaster.master&quot; ; but in ascx file, i cant declare this directive. I used Reference i.e. </p> <p>&lt;%@ Reference VirtualPath=&quot;~/Mainmaster.master&quot; %&gt; ; but no use.</p> <p>The structure is of calling is ::</p> <p>MasterPage --&gt; Default.aspx --&gt; Detail.ascx</p> <p>I can use ajax upto Default.aspx but including file in Default.aspx but cant do anything in Detail.ascx file</p> <p>Any ideas.</p> <p>Regards</p> <p>&nbsp;</p> 2007-11-08T14:51:57-05:001997154http://forums.asp.net/p/1059480/1997154.aspx/1?Re+Usercontrol+and+scriptmanagerproxy+need+helpRe: Usercontrol and scriptmanagerproxy - need help <p>hello again.</p> <p>but why would you want to&nbsp;get a reference to the&nbsp;scriptmanager control on your user control? if it's on the master and the master was applied to the page that has the user control then you don't need to do anything else.</p> 2007-11-08T19:00:37-05:001997206http://forums.asp.net/p/1059480/1997206.aspx/1?Re+Usercontrol+and+scriptmanagerproxy+need+helpRe: Usercontrol and scriptmanagerproxy - need help <p>My default is on master. My child which is user web control is at the end is called by default. So basically master was applied to the default page.</p> <p>If i m doing something wrong, let me know that....My problem as u know is that ajax is not wroking in the chold control</p> 2007-11-08T19:29:52-05:001997211http://forums.asp.net/p/1059480/1997211.aspx/1?Re+Usercontrol+and+scriptmanagerproxy+need+helpRe: Usercontrol and scriptmanagerproxy - need help <p>hello again.</p> <p>ok, please build a small demo page that shows this. you'll need a master, a user control and a page that uses that control. post it here and i'll take a look, ok?</p> 2007-11-08T19:32:46-05:001997214http://forums.asp.net/p/1059480/1997214.aspx/1?Re+Usercontrol+and+scriptmanagerproxy+need+helpRe: Usercontrol and scriptmanagerproxy - need help <p>ok ....fair ...give me some time ... probably 30 mins</p> 2007-11-08T19:34:29-05:001997374http://forums.asp.net/p/1059480/1997374.aspx/1?Re+Usercontrol+and+scriptmanagerproxy+need+helpRe: Usercontrol and scriptmanagerproxy - need help <p>i cant just create the situtation its my project....its just too frustrating..</p> <p>I can send you some basic code of my curretn proj and may be u can help</p> 2007-11-08T20:42:43-05:001997388http://forums.asp.net/p/1059480/1997388.aspx/1?Re+Usercontrol+and+scriptmanagerproxy+need+helpRe: Usercontrol and scriptmanagerproxy - need help <p>hello again.</p> <p>well, maybe...but if you can't reproduce it with simple code, then i believe that you must be doing something wrong in your project...</p> 2007-11-08T20:50:44-05:001997418http://forums.asp.net/p/1059480/1997418.aspx/1?Re+Usercontrol+and+scriptmanagerproxy+need+helpRe: Usercontrol and scriptmanagerproxy - need help <p>i mean to say its datagrid work and then there are too much work to do to get to that point.</p> <p>&nbsp;</p> 2007-11-08T21:07:59-05:001997423http://forums.asp.net/p/1059480/1997423.aspx/1?Re+Usercontrol+and+scriptmanagerproxy+need+helpRe: Usercontrol and scriptmanagerproxy - need help <p>if you just try to understand what i m telling , i&nbsp; guess u would see:</p> <p>My default.aspx page dynamically loads the Template file and Template file is not included in the master page.</p> <p>Only default.aspx page is included in the master page with the following line: </p> <font size="2"> <p>&lt;%</font><font color="#0000ff" size="2">@</font><font size="2"> </font><font color="#a31515" size="2">Page</font><font size="2"> </font><font color="#ff0000" size="2">Language</font><font color="#0000ff" size="2">=&quot;vb&quot;</font><font size="2"> </font><font color="#ff0000" size="2">AutoEventWireup</font><font color="#0000ff" size="2">=&quot;false&quot;</font><font size="2"> </font><font color="#ff0000" size="2">MasterPageFile</font><font size="2"> </font> <font color="#0000ff" size="2">=&quot;~/MainMaster.master&quot;</font><font size="2"> </font> <font color="#ff0000" size="2">CodeFile</font><font color="#0000ff" size="2">=&quot;Dispatch2.aspx.vb&quot;</font><font size="2"> %&gt;</font></p> <p><font size="2">&nbsp;So the ajax objects declared in default.aspx works fine.</font><font size="2"></p> </font> <p>and default.aspx calls Template whnever it needs to load some data and template file doesnt know anything about master page as it doesnt have any information.</p> <p>For that , i included scriptmanagerproxy but it didnt work </p> 2007-11-08T21:12:48-05:001997447http://forums.asp.net/p/1059480/1997447.aspx/1?Re+Usercontrol+and+scriptmanagerproxy+need+helpRe: Usercontrol and scriptmanagerproxy - need help <p>hello</p> <p>what you're not understanding is that you don't need that. the scriptmanagerproxy only objectives are to let you add scripts or web service references specific to one page. what i'm trying to tell is that if your page is not working, it's not because you're not dropping a scriptmanagerproxy. it's because you're doing something wrong in another place. </p> <p>&nbsp;</p> 2007-11-08T21:28:03-05:001997464http://forums.asp.net/p/1059480/1997464.aspx/1?Re+Usercontrol+and+scriptmanagerproxy+need+helpRe: Usercontrol and scriptmanagerproxy - need help <p>I tried with that as well; by adding and by removing scriptmanagerproxy&nbsp;; all possible tricks i applied ....</p> <p>Let me ask you one thing?</p> <p>1- How does the ajax object in my child control know where to find ScriptManager ?</p> <p>&nbsp;</p> 2007-11-08T21:35:34-05:001997724http://forums.asp.net/p/1059480/1997724.aspx/1?Re+Usercontrol+and+scriptmanagerproxy+need+helpRe: Usercontrol and scriptmanagerproxy - need help <p>Hello Luis</p> <p>&nbsp; I have created the dummy project and I have sent you the details via email.</p> <p>I created a separate account (email) as gmail wasnt accepting the attachment.</p> <p>The details of login to email accout are also sent to you.</p> <p>regards</p> <p>&nbsp;</p> 2007-11-09T03:03:28-05:001997951http://forums.asp.net/p/1059480/1997951.aspx/1?Re+Usercontrol+and+scriptmanagerproxy+need+helpRe: Usercontrol and scriptmanagerproxy - need help <p>hello.</p> <p>please send it to me at my gmail account. just zip the project and change the extension (for isntance, change it from zip to zip2)</p> 2007-11-09T08:41:11-05:001998538http://forums.asp.net/p/1059480/1998538.aspx/1?Re+Usercontrol+and+scriptmanagerproxy+need+helpRe: Usercontrol and scriptmanagerproxy - need help <p>I sent an email to your gmail account</p> <p>&nbsp;</p> <p>Thanks</p> 2007-11-09T15:10:52-05:00