Click here to Skip to main content
15,888,908 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Webmethod needs to return string to Javascript function for processing. Pin
Not Active21-Jun-10 6:40
mentorNot Active21-Jun-10 6:40 
GeneralRe: Webmethod needs to return string to Javascript function for processing. Pin
Hardus Lombaard21-Jun-10 20:06
Hardus Lombaard21-Jun-10 20:06 
GeneralRe: Webmethod needs to return string to Javascript function for processing. Pin
Not Active22-Jun-10 1:34
mentorNot Active22-Jun-10 1:34 
GeneralRe: Webmethod needs to return string to Javascript function for processing. Pin
Hardus Lombaard22-Jun-10 1:38
Hardus Lombaard22-Jun-10 1:38 
Questionasp.net smtp error Pin
aamirzada1221-Jun-10 3:03
aamirzada1221-Jun-10 3:03 
AnswerRe: asp.net smtp error Pin
Not Active21-Jun-10 3:11
mentorNot Active21-Jun-10 3:11 
Answer[Cross-post] asp.net smtp error Pin
Sandeep Mewara22-Jun-10 5:05
mveSandeep Mewara22-Jun-10 5:05 
QuestionUsing Ajax control in User Control (ascx) [modified] Pin
-Muc_21-Jun-10 2:37
-Muc_21-Jun-10 2:37 
Tach experts ..

I have ne problem where I do not know to solve that...

I have a control that is added in a page. Basically it is a Content Management System.

It selects a new page and can add different controls.

In the control itself, I use a ModalPopupvon Ajax, but who needs a script manager.

Now I wonder whether in the side where the control is already added a ScriptManager exists otherwise I add one.

Here
void AddScriptMagnager()
        {
            //get the existing ScriptManager if it exists on the page

            ScriptManager _scriptMan = ScriptManager.GetCurrent(this.Page); 

            if (_scriptMan == null)
            {
                //create new ScriptManager and EnablePartialRendering or whatever
                _scriptMan = new ScriptManager();
                _scriptMan.EnablePartialRendering = true;
                _scriptMan.EnableScriptLocalization = true;

                if (this.MuMPage.Page.Form != null)
                {
                    foreach (Control ctrl in this.MuMPage.Page.Form.Controls)
                    {
                      this.MuMPage.Page.Controls.Add(_scriptMan);
                    }                    
                }
            }
        }

I always get the error that a Extendersteuerelemente may not be registered before PreRender.


I appreciate any help and thanks a lot in advance.

modified on Monday, June 21, 2010 9:02 AM

AnswerRe: Using Ajax control in User Control (ascx) Pin
Not Active21-Jun-10 3:01
mentorNot Active21-Jun-10 3:01 
AnswerRe: Using Ajax control in User Control (ascx) Pin
Not Active21-Jun-10 3:05
mentorNot Active21-Jun-10 3:05 
GeneralRe: Using Ajax control in User Control (ascx) Pin
-Muc_21-Jun-10 3:09
-Muc_21-Jun-10 3:09 
GeneralRe: Using Ajax control in User Control (ascx) Pin
Not Active21-Jun-10 3:12
mentorNot Active21-Jun-10 3:12 
GeneralRe: Using Ajax control in User Control (ascx) Pin
-Muc_21-Jun-10 4:37
-Muc_21-Jun-10 4:37 
GeneralRe: Using Ajax control in User Control (ascx) Pin
-Muc_21-Jun-10 7:33
-Muc_21-Jun-10 7:33 
GeneralRe: Using Ajax control in User Control (ascx) Pin
Not Active21-Jun-10 11:07
mentorNot Active21-Jun-10 11:07 
GeneralRe: Using Ajax control in User Control (ascx) Pin
-Muc_21-Jun-10 11:20
-Muc_21-Jun-10 11:20 
GeneralRe: Using Ajax control in User Control (ascx) Pin
Not Active21-Jun-10 11:42
mentorNot Active21-Jun-10 11:42 
GeneralRe: Using Ajax control in User Control (ascx) [modified] Pin
-Muc_21-Jun-10 11:45
-Muc_21-Jun-10 11:45 
QuestionIf i Close to browser Pin
Rajeshwar Code- Developer21-Jun-10 2:33
Rajeshwar Code- Developer21-Jun-10 2:33 
AnswerRe: If i Close to browser Pin
Venkatesh Mookkan21-Jun-10 20:12
Venkatesh Mookkan21-Jun-10 20:12 
QuestionHow solve this the status code returned from the server was: 504 in asp.net 2005 with using of AJAX Pin
vidyashankar21-Jun-10 1:35
vidyashankar21-Jun-10 1:35 
AnswerRe: How solve this the status code returned from the server was: 504 in asp.net 2005 with using of AJAX Pin
Ankur\m/21-Jun-10 1:53
professionalAnkur\m/21-Jun-10 1:53 
Questionimages are not uploading in windows7 and vista using asp.net with c# Pin
developerit21-Jun-10 1:32
developerit21-Jun-10 1:32 
AnswerRe: images are not uploading in windows7 and vista using asp.net with c# Pin
Abhijit Jana21-Jun-10 2:13
professionalAbhijit Jana21-Jun-10 2:13 
AnswerRe: images are not uploading in windows7 and vista using asp.net with c# Pin
Tej Aj21-Jun-10 3:23
Tej Aj21-Jun-10 3:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.