小编Vid*_*dya的帖子

使用nHibernate在数据库中使用Data填充ASP.net MVC3中的select

我需要使用nHibernate映射填充数据库字段中的数据,用于ASP.net MVC3中的select ...请给我一个如何做的示例代码..

关心Srividhya

asp.net select asp.net-mvc-3

0
推荐指数
1
解决办法
1270
查看次数

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)

我在UserControl,页面加载中得到以下异常.我曾尝试在Google上搜索此内容,但没有找到太多信息.如果有人能帮助我,请告诉我.

情况是,有一个ascx.cs文件用于不同语言的各种用户控件.

应用程序正常运行,但有时会抛出此异常.

Exception information: 
Exception type: NullReferenceException 
Exception message: Object reference not set to an instance of an object.
at SmartSoft.SmartLiveWeb.UserControls.Common.PayoutForms.BoundAccountsOfMember()
at SmartSoft.SmartLiveWeb.UserControls.Common.PayoutForms.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Run Code Online (Sandbox Code Playgroud)

请求信息:已通过身份验证:True身份验证类型:表单线程帐户名称:IIS APPPOOL\SLC网站

protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                /*
                if (Request.QueryString.Count > 0 && Request.QueryString["MId"] != null)
                    this.MId = int.Parse(Request.QueryString.Get("MId"));
                */

                HideAllForms();
                AddValidationAttributesToControls();
                **BoundAccountsOfMember();**
                BoundWithdrawMethods(); …
Run Code Online (Sandbox Code Playgroud)

c# asp.net exception

0
推荐指数
1
解决办法
3万
查看次数

解释提到的正则表达式

任何人都可以解释下面的正则表达式,这已经在我的应用程序中使用了很长一段时间,甚至在我加入之前,我对正则表达式很新.

/^.*(?=.{6,10})(?=.*[a-zA-Z].*[a-zA-Z].*[a-zA-Z].*[a-zA-Z])(?=.*\d.*\d).*$/ 
Run Code Online (Sandbox Code Playgroud)

据我所理解

这个正则表达式将验证 - 至少6个字符到最多10个字符 - 将逃脱像^和$这样的字符

另外,我的基本需求是我想要一个至少6个字符的正则表达式,其中1个字符是一个数字,另一个是特殊字符.

c# regex

0
推荐指数
1
解决办法
196
查看次数

标签 统计

asp.net ×2

c# ×2

asp.net-mvc-3 ×1

exception ×1

regex ×1

select ×1