I have a grid on a webpage that contains one or more locations. Ive created a popup window that allows several locations to be selected at once and placed into a table. How can I automatically refresh the grid when the popup window closes to reflect the new locations that were added. I dont want a full page postback, just the location grid refreshed.
Ive used this code but it doesnt work
Ive used this code but it doesnt work
if (Request.Form["__EVENTTARGET"] != null) { if (Request.Form["__EVENTARGUMENT"] != null) { ProcessRequest(Request.Form["__EVENTTARGET"].ToString(), Request.Form["__EVENTARGUMENT"].ToString()); } }private void ProcessRequest(string target, string argument) { if (!String.IsNullOrEmpty(target)) { if (target == "ArtistNameClick") { if (!String.IsNullOrEmpty(argument)) { string[] arInfo = new string[2]; char[] splitter = { ' ' }; arInfo = argument.Split(splitter); if (!String.IsNullOrEmpty(arInfo[0])) { switch (arInfo[0]) { case "~ArtistName": GetArtistData(arInfo[1]); break; } } } } } if (!String.IsNullOrEmpty(target) && !String.IsNullOrEmpty(argument)) { if (argument == "Rebind") { GetArtistData(this.HiddenUserID.Value); } else if (argument == "RebindAndNavigate") { this.RadGridTravelZones.MasterTableView.SortExpressions.Clear(); this.RadGridTravelZones.MasterTableView.GroupByExpressions.Clear(); this.RadGridTravelZones.MasterTableView.CurrentPageIndex = this.RadGridTravelZones.MasterTableView.PageCount - 1; this.RadGridTravelZones.Rebind(); } } //} }