zoukankan
html css js c++ java
检查URL参数是否合法
string combinationID = Request.QueryString["CombinationID"];
string buyingPriceListID = Request.QueryString["PriceListID"];
if (combinationID != null && CommonFunction.
IsInt
(combinationID) &&
combinationID.Length < int.MaxValue.ToString().Length
)
{
m_CombinationID = int.Parse(combinationID.ToString());
}
if (buyingPriceListID != null && CommonFunction.IsInt(buyingPriceListID) && buyingPriceListID.Length < int.MaxValue.ToString().Length)
{
m_BuyingPriceListID = int.Parse(buyingPriceListID.ToString());
}
public
static
bool
IsInt(
string
input)
{
return
Regex.IsMatch(input,
@"
^\d+$
"
);
}
string
script
=
"
<script type='text/javascript'>alert('{0}');window.location.href='BuyingPriceList.aspx';</script>
"
;
if
(
this
.m_CombinationID
==
0
||
!
entityCombination.ObjectExist)
{
script
=
string
.Format(script,
this
.getMessage(
"
M10022
"
));
Response.Write(script);
Response.End();
}
if
(
this
.m_BuyingPriceListID
==
0
||
!
entityBPList.ObjectExist)
{
script
=
string
.Format(script,
this
.getMessage(
"
M10023
"
));
Response.Write(script);
Response.End();
}
查看全文
相关阅读:
UVa-133-救济金发放
UVa-340-猜数字
UVa-1584-环状序列
UVa-1585-得分
UVa-1586-分子量
BZOJ-3289: Mato的文件管理(莫队算法+树状数组)
HDU-2824 The Euler function(欧拉函数)
2017年10月12日22:27:20
HDU-4715 Difference Between Primes(线性筛法)
POJ-1185 炮兵阵地(状态压缩DP)
原文地址:https://www.cnblogs.com/songsh96/p/719742.html
最新文章
C. cltt的幸运数LCAtarjan
C. cltt的幸运数LCAdfs
B: Ocean的游戏(前缀和)
map映射巧用 A-B Problems
A.Ocean的礼物线段树
Rails UVA
栈的学习
扩展欧几里得算法
Choose and divide(唯一分解定理)
2星难度-寒假作业
热门文章
#6282. 数列分块入门 6
#6281. 数列分块入门 5
#6278. 数列分块入门 2
还是畅通工程(prim和kruskal)
分块入门学习
+号的重载
继承和组合
构造函数
基类和派生类
图的遍历
Copyright © 2011-2022 走看看