userloginID에 대한 텍스트 상자가있는 로그인 패널이 있습니다. 로그인 버튼을 클릭하면 데이터 소스는 텍스트 상자의 valkue를 선택하고 userloginID 텍스트 상자의 값에 따라 필터링 된 데이터를 chklistbox에 제공합니다.chklistbox에 대한 데이터 소스의 매개 변수로 텍스트 상자의 값 사용
난 단지 로그인 버튼을 클릭 할 때 chklistbox에 데이터 소스를 연결,하지만 여전히 FAL 응용 프로그램, 재치를 통해 LS folowing 메시지 : 여기
가 로그인 버튼 코드 (온 클릭)이다The Type property of parameter 'UserLogin' cannot be set when the DbType property is set. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The Type property of parameter 'UserLogin' cannot be set when the DbType property is set.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: The Type property of parameter 'UserLogin' cannot be set when the DbType property is set.]
System.Web.UI.WebControls.Parameter.GetValue(Object value, Boolean ignoreNullableTypeChanges) +1751307
System.Web.UI.WebControls.ParameterCollection.GetValues(HttpContext context, Control control) +301
System.Web.UI.WebControls.SqlDataSourceView.InitializeParameters(DbCommand command, ParameterCollection parameters, IDictionary exclusionList) +264 System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +472
System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) +95
System.Web.UI.WebControls.ListControl.PerformSelect() +34
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +22 System.Web.UI.WebControls.ListControl.OnPreRender(EventArgs e) +18 System.Web.UI.WebControls.CheckBoxList.OnPreRender(EventArgs e) +20 System.Web.UI.Control.PreRenderRecursiveInternal() +80
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
Protected Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click
If btnLogin.Text = "Login" Then
btnLogin.Text = "Logout"
PanelLogin.BackColor = Drawing.Color.LightGreen
Me.CurrentUserLogin = Me.txtUserId.Text
Me.chkLstClientcodes.DataBind()
txtStatus.Text = "Logqed in as Andrew McLintock"
'LoginSuccessInit()
Me.chkLstClientcodes.DataSourceID = "clientcodes"
Else
btnLogin.Text = "Login"
PanelLogin.BackColor = Drawing.Color.LightSalmon
txtStatus.Text = "Not Logged In!!!"
End If
'Me.Page.Controls.Clear()
End
Sub