62,243
社区成员




namespace PayCenter.PayMent
{
public partial class _70bank : System.Web.UI.Page
{
protected string bili;
protected string gamebz;
protected string mdname;
protected string zeng;
protected string _js = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
if (!base.IsPostBack)
{
if (SafeCookie.GetCookie("sid") != null)
{
MirDivisionInfo mDbyid = MirDivisionFactory.GetMDbyid(int.Parse(SafeCookie.GetCookie("sid")));
bili = mDbyid.MD_Bili.ToString();
if (mDbyid.MD_BZ == "")
{
gamebz = "元宝";
}
else
{
gamebz = mDbyid.MD_BZ;
}
mdname = mDbyid.MD_Name;
if (mDbyid.MD_onPay == 1)
{
foreach (string str in mDbyid.MD_NewPay.Split(new char[] { '|' }))
{
if (str.Split(',')[0] == "102")
{
string str2 = _js;
_js = str2 + "$(\"paystring\").innerHTML=\"<table border='0' cellpadding='1' cellspacing='1' bgcolor='#999' width='100%' ><tbody align='center' bgcolor='#F9FAFC'><tr><td>不足50</td><td>满50元</td><td>满100元</td><td>满200元</td><td>满300元</td><td>满500元</td><td>满1000元</td><td>满2000元</td></tr><td class='fc'>1:" + str.Split(',')[1].ToString() + "%</td><td class='fc'>1:" + str.Split(',')[2].ToString() + "%</td><td class='fc'>1:" + str.Split(',')[3].ToString() + "%</td><td class='fc'>1:" + str.Split(',')[4].ToString() + "%</td><td class='fc'>1:" + str.Split(',')[5].ToString() + "%</td><td class='fc'>1:" + str.Split(',')[6].ToString() + "%</td><td class='fc'>1:" + str.Split(',')[7].ToString() + "%</td><td class='fc'>1:" + str.Split(',')[8].ToString() + "%</td></tr></tbody></table>\";";
}
}
}
else
{
pay1.Style.Add("display", "none");
foreach (string str in mDbyid.MD_Pay.Split(new char[] { '|' }))
{
int result = 0;
int.TryParse(str.Split(new char[] { ',' })[0], out result);
if (result == 102)
{
zeng = str.Split(new char[] { ',' })[2].ToString();
}
}
}
}
else
{
base.Response.Write("<script>alert('请重新操作');</script>");
}
}
}
protected void paybtnok_Click(object sender, EventArgs e)
{
decimal num = 0M;
try
{
num = decimal.Parse(paymoney.Text.Trim());
if (num < 0M)
{
errLabel.Text = "充值金额必须大于等于0";
return;
}
}
catch
{
num = 100M;
}
int num2 = 102;
string str = txtusername.Text.Trim();
if (num2 == 102)
{
string url = string.Empty;
PayMentFactory.PayType type = (PayMentFactory.PayType)num2;
ulong num3 = PayMentFactory.CreateOkxrOrderId(type);
string contactor = txtQQ.Text.Trim();
if (PayMentFactory.InitOrder(int.Parse(SafeCookie.GetCookie("sid")), str, int.Parse(SafeCookie.GetCookie("gmid")), type, num3, "0", num,contactor))
{
url = new Cared70().PayBank(num3.ToString(), num.ToString(), BankBox.Value);
base.Response.Redirect(url);
}
else
{
errLabel.Text = "充值失败";
}
}
}
}
}
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="x1.aspx.cs" Inherits="x1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
</head>
<body>
<form id="form1" runat="server" target="_blank">
<div class="warp">
<div class="header">
<div class="login_nav" id="login_nav">
</div><!--end login_nav-->
</div><!--end header-->
<div class="nav">
<ul>
<li><a href="#" class="on"><span><%=mdname %></span></a></li>
<li style="float:right; margin-right:10px; font-family: Georgia, 'Times New Roman', Times, serif; line-height:25px; color:#060"><span><uc1:QuestionRight ID="QuestionRight1" runat="server" /></span></li>
</ul>
</div><!--end nav--><!--end h7--><!--end bdr--><!--end that--><!--end footer-->
</div>
<div class="wrap">
<div style="margin-top:4px;"><span class="STYLE1"><img src="/images612/laba.gif" alt="" width="16" height="16" /> <asp:HiddenField ID="PayType" runat="server" Value="102"/>当前您选择<%=mdname %></span>
<span>兑换比列:<span style="COLOR:blue"><b><%=bili %></b><%=gamebz %> </span></span></span></div>
<DIV class="hotpay" style=" width:901px; background-image:url(/images612/hotpay1.jpg);background-repeat: no-repeat;overflow:hidden">
<DIV class="pay2" style="width:810px; margin-left:15px; margin-top:10px">
<fieldset><legend><span style="background: #339933; border: 2px dashed #060;text-align:center;padding:1px;"><font color="#FFFFFF"><b>网上银行充值</b></font></span></legend>
<div style="padding:1px">
<div id="pay1" runat="server"><br/>
<div id="paystring"></div>
</div><br/>
<div style="padding:1px">
<p class="giveinfo"><label for="svcno">输入账号:</label> <asp:TextBox ID="txtusername" runat="server" CssClass="shuru" ></asp:TextBox> <span style="color:Red">* 请认真核对.</span></p>
<p class="giveinfo"><label for="svcno2">确定账号:</label> <asp:TextBox ID="txtusername2" runat="server" CssClass="shuru"></asp:TextBox> <span style="color:Red">* 请认真核对.</span></p>
<p class="giveinfo"><label for="svcno2">手机/QQ:</label> <asp:TextBox ID="txtQQ" runat="server" CssClass="shuru" onkeyup="value=value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></asp:TextBox> <span style="color:Red">* 请认真核对.</span></p>
<p class="giveinfo"><label for="svcno2">金币:</label>
<asp:TextBox ID="paymoney" runat="server" style="width:55px" CssClass="shuru"></asp:TextBox> <asp:Label ID="errLabel" runat="server" Text="* 请输入您本次充值的金币.单位/元" ForeColor="#FF8000"></asp:Label></p></div></br>
<div id="ygk">
<div>
<asp:HiddenField ID="BankBox" runat="server" Value="1002" />
<div class="banklist">
<p><input type="radio" name="Pd_FrpId" onclick="SetBank(this.value)" value="1002" id="gsyh"/><label for="gsyh" class="gsyh"></label></p>
<p><input type="radio" name="Pd_FrpId" onclick="SetBank(this.value)" value="1005" id="nyyh"/><label for="nyyh" class="nyyh"></label></p>
<p><input type="radio" name="Pd_FrpId" onclick="SetBank(this.value)" value="1001" id="zsyh" /><label for="zsyh" class="zsyh"></label></p>
<p><input type="radio" name="Pd_FrpId" onclick="SetBank(this.value)" value="1003" id="jsyh"/><label for="jsyh" class="jsyh"></label></p></div>
</div></div></div>
</fieldset>
<br>
<p align="center">
<asp:Button ID="paybtnok" runat="server" Text="∴确定∴" class="qdcc2" OnClick="paybtnok_Click" OnClientClick="return f_login();"/>
</p>
</DIV><br>
<uc2:Footer ID="Footer1" runat="server" />
</DIV>
</DIV>
</div>
</div>
<script type="text/javascript"><%=_js %></script>
</form>
</body>
</html>
你的数据插到数据库里不指定字段,?这能放进数据库么?
ScriptManager+UpdatePannel 实现表态刷新,和Ajax效果一样
对,,,就是获取写入数据库的那段 数值 [quote=引用 13 楼 5653325 的回复:] 楼主的意思是X1.ASPX添加一条数据(后台生成一个随机数写入数据库),然后在X1.ASPX在弹出一个类似于对话框的提示,显示这个随机字符串?
对,,,就是获取写入数据库的那段 数值 楼主的意思是X1.ASPX添加一条数据(后台生成一个随机数写入数据库),然后在X1.ASPX在弹出一个类似于对话框的提示,显示这个随机字符串?
楼主的意思是X1.ASPX添加一条数据(后台生成一个随机数写入数据库),然后在X1.ASPX在弹出一个类似于对话框的提示,显示这个随机字符串?
显示被写入的这个 OkxrOrderId [quote=引用 7 楼 tan598121925 的回复:] [quote=引用 6 楼 zycgps 的回复:] [quote=引用 5 楼 tan598121925 的回复:] 你的层是显示随机数?
显示被写入的这个 OkxrOrderId [quote=引用 6 楼 zycgps 的回复:] [quote=引用 5 楼 tan598121925 的回复:] 你的层是显示随机数?
显示被写入的这个 OkxrOrderId [quote=引用 5 楼 tan598121925 的回复:] 你的层是显示随机数?
显示被写入的这个 OkxrOrderId 你的层是显示随机数?
你的层是显示随机数?