Search

You searched for the word(s): userid:645568

Matching Posts

  • Re: Compatibility patch for WebKit (Safari 3) 3.5.21022.8 MicrosoftAjax.debug.en-US.js

    Hi, I've got some issues under Safari 3. I've just modified applied the code you've mentioned to the following file. However, the problem (with Panel Refreshing) is still there. "C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\MicrosoftAjaxLibrary\System.Web.Extensions\1.0.61025.0" How am I supposed to apply this patch? How should I compile the changes into a new .dll???? Thanks.
    Posted to Free For All (Forum) by mehdi_mousavi on 8/10/2008
  • ModalPopupExtender

    Hi folks, Consider a user control that contains a ModalPopupExtender. The ModalPopupExtender's DynamicServiceMethod has been set to a page method. Since this is a user control, the method gets called on the hosting page, not the control itself. On the other hand, the method has to be defined static.In this method, I need to load a control dynamically, and render it to a given String, and finally return the String, so that the dynamically loaded control is just shown. However, the LoadControl
  • LoadControl and the PostBack problem

    Hi folks, Consider a page consisting of a treeview, and a panel. The panel is supposed to be refreshed based on treeview node selection. protected void tree_SelectedNodeChanged(object sender, EventArgs e) { TreeNode node = this.tree.SelectedNode; if (node != null) LoadMyControls(node); } Where LoadMyControls simply loads the associated control based on the node and adds it to the panel's controls collection. The loaded control, on the other side, is supposed to have a DropDownList control, which
  • Re: WebResource problems

    Considering the following code you already wrote, would you please let me know how to prevent the same literal control from being added to the page over and over again when more than one instance of the control is added to the main page? For example, if I put 2 instances of "myWebCtrl" on the page.aspx, the literalCtrl you already wrote will be added twice to the page. LiteralControl include = new LiteralControl(String.Format(includeTemplate, includeLocation)); Page.Header.Controls.Add(include);
    Posted to Hosting Open Forum (Forum) by mehdi_mousavi on 2/23/2006
  • Re: WebResource problems

    Well, the problem is solved. and now the moral conclusion: You cannot name a resource file as "panel s .js" and access it through the "panel.js" resource name using whatever function. I lost many days on this Thank you for your time. Mehdi
    Posted to Hosting Open Forum (Forum) by mehdi_mousavi on 2/23/2006
  • Re: WebResource problems

    I've created a simple myAlert.js file as follows, added it to project and set it as embedded resource in VS2005: function myalert() {alert( 'test' );} And here's the new OnPreRender function: protected override void OnPreRender( EventArgs e) { Page.ClientScript.RegisterClientScriptResource( typeof (MyWebCtrl), "WebCtrlLib.myAlert.js" ); base .OnPreRender(e); } and the RenderEndTag method: public override void RenderEndTag( HtmlTextWriter output) { output.WriteLine( "<script type=\"text/javascript
    Posted to Hosting Open Forum (Forum) by mehdi_mousavi on 2/23/2006
  • Re: WebResource problems

    Hi AnatolyR, I've got exatly the same problem you mentioned above. I've got a web control with the following characteristics: Assembly name: WebCtrlLib Default namespace: WebCtrlLib I've overrided the OnPreRender method of myWebCtrl class as follows: protected override void OnPreRender( EventArgs e) { Page.ClientScript.RegisterClientScriptResource( typeof ( myWebCtrl ), "WebCtrlLib.WebCtrlLib.myjavascriptfile.js" ); Page.ClientScript.RegisterClientScriptResource( typeof ( myWebCtrl ), "WebCtrlLib
    Posted to Hosting Open Forum (Forum) by mehdi_mousavi on 2/23/2006
Page 1 of 1 (7 items)