or

| protected void uiRadTreeView_NodeClick(Object sender, Telerik.Web.UI.RadTreeNodeEventArgs e) |
| { |
| // Set the session variable search to be null so no highlighting occurs in PopulateContentPane |
| Session["Search"] = null; |
| string siteId = Request.QueryString["SiteId"]; |
| if (!String.IsNullOrEmpty(siteId)) |
| { |
| Users user = (Users)Session["User"]; |
| if (user == null) |
| { |
| user = new Users(Page.User.Identity.Name); |
| } |
| // Log action |
| AuditLog.AddEntry(user, TLT.Extranet.DataAccess.Site.Type.General, 3, Int32.Parse(siteId), Int32.Parse(e.Node.Value), Session.SessionID); |
| Response.Redirect("Default.aspx?SiteId=" + siteId + "&NodeId=" + e.Node.Value); |
| } |
| } |
Is it possible to save execute stored proc command in a string variable and then execute string variable???
Does this logic fits into LINQ2SQL?
Why I want to do this - INstead of passing user control references to server, I want to save user control values to string in client side java script and then pass string to server to do actual stored proc execution. Hopefully this will improve performance. DOES IT MAKE ANY SENSE?