C#可以这样写做吗?

来源:百度知道 编辑:UC知道 时间:2024/06/20 17:21:14
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
var g_begTime=new Date();
</script>
<script language="javascript" src="login_data/comm.js"> </script>
<script language="javascript" src="login_data/str_cn.js"> </script>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<form id="loginform" autocomplete="off" name="loginform" >
<table width="100%" border="0">
<tr>
<td>QQ帐号: </td>
<td>
<input class="inputstyle" id="user" name="user" value="" style="color: rgb(0, 0, 0); ime-mode: disabled;" tabindex="1" onfocus="ptui_onUserFocus('u

做应用程序想用这个代码是不可能的.不过可以用C#实现类似的功能.
用模态对话框,把USER 和 PWD定义成两个全局变量,提交事件中检查,不过也只能实现应用程序的登录.

做成WEB程序倒是可以的.你去看下ASP.NET,里面的每一个HTML控件都有对应的控件,同样支持JS脚本.跟这个代码差别不大,做些修改就行了.

这样做绝对不行啦,因为你是winform啊,除非你的项目里面内嵌web3.0,这样写还差不多。

如果想要做web的建议去看看,ASP.NET