2007年11月8日
摘要: 调用helloWorld的返回值是正确的,调用add的时候,传入(1,2)时,返回值却为0,不知什么原因,这个问题困惑了很久,请高手们指教~ 以下是源码 //c#写的webservice的源码 [WebService(Namespace = "http://tempuri.org/ ")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class servTest : System.Web.Services.WebService { public servTest () { //Uncomment the following line if using designed components //InitializeComponent(); } [WebMethod] public string HelloWorld() { return 阅读全文
posted @ 2007-11-08 11:41 家猫 阅读(1260) 评论(0) 推荐(0) 编辑
摘要: 具体做法如下: 首先,创建Login窗口,然后添加相应的输入框和按钮,设置窗口的AcceptButton为窗体的确认按钮,而CancelButton为窗体的取消按钮。例如: this.AcceptButton = this.btnOK; this.CancelButton = this.btnCancel; 定义确定按钮以及取消按钮事件,如下: private void btnOK_Click(object sender, System.EventArgs e) { // Here is to use fixed username and password // You can check username and password from DB if( txtUserName.Text == "Admin" && txtPassword.Text == "nopassword" ) { 阅读全文
posted @ 2007-11-08 11:22 家猫 阅读(579) 评论(0) 推荐(0) 编辑