Showing posts with label inside. Show all posts
Showing posts with label inside. Show all posts

Wednesday, March 28, 2012

why page load is called when an updatepanel is updated

Hi,

i have just observed that when a request is posted to server inside an updatepanel. then load method of page is called.

create a page with script manager and updatepanel. put a button inside the panel. add a msgbox in the load eventhandler of page.

now when u will click the button page load eventhandler would be executed. i was expecting that only the load event of update panel would be executed not the page one. because what ajax says is that whole page is not reloaded only the updatepanel is reloaded. does it mean that the ajax only helps to not activate the back button on browser but underlying it reloads the page in fact.

thanks

Hi i think you misunderstood something. what AJAX meant for is not exactly for asynchronous postbacks. This means that you cant execute two threads parallelly. But what it does is partial rendering. During an async postback all the usual events will be executed but only the contents inside the Update panel will be rendered.


hello.

well, what they're trying to say is that only the updatepanel contents will be updated during a partial postback. you can use the scriptmanager isinasyncpostback property to see if you're in a partial postback scenario:

http://asp.net/AJAX/Documentation/Live/mref/P_System_Web_UI_ScriptManager_IsInAsyncPostBack.aspx


rex_alias:

Hi i think you misunderstood something. what AJAX meant for is not exactly for asynchronous postbacks. This means that you cant execute two threads parallelly. But what it does is partial rendering. During an async postback all the usual events will be executed but only the contents inside the Update panel will be rendered.

I'm pretty sure that's exactly what AJAX is meant for.

And you can execute two threads parallelly.

Partial rendering isn't related to AJAX, you can have partial rendering without AJAX, and you can have AJAX without partial rendering, although it's implemented in the UpdatePanel and its implementation uses AJAX.

And yes, the whole life cycle of the page happens on the server, but only the relevant portions of the output are rendered into a xml based diff-gram, and sent to the client.


This is the nature of Update Panel. You can filter out the Regular Post Back with an Async by Checking the Page ScriptManager.IsInAsyncPostBack. Or if you do not want to page to be called then use the Client Centric Development Model which is calling the Web Service or Static Page Methods.

Why this code does not work when its button is inside the AJAX “UpdatePanel” control ?

protectedvoid DownlFile_Click(object sender,EventArgs e)

{

string web_path ="./ items/part1.pdf";

string path = Server.MapPath(web_path);

FileStream MyFileStream =

newFileStream(path,FileMode.Open);

long FileSize;

FileSize = MyFileStream.Length;

byte[] Buffer =newbyte[(int)FileSize];

MyFileStream.Read(Buffer, 0, (int)MyFileStream.Length);

MyFileStream.Close();

Response.ContentType ="application/pdf";

Response.AddHeader

("content-disposition","attachment; filename=part1.pdf");

Response.BinaryWrite(Buffer);

}

Hi paradise_wolf,

You can't use Response.Write in a AsyncPostback trigger event of an UpdatePanel. You need move the button outside the UpdatePanel or register it as Postback trigger.

Hope this helps,


Hispvlong

I am not sure if "RegisterAsyncPostBackControl" registers the button asPostback triggeras you suggested to do. I am getting this error message:

"Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.

Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.

Details: Error parsing near '%PDF-1.3%□□3389 0'."

Below is the relevant ASP.NET web form code and the added C# code:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

protectedvoid Page_Load(object sender,EventArgs e)

{

ScriptManager1.RegisterAsyncPostBackControl(DownlFile);

..

}

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

<asp:UpdatePanelID="ITEMS_LIST_EREADER_PANEL" runat="server"

UpdateMode="Conditional">

<ContentTemplate>

..

<asp:ButtonID="EreaderBtn"runat="server"Text="Next"

OnClick="EreaderBtn_Click"/>

..

</ContentTemplate>

</asp:UpdatePanel>

<asp:UpdatePanelID="DOWNLOAD_PANEL"UpdateMode="Conditional"

runat="server">

<ContentTemplate>

..

<tableID="DownloadDialogTb"visible="false"runat="server">

<tr>

<tdalign="center">

<asp:ButtonID="DownlFile"runat="server"Text="Download"

OnClick="DownlFile_Click"/>

</td>

</tr>

</table>

..

</ContentTemplate>

<Triggers>

<asp:AsyncPostBackTriggerControlId="EreaderBtn"

EventName="Click"/>

</Triggers>

</asp:UpdatePanel>


Hi paradise_wolf,

You should use RegisterPostBackControl method to register a control as Postback trigger.

Hope this helps,


Thank you very much,spvlong . Big Smile

hi,

I am also getting same problem while generating PDF? i could not solver even after registring as postback trigger control. It gives me the same error.

If you have solved it, plz suggest the solution for the same.

thanks

Varsha


http://forums.asp.net/1662626/ShowThread.aspx#1662626

Monday, March 26, 2012

Will atlas:updatepanel and asp:fileupload ever be friends?

Just wondering if there ever will be support for postbacks inside a updatepanel.

Possible by adding a mode "Triggered" to the updatepanel's Mode list.
This mode could make the updatepanel only update when it's triggered by a trigger from the trigger list, or by myupdatepanel.update();

hello.

well, i'd say no you won't be able to do that. i guess that the problem is that you can't get the bytes from the input type="file" with jscript...


I know it's not possible in the current build :\

Just wondering if there is any planes to make this happen in any of the next atlas builds..
Or is it simply not possible to not trigger atlas within the updatepanel when triggering a postback?

hello.

what i was trying to say was that the problem was not related with the current build but with the way the <input type="file"> works. if i'm not mistaken, you can't get the bytes of the file by using javascript. due to this, atlas won't be able to get them too since what it does (when it performs a postback) is to go through all the controls of the form and get their values which are packed on a string that is sent back to the server. since you can't get the bytes of the file through javascript, i think that what you wask won't be possible ...though i hope i'm wrong ;)


Yes i understand that :)
But what i was hoping for, was a atlas:updatepanel mode, that enabled it to only do the javascript postback if a atlas trigger was used, or a updatepanel.update();

This would enable all controls that do a normal postback but are't stated in the triggers list, to send a normal postback.

Good example of my problem now:

My page is build up so if the user logs in, his options pops up without page refresh.
This is a picture gallery and when you log in, you can see "new album, new picture" etc..

The problem here is that i can't get the UploadPanel to be visible, since the "new picture" button is inside a updatepanel, and the uploadpanel is't.
And I cannot upload a picture if the uploadpanel is inside a atlas:updatepanel cause it won't send the file :s

So either I need to be able to run a normal postback inside a updatepanel, without atlas taking over the event, or I can't view the "new picture" link before the page has been refreshed one time.

hello.

i didn't understand the visibility problem associated with the updatepanel. can you show me the declaration of the udpatepanel? how are you hiding it? i hope that you're using css styles to do that (if you're using the visible property i'm willing to bet that the control isn't being rendered on the final page


hello.

i didn't understand the visibility problem associated with the updatepanel. can you show me the declaration of the udpatepanel? how are you hiding it? i hope that you're using css styles to do that (if you're using the visible property i'm willing to bet that the control isn't being rendered on the final page)


For now i've been using a asp:panel with visibilty value inside a updatepanel.
And then used panel.visible = true; and updatepanel.update();

With the sample code here.
Your just logged in, and you now get to view the linkbutton "Upload".
The linkbutton needs to be inside a updatepanel, since it could be displayed without pagerefresh when the user logs in.
Since it's inside a updatepanel, it can only trigger atlas postbacks, and no refreshed postbacks.
Therefore my uploadpanel also needs a updatepanel wrapped around, so it will be visible when you push the upload linkbutton. (again without page refresh)
But since the fileupload is inside a updatepanel, the fileupload won't do a real postback, and therefoer the file is't uploaded..

Solutions:
Is there a way to get the fileupload to do a valid postback, even tho it's inside a updatepanel?
Is there another way to display my fileuploadpanel with or without pagerefresh from a linkbutton within a updatepanel?

Very simple code:

<atlas:UpdatePanel ID="UploadLinkUpdatePanel" runat="server" Mode="Conditional"> <ContentTemplate> <asp:LinkButton ID="Upload" runat="server" Text="Upload" OnClick="Upload_Click" /> </ContentTemplate></atlas:UpdatePanel><atlas:UpdatePanel ID="FileUploadUpdatePanel" runat="server" Mode="Conditional"> <ContentTemplate> <asp:Panel ID="FileUploadPanel" runat="server" Visible="false"> <asp:FileUpload ID="FileUpload" runat="server" /> </asp:Panel> </ContentTemplate></atlas:UpdatePanel>
protected void Upload_Click(object sender, EventArgs e) { FileUploadPanel.Visible =true; FileUploadUpdatePanel.Update(); }

hello.

several things here: 1st, i'd use only a panel (or even a simple div control) to hide the uploadfile control. when you set the visible property of a control to false, that control will not generate HTML that is sent to the client. this is not probably what you want...

setting the mode of the updatepanel to conditional will also have different results here. this means that only one panel will be refreshed and this can be caused by a server side event fired by a control placed inside the panel or by an external control configured as a trigger.

so, in this case, i'd do the following:

1. remove the 2nd updatepanel

2. configure the visibility of the panel without using the visible property (use the css disply property)

3. use the postbackaction associated with the button (yes, use the xml script) and set it so that the target is the link button (since i haven't tried it, i'm having some doubts about this...it might not work very well...you might have to add a dummy button outside the panel so that it really makes a complete postback)

hope this helps.


First of, Can i hide\show a panel\div without using atlas?
If this is possible (without refreshing the whole page), then i might be able to do a workaround..

I'm using all these updatepanels with panels inside, so that when a user logs into my gallery, the list of albums\pictures in the current album is updated according to the users permissions,
But also admin stuff is visible, like create album etc..

All this happens without the page refreshing at all, and it's looking pretty nice :)
So the only problem now is to get the fileupload to post (and work)..

I want to have it inside a updatepanel so i can display the form without page refresh, but atm i have no idea what to do :\

PS: Demo page ishttp://vakuum.mine.nu (VERY slow)


hello.

well, you can hide/show the panel without updateanel. the updatepanel is cool because it let's you handle server side events without doing a complete postback. to show/hide an element you don't need an update panel. if i'm not mistaken, the asp.net panel control generates a div element. since you know its id, then you can simply write this javascript code to hide the panel:

document.getElementById("id of the asp.net panel").style.display = "none";

and to make it visible, just do something like this:

document.getElementById("id of the asp.net panel").style.display = "block";


Thanks =)
That just solved half of my problem :)

Now i need to set display = "none" if any other button is clicked.. guessing that will be hard :\
Hi, I have some kind of similar problem with a filupload control and updatepanels. So I wrote script to hide the fileupload on the pageload, and show/hide it whenever I need it.
I used page.registerstartupscript("shide, strshowhidescript") on every place I need it, but it never works when I call it in the method that handles an event from a button that's in the update panel. the code from that button works when I do step into, but On the screen there are no change, not even from the other code in that button which worked before I added the script. Any idea how I can overcome this?
thx.

hello.

can you show the client script code you're registering? thanks.

Saturday, March 24, 2012

Wizard Control

I am using the Wizard Control in an aspx page inside an Update Panel control. What I want to do is to navigate to this page and set which Wizard Step should be active dynamically. Something like :

if(Request["whichstep"]!=null)

Wizard1.ActiveStepIndex=int.Parse(Request["whichstep"]);

Now this works fine in that the correct Wizard step is shown when the page is loaded. But the problem is that the Wizard gets STUCK on this step. i.e. you can't use the previous/next navigation buttons to move forward or backwards.

Any help would be greatly appreciated (PS. we also tried taking the Update panel out, but the same problem exists).

HN.

can you post your code? where in your code are you checking the wizard activestepindex?

Hi boolie,

Thanks for taking the time.

The code is very simple. The page that is calling the page with the Wizard has button and its click event has Response.Redirect("WizardPage.apsx?step=3");

The page that has the Wizard on it checks on the Page_Load : if(Request["step"]!=null) Wizard1.ActiveStepIndex=Int32.Parse(Request["step"]);

As I mentioned, this works. The wizard shows the correct step. But the problem is that you can't navigate i.e. go backward or forwards using the previous/next buttons.

By the way I tried putting the code in various other events that is raised by the Wizard, they all have the same behaviour!


not sure this will fix the problem, but at least it might help eliminate some things to troubleshoot...

Are you checking for whether or not it's a postback before running the "if(Request["step"]!=null)..."?

something like this:

protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
//code would go here...
}
}

if you haven't tried this, test it and see if you notice any difference. What might be happening is that when you click on "Next" or "Previous" it's causing the page to reload which would cause the Page_Load code to run again which would show you the same step. I could be completely wrong, but at least we'll have one troubleshooting step out of the way. Let me know what happens.



Sorry. But I should have mentioned that I do test the Postback in my last Post and it still gets Stuck. Is this some kind of Bug in the Control do you think? After all they are only panels that get their visibility changed!
I kind of thought you might be checking that already. honestly, i have no idea whether or not it's a bug, but it does seem pretty strange. i'll try some tests on my own and see if i can duplicate the problem and then maybe i can help find a solution
Many Than

Many Thanks.

Looking forward to your findings.

Wizard Control, UpdatePanel, and Validation causes error in webresource.axd Bug

I have a wizard control with several steps, some of which use control validation. When placed inside an Ajax UpdatePanel, the webresource.axd javascript is no longer able to reference the controls validated in the previous step, and halts on:

WebResource.axdfunction ValidatorGetValue(id) { var control; control = document.getElementById(id); if (typeof(control.value) == "string") { return control.value; } return ValidatorGetValueRecursive(control);}

where the document.getElementById(id); returns null.

A workaround is to disable clientside validation on all validation controls, which is not a great loss when using ajax, but utterly annoying when you have gone to all the trouble of writing javascript for custom validation controls, etc.

The cause is probably complex, so I shall not comment on how it should be resolved. I assume, however, that the javascript is correct in that the controls not being rendered are in fact to be found in the DOM.

At least in my case, it would be nice if the javascript checked for null and ignored the control if it wasn't there.

Anyhow, it would be much appreciated if someone would look into it.

Thanks

In Atlas 1.0 we have updated versions of the validators that are compatible with UpdatePanel. In the current CTP I'm afraid that you'll have to use some workaround.

Thanks,

Eilon


This sounds like it could be related to my problem:

http://forums.asp.net/thread/1412888.aspx

What work arounds are available for this issue? At the moment I'm displaying all the controls in divs and just hiding them, which is pretty horrible.

Thanks,

Paul

Wizard inside of update panel, still getting postbacks

Hi,

I placed a wizard inside of an update panel and when I click on the button for the next step, I still get a postback. I have tried setting the mode to conditional and it still occurs.

I even tried making a new atlas website and putting nothing but the update panel with the wizard inside and it still does not work. Here is the code below. Any idea what I am doing wrong??

<atlas:ScriptManagerID="ScriptManager1"runat="server"/><div><atlas:UpdatePanelID="UpdatePanel1"runat="server"Mode="Conditional"><ContentTemplate><asp:WizardID="Wizard1"runat="server"><WizardSteps><asp:WizardSteprunat="server"Title="Step 1"></asp:WizardStep><asp:WizardSteprunat="server"Title="Step 2"></asp:WizardStep></WizardSteps></asp:Wizard></ContentTemplate></atlas:UpdatePanel>

Hi,

it seems that you are not setting EnablePartialRendering="True" in the ScriptManager control.

Yes you are right. In the sample code I pasted that was the problem (and I feel very stupid). However in my actual code I did remember to set partial rendering to true.

Now, that being said, I think I figured out what was wrong, and hopefully the Atlas guys watching this forum can tell us if I am correct.

A little more background on the page first, it is a content page and the master page has a flash banner on it that I put their using the asp.net 2.0 flash control. On my developoment machine I didn't have the flash file it was pointing to. Instead of throwing an exception when I view the page in my browser it just kept perpetually loading the page.

It occured to me that the update panel may not work properly if the page had never completed loading before a postback was called. All I had to do was copy the flash file from the webserver to my development system and VOILA! The page loads, the update panel works.


Hi,

glad to hear that you solved it :) I'll bookmark this post for future reference.

Wizard+updatepanel+usercontrols

I've got a problem using updatepanels inside the wizard.

Each of the wizard steps is a user control in my case, so I load the user controls into the steps. If two of my usercontrols contain updatepanels then I get "Microsoft JScript runtime error: Object required"

somewhere in the Atlas JavaScript code when using the Atlas functionality in the steps:

function destroyTree(element, markupContext) {

if (element.nodeType == 1) { //error on this line

if (element.control) {

markupContext.removeObject(element.control);

element.control.dispose();

}

var children = element.children;

for (var i = children.length - 1; i >= 0; i--) {

var node = children[i];

destroyTree(node, markupContext);

element.removeChild(node);

}

}

}

I've tried moving the scriptmanager wherever it is possible: in the page containing the wizard, in the user controls. It won't happen if I have only one usercontrol/wizard step using updatepanels. So if anyone encountered similar problems or have ideas how to make it work-reply.

have you tried setting Mode="Conditional" on all of your updatepanels?

http://forums.asp.net/thread/1268686.aspx

Thanks, that worked!

I've tried setting the mode to conditional on all updatepanels for sure, but probably missed one updatepanel that was set to always or something like that.Smile [:)]

working with dataset using asp.net ajax 1.0

I have a web service which is returning a dataset ... this dataset will be bound to a data grid inside an update panel.

How can I get that dataset to the data grid IF the web service is being called via java script ?

Am trying to avoid getting back XML as that would mean a lot of DOM parsing and I dont want to use the DOM structure unless abs necessary ?

If the webservice is being called using javascript, I assume it is on the clientside.

But the binding to the data grid will have to be done on the server.

One way to go is to call the webservice on the server and bind the returned dataset to the datagrid.


Hi,

Maybe this article is helpful to you:http://dotnetslackers.com/articles/ajax/ASPNETAjaxGridAndPager.aspx

Best Regards

Wednesday, March 21, 2012

Wrapping a Login control with an UpdatePanel

Hi All,

This is my first ATLAS experiment. I'm trying to warp a Login control with an UpdatePanel. It seems that putting the UpdatePanel inside a template is not possible, which leaves me with the option of putting the Login control inside the ContentTemplate of the UpdatePanel instead. However, this results in the TriggerControlEvent not being able to reference the login button (which has to reside within the Login control in order to work, no?)

Kind of a chicken an egg problem it seems. Anyone has an idea how to acheive this behaviour?

Thanks,

Yuval

Just found out that the ControlTriggerEvent is not required, so no problem there.


hello.

1. you don't need a trigger if the control that has an event you want to handle is inside an updatepanel. the panel will detect the postback and treat it accordingly.

2. there are known issues that won't let you put the login control inside an update panel (search the foruns for a complete description of the problem).

Writing Javascript at Runtime on Update

Ok, I can't seem to find a shred of working advice on this topic. But, here are the basics.

Button inside of an updatepanel. Partial rendering is turned on.

Button gets clicked. Ajax call is made to the server. How do I at this point write javascript to the client's box that will execute, such as an alert.

Can't use Response.Write. Can't use ClientScript.Register... since that requires a full postback, unless I'm missing something. So...I'm not really sure what my other options are, surely someone else has run across this already. If you have any insight please share it with me.

Use EVAL() function of Javascript. It can be used as following,

<SCRIPT language="Javascript">

function Popup()

{

ExecJavascript("alert('Hi All');");

}

function ExecJavascript(var jscript);

{

eval(jscript);

}

</SCRIPT>


Use ScriptManager.RegisterStartupScript. Here's a working example:

<%@. Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><script runat="server"> private void button_click(object sender, EventArgs e) { ScriptManager.RegisterStartupScript(up1, up1.GetType(), "myscript", "alert('Alert sent from server!')", true); }</script><html xmlns="http://www.w3.org/1999/xhtml"><head id="Head1" runat="server"> <title>Untitled Page</title></head><body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server" /> <asp:UpdatePanel ID="up1" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:Button ID="button1" runat="server" Text="Click Me" OnClick="button_click" /> </ContentTemplate> </asp:UpdatePanel> </form></body></html>

hello.

or, if you don't need to return anything from the server, you can also hande the endrequest event of the client pagerequestmanager object which is available in all the pages that have updatepanels.

<script type="text/javascript">
Sys.WebForms.PageRequestManager.getInstance().add_endRequest( endRequest );

function endRequest( sender, e ) {
//put your code here.
}
</script


Perhaps I was not clear.

madesh, Your code is only from javascript to javascript. That isn't the issue.

Steve Marx, You don't have partial rendering enabled. You will find that enabling that will prevent your button from registering that script block because doing that requires a full post back.

Luis Abreu, I do need to send info back from the server.

Let me restate the problem. You're on the server, there isn't any javascript already on the client. You need to write some JS to the client, from a partial postback. ie, they just pressed the button, but it was through AJAX which means no script registering through the ClientScript object. So, during this partial post back, what are my options for sending a script block to the client?


Crap miss-read that Steve, I haven't tried it with the script manager, ill give that a shot when i get home. Why can't we edit posts?...


Excellent. Thanks Steve it worked. The trick is, you can't use Page as the control to register the script with. You have to use an existing control on the page, any will do. Even the update panel (up1). Thanks.

ZeroDegrez:

madesh, Your code is only from javascript to javascript. That isn't the issue.

Let me restate the problem. You're on the server, there isn't any javascript already on the client. You need to write some JS to the client, from a partial postback. ie, they just pressed the button, but it was through AJAX which means no script registering through the ClientScript object. So, during this partial post back, what are my options for sending a script block to the client?

As you stated that it is a AJAX call and Javascript gets generated on server side. EVAL can help you. Return your server generated Javascript to Client side as a string(Output of your AJAX call). Execute that Javascript on Client side using EVAL function.

This way you can execute the javascript returned by your AJAX call on client side.

<SCRIPT language="Javascript">

function AJAXcall()

{

var JScript={Put your AJAX call here};

ExecJScript(JScript);

}

function ExecJScript(var JScript)

{

eval(JScript);

}

</SCRIPT>

wysiwyg in atlas

Has anyone found a wysiwyg editor that will work inside an update panel yet?The FCKEditor (http://www.fckeditor.net/) seems to work. Though its not the fastest loading.

newbie2006:

The FCKEditor (http://www.fckeditor.net/) seems to work. Though its not the fastest loading.

Hy!

I'm developing an Chat engine based on Atlas and I'm using FCK editor. I can't change the properties of FCKeditor inside the UpdatePanel. I want to clean the Message after Send Button Click. The code is the follow:

protected void Send_Click(object sender, EventArgs e){// Update Chat Panel ... //Clean up the editor FCKeditor1.Value ="";}

And the code in the ASPX is:

<atlas:UpdatePanelID="panelMessage"runat="server"Mode="Conditional"><ContentTemplate><FCKeditorV2:FCKeditorid="FCKeditor1"runat="server"/><asp:ButtonID="Send"runat="server"Text="Send"OnClick="Send_Click"/></ContentTemplate></atlas:UpdatePanel>


When I press the Send button the message is updated in the Chat, but the message from the editor don't desapear, only when I refresh the browser.

Anyone know one solution for this?

Thanks.

Paulo Alves.


Now I find the solution. First there is some incompatibilty with my CSS and the Atlas JS, so I replace with Server Side Label. The other was the property of UpdatePanel="Conditional", where I need to put an triger to work:

<atlas:UpdatePanel runat="server" ID="UpdatePanelMsg" Mode="Conditional"><Triggers> <atlas:ControlEventTrigger ControlID="Send" EventName="Click" /></Triggers><ContentTemplate><FCKeditorV2:FCKeditor id="FCKeditor1" runat="server" /></ContentTemplate></atlas:UpdatePanel> <asp:Button ID="Send" runat="server" Text="Send" OnClick="Send_Click" CausesValidation="False" />

The Mode="always" is not a good option because it post the UpdatePanel every 2 sec fired by Triger of Chat panel refresh.

The FCK is a little bit slow for this purpose, I' m tring to find another option like the FreeTextBox or just a TextArea.

Best regards,

Paulo Alves.



Hellow.,

Sorry for direct contact.But i want to ask u a query .Its argent to be in work.My task is

Test and evaluate the FCKeditor.NET control.(FCKEditor in SketchControl).

But i not understand why FCK editor require.Still i try 1 example send u code -->

<%@. Page Language="C#" AutoEventWireup="false" ValidateRequest="false" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@. Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>

<html>

<head>

<title>FCKeditor - Sample</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

</head>

<body>

<form id="Form1" runat="server">

<FCKeditorV2:FCKeditor id="FCKeditor1" BasePath="/FCKeditor/" runat="server"></FCKeditorV2:FCKeditor>

<br>

<input id="Submit1" type="submit" value="Submit" runat="server">

</form>

</body>

</html>

But Give error like->server error HTTP Error 404 - Not Found.
pls tell what to do ...

WYSIWYG text editor compatible with UpdatePanel

Does anyone know of a WYSIWYG Text Editor that works when placed inside an UpdatePanel? I tried two (FckEditor and obout's editor). Both of them failed. Thanks!

http://forums.asp.net/p/1028530/1406390.aspx#1406390

Thanks! this is exactly what i needed

Smile

XML Script inside UpdatePanel: Not instantiated?

I have a bit of XML-Script (which assigns a Drag/Drop handle behavior to a control) that performs as expected. However, if I place this script inside an UpdatePanel then the script doesn't run. Is this a known issue? Any known workarounds? If not, can anyone provide me with insight on how the AJAX libraries identify and parse XML-script? E.g., Is there a function I can call that will reinitialize XML-Script blocks? Note: I can put a <script type="text/javascript" /> in an UpdatePanel and it'll execute as expected.

Jeremy

Bumping this thead. Any thoughts? Let me know if I need to clarify the request. The obvious work around is to just wire up the features using imperative syntax via Javascript, although this seems like a pretty obvious issue so I want to make sure I'm not missing something.


Can you please post the code you are using so I can take a look at it? Thanks


I later discovered that this functionality was by design and that any script (not just XML script) will not re-execute upon refresh of an UpdatePanel. There are a few work arounds posted for this on the internet which involve registering the script, probably via RegisterClientScriptBlock() or something similar. The approach didn't work for me, however, and I haven't had a chance to dive into this further yet. When I get a chance I will revisit this and post code samples and/or findings.