1、我用editor 2.8.0来写ASP.NET后台为什么页面增加上了这个之后
"<iframe id="eWebEditor1" src="editor/ewebeditor.asp?id=neirong&amp;style=newoffice" frameborder="0"
width="96%" scrolling="no" height="350"></iframe>"
虽然工作是正常的,但按钮不能捕捉到事件了,点击按钮的事件一个都不执行,跟本不会跳转过去。,去除这个代码就能正常捕捉到了。2、asp.net中使用FORMS 验证时怎么样将用户名密码写到数据库中啊,有没有例子看看,我用的是VB.NET,N多说的都是将用户名密码写在webconfig中啊

解决方案 »

  1.   

    当然是可以的
    sql = "select * from 数据库表 Where UserName='" + UserName.Text + " and  pwd='xxxx''
    Datareader读出数据记录
    if(dr.HasRows)
    {
    '有用户记录,下面进行登录
    }    FormsAuthentication.SetAuthCookie(UserName.Text,chkRememberMe.Checked)
        FormsAuthentication.RedirectFromLoginPage(UserName.Text,chkRememberMe.Checked)
      

  2.   

    加一个iframe 不至于影响。估计还是代码的某些地方的问题
      

  3.   

    我试将<iframe id="eWebEditor1" src="editor/ewebeditor.asp?id=neirong&amp;style=newoffice" frameborder="0"
    width="96%" scrolling="no" height="350"></iframe>去除就可以了啊,或将editor/ewebeditor.asp?id=neirong&amp;style=newoffice 换成其它文件就正常了啊
      

  4.   

    换用3.8的版本正常了。form验证的我试一下