Hi everyone,
I'm using ajax 1.0, and making posts thru updatepanels.
As you probably know, the main purpose is that only the updatepanel do post,
while the whole page stays as is.
My problem is that Mozilla doesn't do it - while running my site thru mozilla,
the whole page posts, and not only the updatepanel.
Thanks for any help !
Hi,
can you recreate the issue with the least amount of code possible and place that here so people get a better look at what's going wrong?
Grz, Kris.
Check whether the following property of ScriptManager is enabled or not...
EnablePartialRendering="true"
Post the code here...
Hi there,
first of all, I want to thanks both of you for your response.
Secondly, I tried the EnablePartialRendering, it doesn't help.
I put here some of my relevant code. watch: on each "onKeyUp" on 'txtFromList',
a javascript function is called (treated on server side - .Attributes.Add("onKeyUp","..")...).
That javascript function make a click() on the button - "fromUpdatePanelButton" that causes
a post. (ajax post - the button is in updatepanel)
Thanks for any help !
<tddir="rtl"nowrapalign="right"style="width:140px;">
<asp:TextBoxID="txtFromList"TabIndex="1"Width="90px"runat="server"></asp:TextBox>
</td>
<td>
<divstyle="position:absolute;">
<asp:UpdatePanelid="upFromYeshuv"runat="server">
<contenttemplate>
<asp:ButtonID="fromUpdatePanelButton"Width="0"runat="server"style="display:none"/>
</contenttemplate>
</asp:UpdatePanel>
</div>
</td>
Here is the solution (maybe :))
Set the button's UseSubmitBehavior property to false.
Regards,
CsigaTry to use latest version of browser
Use ScriptManger.RegisterClientScriptBlock to run javascript
No comments:
Post a Comment