Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    ASP.NET


Advertisements:










AJAX :: Javascript Doesn't Work Inside Updatepanel


I hade a user control in my web application that I had inserted into an update panel.. after doing that the javascript of that control stoped working!


View 4 Replies (Posted: Feb 01, 2010 08:21 AM)

Sponsored Links:

Related Forum Messages For ASP.NET category:
AJAX :: Method Doesn't Work On Panel Inside UpdatePanel
I have problem to show method value on asp:Panel.

This is my *.aspx code :

[Code]....

Code Behind :

[Code]....

In this case, I can't show value myMethod at code behind to aspx file where this method is called.

If I use postBackTrigger in upControl updatePanel then the method(myMehod) will show on upShow updatePanel. But the updateProgress doesn't work.

Posted: Dec 10, 2010 11:38 AM

View 3 Replies!   View Related
Ajax - Gridview Paging Doesn’t Work Inside UpdatePanel
Altough questions somehow similar to this have been asked for a number of times, but the question is still unsolved. Here is the question: I have a gridview which is contained in a tab container ajax control which itself is inside an updatepanel. Gridview works excellent and its corresponding methods are fired accurately, but when I enable paging, (e.g.) after I click on page 2, the gridview hides itself. here is my PageIndexChanging method:

protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataBind();
UpdatePanel2.Update();
}

Why paging causes gridview to stop working correctly? What can I do?

Posted: Jan 26 at 6:58

View 2 Replies!   View Related
AJAX :: Trigger UpdatePanel Via Javascript Doesn't Work When Using A MasterPage?
I have an UpdatePanel on the page which I'd like to trigger using javascript.First of all my code perfectly works if it's in a website not being inheriting from a masterpage. Now when you put exactly the same code into a website which inherits from a masterpage, the UpdatePanel wouldn't get fired anymore.

Here's the code (.aspx) [Code]....

Here's the code (.cs) [Code]....

Posted: Apr 22, 2010 07:56 AM

View 2 Replies!   View Related
Button Inside Updatepanel / Try To Enable The BtnAddSecurity.Enabled = True It Simply Doesn't Work
I have two update panels and in the second update panel i have asp.net button and onclick of the button in codebehind i have disabled it like btnAddSecurity.Enabled = false;

When I disable the button i enable a cancel button before it and on cancel button when i try to enable the btnAddSecurity.Enabled = true it simply doesn't work. Both of my updatepanels updatemode is conditional. what is the problem?

Posted: Jan 19 at 19:39

View 1 Replies!   View Related
AJAX :: Stepcarousel Doesn't Work In FF In Updatepanel After AsyncPostBack
i have a stepcarousel, which is inside the update panel. There are several ways (buttons) to update content of the step carousel.

When i register ClientScriptBlock after AsyncPostBack to setup carousel again FireFox goes into space. It call my javascrip function that has

stepcarousel.setup({
galleryid: 'mygallery', //id of carousel DIV
autostep: {enable:false, moveby:1, pause:3000},
beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
panelclass: 'panel', //class of panel DIVs each holding content
panelbehavior: {speed:500, wraparound:false, persist:true},
defaultbuttons: {enable: false, moveby: 1, leftnav: ['http://i34.tinypic.com/317e0s5.gif', -5, 80], rightnav: ['http://i38.tinypic.com/33o7di8.gif', -20, 80]},
statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
});

but it never comes back from this call and FF displays empty page with JavaScript error.

Posted: Jun 24, 2009 02:35 AM

View 3 Replies!   View Related
AJAX :: OnClientClick Doesn't Work As Expected With UpdatePanel
I have an onclientclick property on a linkbutton that calls a javascript function.
inside Update Panel

[Code]....

iam getting the error at bold line . my listbox is inside Update Panel and link button too but java script is outside of Update Panel.

Posted: Feb 02, 2010 10:50 AM

View 2 Replies!   View Related
AJAX :: Gridview.Sort Doesn't Work In UpdatePanel
I have a GridView in an UpdatePanel and in the code behind I bind to a Datatable and call the GridView's Sort method:

gvUsers.DataSource = dt;
gvUsers.DataBind();
gvUsers.Sort("DateOfBirth", SortDirection.Descending);

However, this doesn't sort the records.  I have the Sort event as an asynch trigger for the grid.

Posted: Dec 05, 2010 05:18 PM

View 4 Replies!   View Related
AJAX :: Fileupload In Updatepanel With Timer Doesn't Work At The Second Time
I cannot use asyncFileUpload as it has too many restrictions which doesn't meet our requirement.

I'm able to add a updatepanel trigger to force the Button1 to perform a postback. after the file uploaded, I need to use a timer to do different tasks and return messages back to client with the timer. That is all fine.

However, when one upload is finished. I try to do it again. The FileUpload1.HasFile is "false". I don't know why. if I remove the timer, at the second time, the HasFile is "true". I think there must be something in the timer and disable the Button1's postback.
 
page: 

[Code]....

Code: 

[Code]....

Posted: Jan 23, 2011 11:19 PM

View 2 Replies!   View Related
AJAX :: FileUpload Controls Does Not Work Inside An Updatepanel
I use a tabcontrol with 2 tabs. In the second tabpanel as seen in the code I use a Fileuploadcontrol to upload Images from a users computer.

The problem is that I need to surround the tabcontrol with an updatepanel as I dont want a fullpage postback when switching between these 2 tabpanels. In this code I have the tabcontrol inside an updatepanel but the problem is that the Fileupload controls does not seem to work inside an updatepanel.

How will I solve this problem as I dont want a fullpage postback when switching between the tabs ?

[Code]....

Posted: Feb 26, 2010 12:03 PM

View 8 Replies!   View Related
Make Javascript Work Along With Ajax UpdatePanel?
I am trying to add validation on my form. I am using AJAX controls in my form fields.
When I remove the Update panel and AJAX control, my validation starts working, but when keeping both the things together, my validation is not working. How could I make them work together?

<script type="text/javascript">
function Validate() {
var QuestionTextArea = document.getElementById("ctl00_ctl00_cphBody_midbox_fvInsert_txtQuestion");
varError = "";
if (!IsTextBoxEmpty(QuestionTextArea, "
Question Text Area not be Empty.")) {
alert(varError);
document.getElementById("ctl00_ctl00_cphBody_midbox_fvInsert_txtQuestion").focus();
return false;
} return true;
}
</script>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<asp:TextBox ID="txtQuestion" runat="server" MaxLength="1000" Columns="50" Rows="5" Style="width: 380px;
float: none" Text='<%# Bind("Description") %>' TextMode="MultiLine" />
<AjaxControl:TextBoxWatermarkExtender runat="server" TargetControlID="txtQuestion"
WatermarkCssClass="water" WatermarkText="Type your Question Here.">
</AjaxControl:TextBoxWatermarkExtender>
</ContentTemplate>
</asp:UpdatePanel>

When I removes ajax extender and Update Panel. My textbox gets validated and when using UpdatePanel. No javascript function created by me is called.

Posted: Aug 27 10 at 17:32

View 1 Replies!   View Related
AJAX :: SQLDataSource With Parameters Doesn't Work Inside A ModalPopup?
although I've searched already, but here is the thing:I have a ModalPopup wich have a Textbox, a Button and a GridView inside. The Gridview is binded to a SQLDatasource object, and the Select query is something like "SELECT field_1, field_2, field_3, field_4 FROM Table_Name WHERE field_1 LIKE '%@Parameter_2%'".This ModalPopup is used (or gonna be used) to search for a field, so the parameters received by the Query is the text inside the Textbox, I've linked thid inside the SQLDataSource Wizard.The problem is that everything works perfectly fine... inside the panel WITHOUT the ModalPopup Extender, but whe I add the Extender the filter function doesn't work.Here is my code: 

[Code]....

Notes: I have a ScriptManager inside the MasterPage, so I don't have to insert one in every page. Also I've tested the code in a new page (the one I use for testing), and it works fine, it filters and everything, the problem is when I add a ModalPopup to the panel.

Posted: Jun 08, 2010 09:32 PM

View 3 Replies!   View Related
AJAX :: Call Javascript Inside Updatepanel?
I have a rquirement thay in grdivew need to show the 2 custom ads and 3 google ads, so i have written an user control and inside that using the adsense script, and binding the gridview manually with 2 custom ads and then calling the user control with few functionality. But i have used ajax to ignore the post back So while clikging on paging the google ads are not loading as they are loading from javascript.I came to know that we cannot call javascript inside updaetpanel means Ajax, this is an urgent requirement for me,

Posted: May 26, 2010 04:24 AM

View 2 Replies!   View Related
AJAX :: Javascript Allert Inside UpdatePanel Not Working
I am having problems with alert box not popup when I'm using AJAX UpdatePanel. The following is what I have and it's not working.

[Code]....
  
I have to stress that the reason why it does not work is because I'm using AJAX UpdatePanel. If I turned off the AJAX UpdatePanel then it works perfectly. So does anyone have solution to go around this AJAX UpdatePanel issue?

Posted: Jun 21, 2007 01:46 PM

View 18 Replies!   View Related
AJAX :: User Control With JQuery Doesn't Work Inside Update Panel?
I created a .NET user control to work as a DropdownCheckbox and added Jquery to give the sliding and hide effects. The code is as below:

[Code]....
 
This control works fine in a normal page, but once I put it inside an update panel it doesn't work. Is there a work around or simply I can't use JQuery inside update panel?

Posted: Sep 21, 2010 10:05 AM

View 1 Replies!   View Related
AJAX :: Listview Select Command Doesn't Work Inside Update Panel
have a link button inside Listview. The button works fine as long as it's out side of a UpdatePanel.

If I place the listview inside update panel, Select1 Command doesn't work. (however Edit button works fine)

[Code]....

this is my update panel

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">

What kind of properties do I need to add in order to make this work?

Posted: Nov 24, 2009 12:12 AM

View 2 Replies!   View Related
AJAX :: Not Running Javascript Inside Updatepanel When Marquee Is Active?
I am having trouble with getting the Jscroller2 too work inside an updatepanel after I have added a marquee as a newsbanner.  - (The marquee is running outside the updatepanel)Beforer the marquee was present I could trigger the JavaScript with: 

[Code].... 

Now the Jscroller2 only works when the page is loading the first time and not after the updatepanel has updated.So my question is how do I get the Javascript to fire after the updatepanel have updated when a marquee is present?

Posted: Mar 12, 2010 07:53 PM

View 7 Replies!   View Related
AJAX :: Updating .NET CheckBoxList Inside An UpdatePanel From A Javascript Function?
I have a asp.net listbox server control that is connected to a jquery plugin that can handle a client side click event for each of the checkboxes it renders.

Whenever I click on a checkbox the click event gets triggered and I make a call to

__doPostBack("UpdatePanel1", ""); so that i can update the updatepanel and rebind the checkboxlist inside it.

is it possible to do the rebind first, and then update the updatepanel? how do i do that? because now, the rebind happens on the second time i click on the checkbox.

MARKUP:.....

Posted: Sep 29, 2010 11:53 AM

View 3 Replies!   View Related
JavaScript - Ajax Post Doesn't Work With HTML In Parameters
After upgrading our project to the .net 4.0 framework (from 3.5), we facing some problems with ajax calls with html in the parameters. As soon as the user enters some html in a text area the ajax call isn't executed anymore. If the user enters plain text only, there is no problem.

[code]...

Posted: Sep 24 10 at 15:01

View 2 Replies!   View Related
AJAX :: Javascript Change-state Toggle Button Inside An Updatepanel?
I've got a rather difficult one here.  I have a JavaScript jquery toggle button inside an update panel.  Right now  i'm using <form body="onload"> to recall this javascript to re-apply the button state after each partial postback.  It works, but it requires two clicks sometimes. 

The problem is... after a few clicks, it is significantly slowing down the PC, and I can see the clicks trailing half a second to nearly a second.  If I have a group of buttons, all those click events are just catching up to my clicks.  It is rather amusing but I suppose it has to do with the fact that the postback is calling the <body onload=" event> each time after the button is clicked.

so how can I then, make this performance faster?

Posted: Oct 07, 2010 10:45 PM

View 1 Replies!   View Related
AJAX :: Showing Popup Control Via Javascript Doesn't Work On Explorer 7
I'm using the following function (found on this forum) to display a popup control from the server-side:

on the server:

ScriptManager.RegisterStartupScript(this, GetType(), "userInfoPopScript",
string.Format("showPopup('{0}', 2);", targetControlClientId)
, true);  

on the client:

[code]....

this works great for explorer 8 , firefox, chrome but on explorer 7 my page just jumps to the left and doesn't show the popup at all.

If I remove the set__parentElementID call, then the popup is displayed but in the wrong position (of course).

Posted: Mar 19, 2010 09:18 PM

View 2 Replies!   View Related
AJAX :: AsyncFileUpload Javascript Doesn't Work Within Visible / Invisible Panel
I have an asyncfileupload control within a panel control.  The panel is initially set to visible=false on page load.  After a user clicks a button to display the panel contents however, I set the panel to visible and the user can then use the asyncfileupload.  The problem however, is it seems much of the javascript associated with the asyncfileupload, does not function properly when the panel containing the upload control is set from invisible to visible.  If I set my panel's "visible" property to "true" initially, then it works fine.  My javascript error message is as follows:

"Form contains a file input, but is missing method=POST and enctype=multipart/form-data on the form. The file will not be sent."

Basically within my asyncfileupload control, I have the following line:

[Code]....

In this scenario, my "args" variable is always null (when I set my pane's "visible" property to "true" on page load, the args variable DOES contain data. Any idea why switching a panel from visible=false to visible=true, would cause an error like this?

Posted: Aug 18, 2010 05:44 AM

View 2 Replies!   View Related
AJAX :: UpdatePanel And ListView Inside Another ListView - Work?
I have a ListView1 control that his <ItemTempleae> has a another ListView2. ListView2 is surrounded by <UpdatePanel> with trigger and also UpdateMode="Conditional". But, I don't know why ListView2 is not being update as it should, I need to refresh all the page to see the new data enter to ListView2 only. What is the problem? How can it be fixed? I think that the problem is something in the structure. There are about 10 ListView2 with updatepanel surronded them, so when I am looking to update a specific ListView2, it doesn't know which one to update because there are lots of them. What to do in order to solve that problem?

Posted: May 31, 2010 11:58 PM

View 3 Replies!   View Related
AJAX :: Multiview Inside Updatepanel, Updatepanel Inside View?
Has anyone gotten this to work?  I have a multiview inside an updatepanel, and I can switch tabs without a screen repaint.  But then, in one of the views I tried to put an updatepanel to update something in that view and it started freaking out. (probably for similar reasons to the freakout when I tried to put an updatepanel inside the itemtemplate of a repeater)

 For example, I want a view to enter billing information, but then I want to dynamically hide the states dropdown if you pick a country other than US, CA or AU.    At first it told me that my trigger had to reference a valid control, so I set it to the name of my country dropdownlist.  It accepted that but then it gave me an object expected javascript error.  Quite frankly, my brain is about to explode from trying to wrap it around this stuff.

So, I'm going to skip the idea of hiding the state DDL and just have a default option "select if appropriate" and move on with my life.  But consider this an FYI to you boys (and girls) on the atlas development team.

Posted: Apr 25, 2006 08:41 PM

View 7 Replies!   View Related
AJAX :: TabContainer Body Border Doesn't Work For Hidden Div Inside Tabcontainer
I use a border for the TabContainer body which works fine.

[Code]....

also I use three hidden divs and one visible div inside a main div which works as body of Tabcontainer

Posted: Dec 17, 2010 07:57 AM

View 1 Replies!   View Related
.net - Linkbutton Doesn't Work For Updatepanel
i have set of link buttons outside update panel but when click any one of them they donot work at all , when i set the postbackUrl they make full postback my source code :

<asp:Panel ID="pnl_viewImages" runat="server">
<asp:Label ID="lbl_viewImages" runat="server" style="texalign: left"
Text="view images :"></asp:Label>
<br />
<br />
<br />
<table cellpadding="0" cellspacing="0" style="width: 100%" class ="Alternating">
<tr>
<td colspan="5">
<asp:UpdatePanel ID="updatePnl_image" runat="server">
<ContentTemplate>
<asp:ListView ID="lv_showImages" runat="server">
<ItemTemplate>
<asp:Image ID="img_showNewsImage0" runat="server" Height="300px"
ImageUrl='<%# "RetreiveImage.ashx" %>' Width="413px" />
</ItemTemplate>
</asp:ListView>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="lbtn_first" EventName="Click" />
<asp:AsyncPostBackTrigger ControlID="lbtn_last" EventName="Click" />
<asp:AsyncPostBackTrigger ControlID="lbtn_next" EventName="Click" />
<asp:AsyncPostBackTrigger ControlID="lbtn_previous" EventName="Click" />
<asp:AsyncPostBackTrigger ControlID="lbtn_delete" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td>
<asp:LinkButton ID="lbtn_first" runat="server" onclick="lbtn_first_Click">first</asp:LinkButton>
</td>
<td>
<asp:LinkButton ID="lbtn_previous" runat="server" onclick="lbtn_first_Click"><<</asp:LinkButton>
</td>
<td>
<asp:LinkButton ID="lbtn_next" runat="server" onclick="lbtn_first_Click"
>>></asp:LinkButton>
</td>
<td>
<asp:LinkButton ID="lbtn_last" runat="server" onclick="lbtn_first_Click">last</asp:LinkButton>
</td>
<td>
<asp:LinkButton ID="lbtn_delete" runat="server" onclick="lbtn_first_Click">delete</asp:LinkButton>
</td>
</tr>
</table>
<br />
</asp:Panel>`

i tried to remove the table but in vain it does not work also.

Posted: Aug 25 10 at 19:40

View 2 Replies!   View Related
FileUpload Doesn't Work When Nested In UpdatePanel?
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:FileUpload onchange="clickTheButton();" ID="FileUpload1" runat="server" />
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Button1" />
</Triggers>
</asp:UpdatePanel>

Button 1 is outside the update panel and the javascript that gets run when a user adds a file in the upload box is this:

function clickTheButton() {
document.getElementById('<%= Button1.ClientID %>').click();
}

The problem is simple. FileUpload1.HasFile == false. I don't know why this is, but when I put it in the update panel it ceases to work.

I have seen some other threads on this. But none of them answer why this is happening, they just point to things you can download.

EDIT: Really my main reason for wanting to do this is so that I can get a ..Uploading File.. Tag to pop up while the client is uploading to the server and once it has completed, display it in a datalist. I just cant get the UpdateProgress to work.

Posted: Jan 21 10 at 8:58

View 3 Replies!   View Related
UpdatePanel Doesn't Work If Validator Error?
When there is an error with CompareValidators, the triggers for the UpdatePanel stop working. I didn't find any info about that..

Posted: Mar 23 at 18:00

View 1 Replies!   View Related
AJAX :: DropDownList Inside A TemplateColumn Inside A GridView Inside A UpdatePanel?
I have a DropDownList inside a TemplateColumn inside a GridView inside a UpdatePanel. (out of breath saying that)

I have the DDL's AutoPostBack set to true and the OnSelectedIndexChanged event set to an event in my code.  The problem is when the DDL's index changes, it posts back.  It does not do the UpdatePanel magic and not post the whole page back, and the OnSelectedIndexChanged event does not fire.  Anyone see anything wrong with my approach?

[Code]....

[Code]....

Posted: Apr 26, 2007 04:11 PM

View 15 Replies!   View Related
How To Make UpdatePanel Inside ListView Work
I have a page with a listview that shows something like posts. On each post there should be a "rate box" which works similar to the "Like" button in facebook. The rate box is a User Control, that has an update panel inside it.

If I put the control with some random values in the page it works great - but when I put it inside the ListView, where it should be located, it won't work. The method is being called, but nothing happens.

I simplified the code a bit to make it easier to understand:

[Code]....

While debugging I noticed the controls in the method "OnRateClick" are empty and don't contain the right values.

Posted: Aug 1 10 at 12:28

View 1 Replies!   View Related
Postback Inside Updatepanel Doesn't Send Back Data?
I have a form inside an update panel. First time I load the form I fill the fields with data "if(!Page.IsPostBack)" so it only tries to fill them first time, which works fine. But when I press the link to send and handle the data the data just dissapears another usercontrol which is inside a popupcontrolextender.

Posted: Jul 10, 2008 05:30 PM

View 6 Replies!   View Related
AJAX :: UpdatePanel Doesn't Update Another UpdatePanel?
I have two updatepanels on my site (upanProfileSearch and upanMemberList). When I hit the button in the upanProfileSearch it should bind the Data Items in the gridview in upanMemberList and here make a RowFilter on the text in upanProfileSearch. When I make a run to curser, I can see, it happens. It makes a RowFilter. but it doesn't update the gridview. Can anyone tell me why it doesn't update? I have  UpdateMode="Always" and RenderMode="inline" on both UpdatePanels.

[Code]....

[Code]....

Posted: Jan 20, 2011 09:47 PM

View 1 Replies!   View Related
Button's OnClientClick Event Inside An UpdatePanel Does Not Work?
im using javascript like

var TargetBaseControl = null;
window.onload = function()
{
try
{[code].... //get target base control.
w
hen i run the page and click the button then no more further processing just button has been click nothing happan......

Posted: Mar 1 10 at 5:07

View 2 Replies!   View Related
Vb.net - Dropdownlist Callback Doesn't Work Inside Div?
I have a callback handler done in VB which works fine with this code:

<!-- Div Outside Form -->
<div class="container">
<form id="querydata" runat="server">
<asp:DropDownList runat="server" ID="myddl" AutoPostBack="true" OnSelectedIndexChanged="myddlhandler">

[Code]....

It the postback no longer works. Is how asp is supposed to work? Or is it some magic error that only works for me? And most importantly, if asp is not supposed to work this way, how should I be doing this?

Posted: May 25 10 at 13:36

View 3 Replies!   View Related
Web Forms :: AsyncFileUpload Inside MultiView Doesn't Work
AsyncFileUpload inside MultiView doesen't work! Is there a solution for this problem?

Posted: Feb 25, 2010 03:44 PM

View 10 Replies!   View Related
Web Forms :: ImageButton Inside IFrame Doesn't Work
I have an asp page that has an iFrame. In the onload event of the iFrame, the javascript code copies the content of the iframe to the div. The iFrame has src="test.aspx" and hence displays the content of the test.aspx inside the div.Test.aspx page contains and imageButton, which does not show up in the iFrame.I am getting the following issues:1. the image does not show up (cannot see test.gif)2. When i click on the imagebutton link, it tries to search for test.aspx in the directory where the asp page resides inside of the actuallocation/directory of the aspx page.

Posted: Jan 19, 2010 04:25 PM

View 3 Replies!   View Related
Binding Doesn't Work Inside A JQuery Callback?
I have the following code:

<input type="text" ID="JOB_CODETextBox" runat="server" value='<%# Eval("JOB_CODE") %>' readonly="readonly"
onclick="$('#basic-modal-content').modal(
{
appendTo:'form', persist: true,
onClose: function (dialog)
{
document.findElementById('<%= JOB_CODETextBox.ClientID %>').value = 'value';
$.modal.close();
}
} );" />

The problem is, the binding '<%= JOB_CODETextBox.ClientID %>' doesn't work, it returns the same binding expression after renderign instead of replace it with the actual client id!

Posted: Jan 10 at 13:26

View 1 Replies!   View Related
AJAX :: Cannot Bind Dropdownlist Inside From Button Click Inside Updatepanel
I have a gridview inside UpdatePanel. 

Inside gridview there is a dropdownlist and a button on each row. On button click I am opening a panel through Modal popup extneder.

Inside that pop up there is again a dropdownlist. I am adding an item into this dropdownlist based on the selection from the dropdown inside gridview. 

like  ddl.items.insert(0,'xyz');

But first time this inserted item is not getting reflected in the dropdownlist. But after one postback this item is getting reflected.

Posted: Sep 24, 2010 05:17 AM

View 2 Replies!   View Related
AJAX :: Html Inside TextArea Inside UpdatePanel Causes 500 Error?
If you create a text area control and enter the html into it the update panel fails to refresh with 500 error. In the very simple example below this is demonstrated. If you click "Submit Form Button" you will get javascript error:

"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500"

If you remove html, no error occurs. I'm surprised that no one reported this yet (i saw some posts about FCKEditor and other editors, but even if the most basic control like textarea does not work, i would not expect FCKEditor to work correctly).

Sample:

[Code]....

Posted: Nov 29, 2006 10:10 PM

View 25 Replies!   View Related
AJAX :: Editing Image Inside DetailsView Inside UpdatePanel?
I'm trying to add and edit an image which is located in a detailsview which is inside an UpdatePanel. After I read relevant topics in the forum I installed the Ajax Control Toolkit. Below is my source code. When I used it only for insert new image it worked great. The problem caused when I tried to implement it on the Edit mode, i.e. when I tried to edit the image and upload a different image.  Unfortunately it didn't work as I hoped. Nothing happend and the image hasn't been changed. I also tried to change the IDs (AsyncFileUpload ID) to be the same in both places but it didn't work either.

The source code:

<asp:DetailsView ID="dvMovie" runat="server" Height="50px" Width="695px"
                    AutoGenerateRows="False" DataSourceID="sdsMovieById"      
                     BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" [code].....

Posted: Oct 04, 2010 02:14 PM

View 2 Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved