Example #1
0
 public SearchWinReturnedEventArg(SearchWinType searchWinType, string json)
 {
     PostData      = json;
     SearchWinType = searchWinType;
 }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (WindowWidth == 0)
         {
             WindowWidth = 700;
         }
         if (WindowHeight == 0)
         {
             WindowHeight = 500;
         }
         string url = SearchWinUrl;
         url += "?CtrlId=" + this.ClientID;
         url += "&Type=" + (int)SearchWinType;
         url += "&Title=" + Server.UrlEncode(SearchWinTitle);
         url += "&Info=" + Server.UrlEncode(Information);
         url += "&Demo=" + Server.UrlEncode(DemoInput);
         url += "&IsInTest=" + IsInTest;
         hlnkSearch.Attributes["onclick"] =
             string.Format("ShowSearchWin('{0}', '{1}px', '{2}px', 'yes', '{3}');"
                           , url
                           , WindowWidth
                           , WindowHeight
                           , IsInTest);
         ScriptManager.RegisterClientScriptBlock(this, this.GetType(), this.ClientID + "_SetSearchWinType", this.ClientID + "_SearchWinType = '" + SearchWinType.ToString() + "';", true);
     }
 }
 public SearchWinReturnedEventArg(SearchWinType searchWinType, string json)
 {
     PostData = json;
     SearchWinType = searchWinType;
 }