Click here to Skip to main content
15,907,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,
Iam working on ASP.NET MVC2.0,XSLT, XML, Javascript, AJAX in my application. I am developing a dynamic Menu creation module, in my web page I have designed a table to display the new menu which I have added & two buttons, one to add new main menu & one to add Submenu based on the radio selection of main menu.
My problem is, when I add a new main menu (for ex. Menu1) & say submit it wil display on grid table & after when i select radio of newly added Menu1 & add a submenu(fro ex. SubMenu1), it takes a previously added value as Menu1, before adding sub menu if i refresh a page means then it wil take a newly added value( subMenu1). Please can any experts help me in this issue.

Thanks
Madhusudhan
Posted
Comments
Sunasara Imdadhusen 1-Dec-10 0:51am    
Do you want to refresh whole page from client side?
Sandeep Mewara 1-Dec-10 8:18am    
Comment from OP:
yes but in Javascript, Ajax

Regards
Madhusudhan

Hi,

I'm not sure I understand question completely, but if your looking to reload a page from javascript do this:

window.location.reload();


This will cause the current windows page to be reloaded instantly.

Cheers

Manfred
 
Share this answer
 
v2
Comments
madhusudhan.k 2-Dec-10 7:37am    
sorry to say that, actually i want to reload a particular control(DropdownList).
Iam designing the page in xslt using HTML.
Hope u understood..

Thanks
Madhusudhan
hi,
actually i didnt understand your question completely.I think you want to update a particular control using ajax..

<br />
<% using (Ajax.BeginForm(new AjaxOptions()<br />
        {<br />
            UpdateTargetId = "UpdatingDiv",<br />
            InsertionMode = InsertionMode.Replace,<br />
            HttpMethod = "POST"<br />
        }))<br />
   {%<br />
<br />





and just place your control in that UpdatingDiv
Hope this may help you
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900