PopSetup.aspx
上传用户:cha0314
上传日期:2014-03-02
资源大小:12522k
文件大小:16k
源码类别:

C#编程

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="PopSetup.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.Mail.External.PopSetup" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>PopSetup</title>
  6. <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
  7. <meta content="C#" name="CODE_LANGUAGE">
  8. <meta content="JavaScript" name="vs_defaultClientScript">
  9. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  10. </HEAD>
  11. <body MS_POSITIONING="GridLayout">
  12. <form id="Form1" method="post" runat="server">
  13. <TABLE height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
  14. <TBODY>
  15. <TR>
  16. <TD style="HEIGHT: 15px" vAlign="bottom" noWrap></TD>
  17. </TR>
  18. <TR>
  19. <TD style="HEIGHT: 1px" noWrap></TD>
  20. </TR>
  21. <TR>
  22. <TD class="curstep" style="HEIGHT: 20px" noWrap align="right" bgColor="#93bee2" colSpan="1"
  23. rowSpan="1"><FONT face="宋体">POP 邮件设置</FONT> &nbsp;&nbsp;
  24. </TD>
  25. </TR>
  26. <TR>
  27. <TD vAlign="top" noWrap align="center">
  28. <TABLE height="100%" cellSpacing="0" cellPadding="0" width="95%" border="0">
  29. <TBODY>
  30. <TR>
  31. <TD vAlign="top" noWrap>
  32. <TABLE height="100%" cellSpacing="1" cellPadding="10" width="100%" border="0">
  33. <TBODY>
  34. <TR>
  35. <TD class="td" vAlign="top" width="612">
  36. <TABLE class="td" cellSpacing="0" cellPadding="0" width="100%" border="0">
  37. <TR>
  38. <TD height="10"><FONT face="宋体"></FONT></TD>
  39. </TR>
  40. <TR>
  41. <TD align="right" height="10">&nbsp;</TD>
  42. </TR>
  43. <TR>
  44. <TD align="right" height="15"><asp:button id="btnOK" runat="server" Text="确定"></asp:button><asp:button id="btnCancel" runat="server" Text="返回"></asp:button></TD>
  45. </TR>
  46. <TR>
  47. <TD class="curstep" style="HEIGHT: 24px" bgColor="#dbeaf5">&nbsp;设置 第一个 POP 帐户(默认):
  48. </TD>
  49. </TR>
  50. <TR>
  51. <TD height="1">
  52. <TABLE class="td" cellSpacing="0" cellPadding="0" width="100%" border="0">
  53. <TR>
  54. <TD style="WIDTH: 223px" height="5"></TD>
  55. <TD height="5"></TD>
  56. </TR>
  57. <TR>
  58. <TD style="WIDTH: 223px">显示名称:
  59. </TD>
  60. <TD><asp:textbox id="txtTitle1" runat="server" Width="200px"></asp:textbox></TD>
  61. </TR>
  62. <TR>
  63. <TD style="WIDTH: 223px">电子邮件地址:
  64. </TD>
  65. <TD><asp:textbox id="txtEmail1" runat="server" Width="200px"></asp:textbox><asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server" ValidationExpression="w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*"
  66. ControlToValidate="txtEMail1" ErrorMessage="邮件格式错误!">#</asp:regularexpressionvalidator></TD>
  67. </TR>
  68. <TR>
  69. <TD style="WIDTH: 223px"><FONT class="Wf">接收邮件服务器(POP3):</FONT>&nbsp;
  70. </TD>
  71. <TD><asp:textbox id="txtPopSvrName1" runat="server" Width="200px"></asp:textbox></TD>
  72. </TR>
  73. <TR>
  74. <TD style="WIDTH: 223px"><FONT class="Wf">POP 用户名:</FONT>
  75. </TD>
  76. <TD><asp:textbox id="txtPopUserName1" runat="server" Width="200px"></asp:textbox></TD>
  77. </TR>
  78. <TR>
  79. <TD style="WIDTH: 223px"><span id="lblPwdTxt1">POP 用户密码:</span></TD>
  80. <TD><INPUT id="lblPwd1" type="hidden" name="lblPwd1" runat="server"><asp:label id="lblPwdShow1" runat="server" Visible="False">******</asp:label></TD>
  81. </TR>
  82. <TR>
  83. <TD style="WIDTH: 223px"></TD>
  84. <TD><asp:textbox id="txtPopPwd1" runat="server" Width="200px" TextMode="Password"></asp:textbox></TD>
  85. </TR>
  86. <TR>
  87. <TD style="WIDTH: 223px"><FONT class="Wf">服务器超时(以秒为单位):</FONT>
  88. </TD>
  89. <TD><asp:textbox id="txtTimeOut1" runat="server" Width="60px">90</asp:textbox><asp:regularexpressionvalidator id="RegularExpressionValidator6" runat="server" ValidationExpression="d{2,3}" ControlToValidate="txtTimeOut1"
  90. ErrorMessage="[服务器超时]输入错误!">#</asp:regularexpressionvalidator></TD>
  91. </TR>
  92. <TR>
  93. <TD style="WIDTH: 223px"><FONT class="Wf">端口号:</FONT>
  94. </TD>
  95. <TD><asp:textbox id="txtPort1" runat="server" Width="60px">110</asp:textbox><asp:regularexpressionvalidator id="Regularexpressionvalidator9" runat="server" ValidationExpression="d{2,5}" ControlToValidate="txtPort1"
  96. ErrorMessage="[端口号]输入错误!">#</asp:regularexpressionvalidator>(注意:标准端口号为 110)
  97. </TD>
  98. </TR>
  99. <TR>
  100. <TD style="WIDTH: 223px"></TD>
  101. <TD><label for="chkDelSvrMsg1"><asp:checkbox id="chkDelSvrMsg1" runat="server" Text="将邮件保留在 POP 服务器上"></asp:checkbox></label></TD>
  102. </TR>
  103. <TR>
  104. <TD style="WIDTH: 223px"></TD>
  105. <TD><label for="chkDownNew1"><asp:checkbox id="chkDownNew1" runat="server" Text="只下载新邮件"></asp:checkbox></label></TD>
  106. </TR>
  107. <TR>
  108. <TD style="WIDTH: 223px"></TD>
  109. <TD><label for="chkSvrAuth1"><FONT face="宋体"></FONT></label></TD>
  110. </TR>
  111. <TR>
  112. <TD style="WIDTH: 223px"></TD>
  113. <TD><asp:button id="btnTest1" runat="server" Text="测试邮件设置"></asp:button><asp:label id="lblResultRep1" runat="server" Visible="False" BorderColor="Red" Font-Size="X-Small"
  114. ForeColor="Red"></asp:label></TD>
  115. </TR>
  116. </TABLE>
  117. </TD>
  118. </TR>
  119. <TR>
  120. <TD height="20"></TD>
  121. </TR>
  122. <TR>
  123. <TD class="curstep" bgColor="#dbeaf5" height="24">设置 第二个 POP 帐户:
  124. </TD>
  125. </TR>
  126. <TR>
  127. <TD>
  128. <TABLE class="td" cellSpacing="0" cellPadding="0" width="100%" border="0">
  129. <TR>
  130. <TD style="WIDTH: 223px" height="5"></TD>
  131. <TD height="5"></TD>
  132. </TR>
  133. <TR>
  134. <TD style="WIDTH: 223px">显示名称:
  135. </TD>
  136. <TD><asp:textbox id="txtTitle2" runat="server" Width="200px"></asp:textbox></TD>
  137. </TR>
  138. <TR>
  139. <TD style="WIDTH: 223px; HEIGHT: 16px">电子邮件地址:
  140. </TD>
  141. <TD style="HEIGHT: 16px"><asp:textbox id="txtEmail2" runat="server" Width="200px"></asp:textbox><asp:regularexpressionvalidator id="Regularexpressionvalidator2" runat="server" ValidationExpression="w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*"
  142. ControlToValidate="txtEMail2" ErrorMessage="邮件格式错误!">#</asp:regularexpressionvalidator></TD>
  143. </TR>
  144. <TR>
  145. <TD style="WIDTH: 223px"><FONT class="Wf">接收邮件服务器(POP3):</FONT>
  146. </TD>
  147. <TD><asp:textbox id="txtPopSvrName2" runat="server" Width="200px"></asp:textbox></TD>
  148. </TR>
  149. <TR>
  150. <TD style="WIDTH: 223px"><FONT class="Wf">POP 用户名:</FONT>
  151. </TD>
  152. <TD><asp:textbox id="txtPopUserName2" runat="server" Width="200px"></asp:textbox></TD>
  153. </TR>
  154. <TR>
  155. <TD style="WIDTH: 223px"><span id="lblPwdTxt2">POP 用户密码:</span></TD>
  156. <TD><INPUT id="lblPwd2" type="hidden" name="lblPwd2" runat="server"><asp:label id="lblPwdShow2" runat="server" Visible="False">******</asp:label></TD>
  157. </TR>
  158. <TR>
  159. <TD style="WIDTH: 223px"><FONT class="Wf"></FONT></TD>
  160. <TD><asp:textbox id="txtPopPwd2" runat="server" Width="200px" TextMode="Password"></asp:textbox></TD>
  161. </TR>
  162. <TR>
  163. <TD style="WIDTH: 223px"><FONT class="Wf">服务器超时(以秒为单位):</FONT>
  164. </TD>
  165. <TD><asp:textbox id="txtTimeOut2" runat="server" Width="60px">90</asp:textbox><asp:regularexpressionvalidator id="Regularexpressionvalidator4" runat="server" ValidationExpression="d{2,3}" ControlToValidate="txtTimeOut2"
  166. ErrorMessage="[服务器超时]输入错误!">#</asp:regularexpressionvalidator></TD>
  167. </TR>
  168. <TR>
  169. <TD style="WIDTH: 223px"><FONT class="Wf">端口号:</FONT>
  170. </TD>
  171. <TD><asp:textbox id="txtPort2" runat="server" Width="60px">110</asp:textbox><asp:regularexpressionvalidator id="Regularexpressionvalidator8" runat="server" ValidationExpression="d{2,5}" ControlToValidate="txtPort2"
  172. ErrorMessage="[端口号]输入错误!">#</asp:regularexpressionvalidator>(注意:标准端口号为 110)
  173. </TD>
  174. </TR>
  175. <TR>
  176. <TD style="WIDTH: 223px"></TD>
  177. <TD><label for="chkDelSvrMsg2"><asp:checkbox id="chkDelSvrMsg2" runat="server" Text="将邮件保留在 POP 服务器上"></asp:checkbox></label></TD>
  178. </TR>
  179. <TR>
  180. <TD style="WIDTH: 223px"></TD>
  181. <TD><asp:checkbox id="chkDownNew2" runat="server" Text="只下载新邮件"></asp:checkbox></TD>
  182. </TR>
  183. <TR>
  184. <TD style="WIDTH: 223px"></TD>
  185. <TD><label for="chkSvrAuth2"><FONT face="宋体"></FONT></label></TD>
  186. </TR>
  187. <TR>
  188. <TD style="WIDTH: 223px"></TD>
  189. <TD><asp:button id="btnTest2" runat="server" Text="测试邮件设置"></asp:button><asp:label id="lblResultRep2" runat="server" Visible="False" BorderColor="Red" Font-Size="X-Small"
  190. ForeColor="Red"></asp:label></TD>
  191. </TR>
  192. </TABLE>
  193. </TD>
  194. </TR>
  195. <TR>
  196. <TD height="20"></TD>
  197. </TR>
  198. <TR>
  199. <TD class="curstep" bgColor="#dbeaf5" height="24">设置 第三个 POP 帐户:
  200. </TD>
  201. </TR>
  202. <TR>
  203. <TD>
  204. <TABLE class="td" cellSpacing="0" cellPadding="0" width="100%" border="0">
  205. <TR>
  206. <TD style="WIDTH: 223px" height="5"></TD>
  207. <TD height="5"></TD>
  208. </TR>
  209. <TR>
  210. <TD style="WIDTH: 223px">显示名称:
  211. </TD>
  212. <TD><asp:textbox id="txtTitle3" runat="server" Width="200px"></asp:textbox></TD>
  213. </TR>
  214. <TR>
  215. <TD style="WIDTH: 223px">电子邮件地址:
  216. </TD>
  217. <TD><asp:textbox id="txtEmail3" runat="server" Width="200px"></asp:textbox><asp:regularexpressionvalidator id="Regularexpressionvalidator3" runat="server" ValidationExpression="w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*"
  218. ControlToValidate="txtEMail3" ErrorMessage="邮件格式错误!">#</asp:regularexpressionvalidator></TD>
  219. </TR>
  220. <TR>
  221. <TD style="WIDTH: 223px"><FONT class="Wf"><FONT class="Wf">接收邮件服务器(POP3):</FONT></FONT>
  222. </TD>
  223. <TD><asp:textbox id="txtPopSvrName3" runat="server" Width="200px"></asp:textbox></TD>
  224. </TR>
  225. <TR>
  226. <TD style="WIDTH: 223px"><FONT class="Wf">POP 用户名:</FONT>
  227. </TD>
  228. <TD><asp:textbox id="txtPopUserName3" runat="server" Width="200px"></asp:textbox></TD>
  229. </TR>
  230. <TR>
  231. <TD style="WIDTH: 223px"><span id="lblPwdTxt3">POP 用户密码:</span></TD>
  232. <TD><INPUT id="lblPwd3" type="hidden" name="lblPwd3" runat="server"><asp:label id="lblPwdShow3" runat="server" Visible="False">******</asp:label></TD>
  233. </TR>
  234. <TR>
  235. <TD style="WIDTH: 223px">&nbsp;</TD>
  236. <TD><asp:textbox id="txtPopPwd3" runat="server" Width="200px" TextMode="Password"></asp:textbox></TD>
  237. </TR>
  238. <TR>
  239. <TD style="WIDTH: 223px"><FONT class="Wf">服务器超时(以秒为单位):</FONT>
  240. </TD>
  241. <TD><asp:textbox id="txtTimeOut3" runat="server" Width="60px">90</asp:textbox><asp:regularexpressionvalidator id="Regularexpressionvalidator5" runat="server" ValidationExpression="d{2,3}" ControlToValidate="txtTimeOut3"
  242. ErrorMessage="[服务器超时]输入错误!">#</asp:regularexpressionvalidator></TD>
  243. </TR>
  244. <TR>
  245. <TD style="WIDTH: 223px"><FONT class="Wf">端口号:</FONT>
  246. </TD>
  247. <TD><asp:textbox id="txtPort3" runat="server" Width="60px">110</asp:textbox><asp:regularexpressionvalidator id="Regularexpressionvalidator7" runat="server" ValidationExpression="d{2,5}" ControlToValidate="txtPort3"
  248. ErrorMessage="[端口号]输入错误!">#</asp:regularexpressionvalidator>(注意:标准端口号为 110)
  249. </TD>
  250. </TR>
  251. <TR>
  252. <TD style="WIDTH: 223px"></TD>
  253. <TD><asp:checkbox id="chkDelSvrMsg3" runat="server" Text="将邮件保留在 POP 服务器上"></asp:checkbox></TD>
  254. </TR>
  255. <TR>
  256. <TD style="WIDTH: 223px"></TD>
  257. <TD><asp:checkbox id="chkDownNew3" runat="server" Text="只下载新邮件"></asp:checkbox></TD>
  258. </TR>
  259. <TR>
  260. <TD style="WIDTH: 223px"></TD>
  261. <TD><label for="chkSvrAuth3"><FONT face="宋体"></FONT></label></TD>
  262. </TR>
  263. <TR>
  264. <TD style="WIDTH: 223px"></TD>
  265. <TD>
  266. <asp:Button id="btnTest3" runat="server" Text="测试邮件设置"></asp:Button>
  267. <asp:Label id="lblResultRep3" runat="server" Visible="False" BorderColor="Red" Font-Size="X-Small"
  268. ForeColor="Red"></asp:Label></TD>
  269. </TR>
  270. </TABLE>
  271. </TD>
  272. </TR>
  273. <TR>
  274. <TD height="21" style="HEIGHT: 21px"></TD>
  275. </TR>
  276. <TR>
  277. <TD align="right"><input type="button" value="确定" onclick="document.all.Form1.btnOK.click()"><input type="button" value="返回" onclick="document.all.Form1.btnCancel.click()"></TD>
  278. </TR>
  279. </TABLE>
  280. </form>
  281. </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
  282. </body>
  283. </HTML>