本文整理汇总了C#中Callback.GetTPs方法的典型用法代码示例。如果您正苦于以下问题:C# Callback.GetTPs方法的具体用法?C# Callback.GetTPs怎么用?C# Callback.GetTPs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Callback
的用法示例。
在下文中一共展示了Callback.GetTPs方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HandleCallBack
private void HandleCallBack()
{
string RetVal;
string RequestParam;
string RequestParam2;
string RequestParam3;
string RequestParam4;
string RequestParam5;
string RequestParam6;
string RequestParam7;
CallbackType OCallbackType;
Callback OCallback;
RetVal = string.Empty;
RequestParam = string.Empty;
RequestParam2 = string.Empty;
RequestParam3 = string.Empty;
RequestParam4 = string.Empty;
RequestParam5 = string.Empty;
RequestParam6 = string.Empty;
RequestParam7 = string.Empty;
OCallback = null;
OCallbackType = CallbackType.None;
try
{
if (Request.Params.Count > 0)
{
OCallbackType = (CallbackType)int.Parse(Request[Constants.RequestHeaderParamNames.CallBack].ToString());
RequestParam = Request[Constants.RequestHeaderParamNames.Param1];
RequestParam2 = Request[Constants.RequestHeaderParamNames.Param2];
RequestParam3 = Request[Constants.RequestHeaderParamNames.Param3];
RequestParam4 = Request[Constants.RequestHeaderParamNames.Param4];
RequestParam5 = Request[Constants.RequestHeaderParamNames.Param5];
RequestParam6 = Request[Constants.RequestHeaderParamNames.Param6];
RequestParam7 = Request[Constants.RequestHeaderParamNames.Param7];
OCallback = new Callback(this.Page);
//get browser type to handle internet explorer 8 issue of ajax 32 bit size [reurn Image url in this case]
if (!string.IsNullOrEmpty(Request.QueryString["bType"]))
{
OCallback.BrowserType = Convert.ToString(Request.QueryString["bType"]).Trim();
}
switch (OCallbackType)
{
case CallbackType.GetQdsResultsForAdaptation:
RetVal = OCallback.GetQdsResultsForAdaptation(RequestParam);
break;
case CallbackType.GenerateCacheResults:
RetVal = OCallback.GenerateCacheResults(RequestParam);
break;
case CallbackType.GetDataViewDataNidsMulipleDbs:
RetVal = OCallback.GetDataViewDataNidsMulipleDbs(RequestParam);
break;
case CallbackType.GetLangDBcode:
RetVal = OCallback.GetLangDBcode(RequestParam);
break;
case CallbackType.GetOatStringFromFileUpload:
RetVal = OCallback.getOATfromFile(RequestParam);
break;
case CallbackType.GetIndWhereDataExists:
RetVal = OCallback.GetIndWhereDataExists(RequestParam);
break;
case CallbackType.GetAreaWhereDataExists:
RetVal = OCallback.GetAreaWhereDataExists(RequestParam);
break;
case CallbackType.GetDataView:
RetVal = OCallback.GetDataView(RequestParam);
break;
case CallbackType.GetQDSResults:
if (Session["IsMapServer"] != null)
{
Session.Remove("IsMapServer");
}
RetVal = OCallback.GetQDSResults(RequestParam);
break;
case CallbackType.GetDataViewDataNids:
RetVal = OCallback.GetDataViewDataNids(RequestParam);
break;
case CallbackType.GetGalleryThumbnails:
RetVal = OCallback.GetGalleryThumbnails(RequestParam);
break;
case CallbackType.GetAreas:
RetVal = OCallback.GetAreas(RequestParam);
break;
case CallbackType.GetSGs:
RetVal = OCallback.GetSGs(RequestParam);
break;
case CallbackType.GetSources:
RetVal = OCallback.GetSources(RequestParam);
break;
case CallbackType.GetTPs:
RetVal = OCallback.GetTPs(RequestParam);
break;
case CallbackType.GetASDatabases:
RetVal = OCallback.GetASDatabases(RequestParam);
break;
case CallbackType.GetASResults:
//.........这里部分代码省略.........