Quantcast
Viewing all articles
Browse latest Browse all 17574

SharePoint 2010 Custom Webpart C# - Changing the query string values in Apply Changes Method

Hi All,

        I have one custom webpart with custom toolpart/editorpart. I need to get the values from the query string and set those values in the custom properties. If user changes the values in the toolpart and click on apply, query string values also should be changed. Say for example I have a query string called ItemId=5. This value should be stored in the custom property called "ItemIdProperty" with type "TextBox". If user edits the webpart, gives the value of the text box as 7 and clicks on "Apply", then the query string value should be changed into 7 then page should be refreshed and the reloaded page should have the tool part opened. 

The problem is, in the apply changes method, I am not able to redirect the page with new query string values as the current page will be refreshed by default. Please guide me how to do this!

Any help would be highly appreciated!!



Puli Bala



Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>