62,175
社区成员
发帖
与我相关
我的任务
分享
<asp:TextBox ID="txtEstablishedYear" runat="server" CssClass="textbox"></asp:TextBox>
<cc1:NumericUpDownExtender ID="NumericUpDownExtender1" runat="server" TargetControlID="txtEstablishedYear"
Width="150" RefValues="" ServiceDownMethod="" ServiceUpMethod="" TargetButtonDownID=""
TargetButtonUpID="" Minimum="1800" Maximum="2099" Step="1">
</cc1:NumericUpDownExtender>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<cc1:NumericUpDownExtender ID="TextBox1_NumericUpDownExtender" runat="server"
Enabled="True" Maximum="9000"
Minimum="4000" RefValues=""
ServiceDownMethod="GetPreviousValue" ServiceDownPath=""
ServiceUpMethod="GetNextValue" Tag="" TargetButtonDownID="" TargetButtonUpID=""
TargetControlID="TextBox1" Width="170">
</cc1:NumericUpDownExtender>
[System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()]
public static int GetNextValue(int current, string tag)
{
return current - 2;
}
[System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()]
public static int GetPreviousValue(int current, string tag)
{
return current + 2;
}