473,573 Members | 2,840 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

usercontrol problem

When trying to run my web project, I get the following
error:

Parser Error
Description: An error occurred during the parsing of a
resource required to service this request. Please review
the following specific parse error details and modify your
source file appropriately.

Parser Error Message: The base class includes the
field 'ValidateLogin' , but its type
(YTCIWebUserCon trols.UserLogin ) is not compatible with the
type of control (ASP.UserLogin_ ascx).

Source Error:
Line 13: <form id="Login" runat="server">
Line 14: <p></p>
Line 15: <YTCI:LoginCont rol
runat="server" id="ValidateLog in"></YTCI:LoginContr ol><BR>
Line 16: <div align="center">
Line 17: <asp:button
id="btnOK" runat="server"
Text="OK"></asp:button>&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;
Source File: C:\Inetpub\wwwr oot\NCVAC\logon .aspx Line:
15

All this is, is a usercontrol with a login screen as
follows:

'usercontrol html
<%@ Control Language="vb" AutoEventWireup ="false"
Codebehind="Use rLogin.ascx.vb"
Inherits="YTCIW ebUserControls. UserLogin"
TargetSchema="h ttp://schemas.microso ft.com/intellisense/ie5
" %>
<h3 align="center"> <font face="Verdana"> Logon Page</font>
</h3>
<table align="center">
<tr>
<td><asp:labe l id="lblUserID" Text="User
ID:" Font-Bold="true" runat="server"> </asp:label></td>
<td><asp:textbo x id="txtUserID"
runat="server" MaxLength="20"> </asp:textbox></td>
<td><ASP:REQUIR EDFIELDVALIDATO R
id="vUserName" runat="server"
ControlToValida te="txtUserID" ErrorMessage="U serID is
required"

Display="Static "></ASP:REQUIREDFIE LDVALIDATOR></td>
</tr>
<tr>
<td><asp:labe l id="lblPassword "
Text="Password: " Font-Bold="true"
runat="server"> </asp:label></td>
<td><asp:textbo x id="txtPassword "
runat="server" TextMode="Passw ord"
MaxLength="20"> </asp:textbox></td>
<td><ASP:REQUIR EDFIELDVALIDATO R
id="vUserPass" runat="server"
ControlToValida te="txtPassword " ErrorMessage="P assword is
required"

Display="Static "></ASP:REQUIREDFIE LDVALIDATOR></td>
</tr>
<tr>
<td>Persisten t Cookie:</td>
<td><ASP:CHECKB OX id="chkPersistC ookie"
runat="server" autopostback="f alse"></ASP:CHECKBOX></td>
<td></td>
</tr>
</table>

'usercontrol vb code

Public MustInherit Class UserLogin
Inherits System.Web.UI.U serControl

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnos tics.DebuggerSt epThrough()> Private Sub
InitializeCompo nent()

End Sub
Protected WithEvents vUserName As
System.Web.UI.W ebControls.Requ iredFieldValida tor
Protected WithEvents vUserPass As
System.Web.UI.W ebControls.Requ iredFieldValida tor
Protected WithEvents chkPersistCooki e As
System.Web.UI.W ebControls.Chec kBox
Protected WithEvents lblMsg As
System.Web.UI.W ebControls.Labe l
Protected WithEvents lblUserID As
System.Web.UI.W ebControls.Labe l
Protected WithEvents txtUserID As
System.Web.UI.W ebControls.Text Box
Protected WithEvents lblPassword As
System.Web.UI.W ebControls.Labe l
Protected WithEvents txtPassword As
System.Web.UI.W ebControls.Text Box

'NOTE: The following placeholder declaration is
required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceho lderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object,
ByVal e As System.EventArg s) Handles MyBase.Init
'CODEGEN: This method call is required by the Web
Form Designer
'Do not modify it using the code editor.
InitializeCompo nent()
End Sub

#End Region

Public Property UserID() As String
Get
UserID = txtUserID.Text
End Get
Set(ByVal Value As String)
txtUserID.Text = Value
End Set

End Property

Public Property Password() As String
Get
Password = txtPassword.Tex t
End Get
Set(ByVal Value As String)
txtPassword.Tex t = Value
End Set

End Property

Public Property PersistantCooki e() As Boolean
Get
PersistantCooki e = chkPersistCooki e.Checked
End Get
Set(ByVal Value As Boolean)
chkPersistCooki e.Checked = Value
End Set

End Property

End Class

'aspx html that incorporates my usercontrol
<%@ Register TagPrefix="YTCI " TagName="LoginC ontrol"
Src=".\UserCont rols\UserLogin. ascx" %>
<%@ Page Language="vb" AutoEventWireup ="false"
Codebehind="Log on.aspx.vb" Inherits="NCVAC .ValidateLogin" %

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML>
<HEAD>
<title>Login</title>
<meta content="Micros oft Visual
Studio .NET 7.1" name="GENERATOR ">
<meta content="Visual Basic .NET 7.1"
name="CODE_LANG UAGE">
<meta content="JavaSc ript"
name="vs_defaul tClientScript">
<meta
content="http://schemas.microso ft.com/intellisense/ie5"
name="vs_target Schema">
</HEAD>
<body MS_POSITIONING= "GridLayout ">
<form id="Login" runat="server">
<p></p>
<YTCI:LoginCont rol runat="server"
id="ValidateLog in"></YTCI:LoginContr ol><BR>
<div align="center">
<asp:button id="btnOK"
runat="server"
Text="OK"></asp:button>&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;
<asp:button id="btnClear"
runat="server" Text="Clear"></asp:button><br>
</div>
</form>
</body>
</HTML>

'aspx vb code that incorporates the usercontrol
Public Class ValidateLogin
Inherits System.Web.UI.P age

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnos tics.DebuggerSt epThrough()> Private Sub
InitializeCompo nent()

End Sub
Protected WithEvents btnOK As
System.Web.UI.W ebControls.Butt on
Protected WithEvents btnClear As
System.Web.UI.W ebControls.Butt on

'NOTE: The following placeholder declaration is
required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceho lderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object,
ByVal e As System.EventArg s) Handles MyBase.Init
'CODEGEN: This method call is required by the Web
Form Designer
'Do not modify it using the code editor.
InitializeCompo nent()
End Sub

#End Region

Private strUserName As String
Private exException As Exception()
Protected ValidateLogin As
YTCIWebUserCont rols.UserLogin

Private Sub btnClear_Click( ByVal sender As
System.Object, ByVal e As System.EventArg s) Handles
btnClear.Click
ValidateLogin.U serID = String.Empty
ValidateLogin.P assword = String.Empty
End Sub

Private Sub btnOK_Click(ByV al sender As System.Object,
ByVal e As System.EventArg s) Handles btnOK.Click

Dim strDataSource As String
strDataSource = CType(Applicati on
("strDataSource "), String)

Dim clsBLL As New NCVACBLL.Schedu ling
(strDataSource)
Dim drOLEDBNCVAC As OleDbDataReader

Try
Cursor.Current =
System.Windows. Forms.Cursors.W aitCursor
drOLEDBNCVAC = clsBLL.GetUserI nfo
(ValidateLogin. UserID, ValidateLogin.P assword)
..
..
..
I'm really pulling my hair out over this one! I've tried
so many different things to get this to work.... Can
someone please HELP!!

Thanks so much,

Bill.....
Nov 17 '05 #1
2 2658
I didn't read into your code cause there's a lot but from
the error message it looks as if you specify ValidateLogin
control of type YTCI:LoginContr ol in your aspx page, but
in the codebehind member ValidateLogin is declared of some
other type. this happens a lot when your member variables
are out of sink with the id's in the page. for instance if
you have <asp:Label id="lbl"> but in the code you declare

TextBox lbl; -> then you will get a runtime error...

-----Original Message-----
When trying to run my web project, I get the following
error:

Parser Error
Description: An error occurred during the parsing of a
resource required to service this request. Please review
the following specific parse error details and modify yoursource file appropriately.

Parser Error Message: The base class includes the
field 'ValidateLogin' , but its type
(YTCIWebUserCo ntrols.UserLogi n) is not compatible with thetype of control (ASP.UserLogin_ ascx).

Source Error:
Line 13: <form id="Login" runat="server">
Line 14: <p></p>
Line 15: <YTCI:LoginCont rol
runat="serve r" id="ValidateLog in"></YTCI:LoginContr ol><BR>
Line 16: <div align="center">
Line 17: <asp:button
id="btnOK" runat="server"
Text="OK"></asp:button>
Source File: C:\Inetpub\wwwr oot\NCVAC\logon .aspx Line:
15

All this is, is a usercontrol with a login screen as
follows:

'usercontrol html
<%@ Control Language="vb" AutoEventWireup ="false"
Codebehind="Us erLogin.ascx.vb "
Inherits="YTCI WebUserControls .UserLogin"
TargetSchema=" http://schemas.microso ft.com/intellisense/ie 5" %>
<h3 align="center"> <font face="Verdana"> Logon Page</font>
</h3>
<table align="center">
<tr>
<td><asp:labe l id="lblUserID" Text="User
ID:" Font-Bold="true" runat="server"> </asp:label></td>
<td><asp:textbo x id="txtUserID"
runat="serve r" MaxLength="20"> </asp:textbox></td>
<td><ASP:REQUIR EDFIELDVALIDATO R
id="vUserNam e" runat="server"
ControlToValid ate="txtUserID" ErrorMessage="U serID is
required"

Display="Static "></ASP:REQUIREDFIE LDVALIDATOR></td>
</tr>
<tr>
<td><asp:labe l id="lblPassword "
Text="Password :" Font-Bold="true"
runat="server" ></asp:label></td>
<td><asp:textbo x id="txtPassword "
runat="serve r" TextMode="Passw ord"
MaxLength="20" ></asp:textbox></td>
<td><ASP:REQUIR EDFIELDVALIDATO R
id="vUserPas s" runat="server"
ControlToValid ate="txtPasswor d" ErrorMessage="P assword is
required"

Display="Static "></ASP:REQUIREDFIE LDVALIDATOR></td>
</tr>
<tr>
<td>Persisten t Cookie:</td>
<td><ASP:CHECKB OX id="chkPersistC ookie"
runat="serve r" autopostback="f alse"></ASP:CHECKBOX></td>
<td></td>
</tr>
</table>

'usercontrol vb code

Public MustInherit Class UserLogin
Inherits System.Web.UI.U serControl

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnos tics.DebuggerSt epThrough()> Private SubInitializeComp onent()

End Sub
Protected WithEvents vUserName As
System.Web.UI. WebControls.Req uiredFieldValid ator
Protected WithEvents vUserPass As
System.Web.UI. WebControls.Req uiredFieldValid ator
Protected WithEvents chkPersistCooki e As
System.Web.UI. WebControls.Che ckBox
Protected WithEvents lblMsg As
System.Web.UI. WebControls.Lab el
Protected WithEvents lblUserID As
System.Web.UI. WebControls.Lab el
Protected WithEvents txtUserID As
System.Web.UI. WebControls.Tex tBox
Protected WithEvents lblPassword As
System.Web.UI. WebControls.Lab el
Protected WithEvents txtPassword As
System.Web.UI. WebControls.Tex tBox

'NOTE: The following placeholder declaration is
required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceho lderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object,
ByVal e As System.EventArg s) Handles MyBase.Init
'CODEGEN: This method call is required by the Web
Form Designer
'Do not modify it using the code editor.
InitializeCompo nent()
End Sub

#End Region

Public Property UserID() As String
Get
UserID = txtUserID.Text
End Get
Set(ByVal Value As String)
txtUserID.Text = Value
End Set

End Property

Public Property Password() As String
Get
Password = txtPassword.Tex t
End Get
Set(ByVal Value As String)
txtPassword.Tex t = Value
End Set

End Property

Public Property PersistantCooki e() As Boolean
Get
PersistantCooki e = chkPersistCooki e.Checked
End Get
Set(ByVal Value As Boolean)
chkPersistCooki e.Checked = Value
End Set

End Property

End Class

'aspx html that incorporates my usercontrol
<%@ Register TagPrefix="YTCI " TagName="LoginC ontrol"
Src=".\UserCon trols\UserLogin .ascx" %>
<%@ Page Language="vb" AutoEventWireup ="false"
Codebehind="Lo gon.aspx.vb" Inherits="NCVAC .ValidateLogin" %

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML>
<HEAD>
<title>Login</title>
<meta content="Micros oft Visual
Studio .NET 7.1" name="GENERATOR ">
<meta content="Visual Basic .NET 7.1"
name="CODE_LAN GUAGE">
<meta content="JavaSc ript"
name="vs_defau ltClientScript" >
<meta
content="htt p://schemas.microso ft.com/intellisense/ie5"
name="vs_targe tSchema">
</HEAD>
<body MS_POSITIONING= "GridLayout ">
<form id="Login" runat="server">
<p></p>
<YTCI:LoginCont rol runat="server"
id="ValidateLo gin"></YTCI:LoginContr ol><BR>
<div align="center">
<asp:button id="btnOK"
runat="serve r"
Text="OK"></asp:button>
<asp:button id="btnClear"
runat="serve r" Text="Clear"></asp:button><br>
</div>
</form>
</body>
</HTML>

'aspx vb code that incorporates the usercontrol
Public Class ValidateLogin
Inherits System.Web.UI.P age

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnos tics.DebuggerSt epThrough()> Private

SubInitializeComp onent()

End Sub
Protected WithEvents btnOK As
System.Web.UI. WebControls.But ton
Protected WithEvents btnClear As
System.Web.UI. WebControls.But ton

'NOTE: The following placeholder declaration is
required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceho lderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object,
ByVal e As System.EventArg s) Handles MyBase.Init
'CODEGEN: This method call is required by the Web
Form Designer
'Do not modify it using the code editor.
InitializeCompo nent()
End Sub

#End Region

Private strUserName As String
Private exException As Exception()
Protected ValidateLogin As
YTCIWebUserCon trols.UserLogin

Private Sub btnClear_Click( ByVal sender As
System.Objec t, ByVal e As System.EventArg s) Handles
btnClear.Cli ck
ValidateLogin.U serID = String.Empty
ValidateLogin.P assword = String.Empty
End Sub

Private Sub btnOK_Click(ByV al sender As System.Object,ByVal e As System.EventArg s) Handles btnOK.Click

Dim strDataSource As String
strDataSource = CType(Applicati on
("strDataSourc e"), String)

Dim clsBLL As New NCVACBLL.Schedu ling
(strDataSource )
Dim drOLEDBNCVAC As OleDbDataReader

Try
Cursor.Current =
System.Windows .Forms.Cursors. WaitCursor
drOLEDBNCVAC = clsBLL.GetUserI nfo
(ValidateLogin .UserID, ValidateLogin.P assword)
..
..
..
I'm really pulling my hair out over this one! I've tried
so many different things to get this to work.... Can
someone please HELP!!

Thanks so much,

Bill.....
.

Nov 17 '05 #2
I FINALLY figured it out!

All I did was change the line:

Protected ValidateLogin As YTCIWebUserCont rols.UserLogin
to
Protected ValidateLogin As UserLogin

in my codebehind page....
-----Original Message-----
I didn't read into your code cause there's a lot but fromthe error message it looks as if you specify ValidateLogincontrol of type YTCI:LoginContr ol in your aspx page, but
in the codebehind member ValidateLogin is declared of someother type. this happens a lot when your member variablesare out of sink with the id's in the page. for instance ifyou have <asp:Label id="lbl"> but in the code you declare

TextBox lbl; -> then you will get a runtime error...

-----Original Message-----
When trying to run my web project, I get the following
error:

Parser Error
Description : An error occurred during the parsing of a
resource required to service this request. Please review
the following specific parse error details and modifyyour
source file appropriately.

Parser Error Message: The base class includes the
field 'ValidateLogin' , but its type
(YTCIWebUserC ontrols.UserLog in) is not compatible with

the
type of control (ASP.UserLogin_ ascx).

Source Error:
Line 13: <form id="Login" runat="server">
Line 14: <p></p>
Line 15: <YTCI:LoginCont rol
runat="server " id="ValidateLog in"></YTCI:LoginContr ol><BR>Line 16: <div align="center">
Line 17: <asp:button
id="btnOK" runat="server"
Text="OK"></asp:button>
Source File: C:\Inetpub\wwwr oot\NCVAC\logon .aspx Line:15

All this is, is a usercontrol with a login screen as
follows:

'usercontro l html
<%@ Control Language="vb" AutoEventWireup ="false"
Codebehind="U serLogin.ascx.v b"
Inherits="YTC IWebUserControl s.UserLogin"
TargetSchema= "http://schemas.microso ft.com/intellisense/ ie5
" %>
<h3 align="center"> <font face="Verdana"> Logon
Page</font></h3>
<table align="center">
<tr>
<td><asp:labe l id="lblUserID" Text="User
ID:" Font-Bold="true" runat="server"> </asp:label></td>
<td><asp:textbo x id="txtUserID"
runat="server " MaxLength="20"> </asp:textbox></td>
<td><ASP:REQUIR EDFIELDVALIDATO R
id="vUserName " runat="server"
ControlToVali date="txtUserID " ErrorMessage="U serID is
required"

Display="Static "></ASP:REQUIREDFIE LDVALIDATOR></td
</tr>
<tr>
<td><asp:labe l id="lblPassword "
Text="Passwor d:" Font-Bold="true"
runat="server "></asp:label></td>
<td><asp:textbo x id="txtPassword "
runat="server " TextMode="Passw ord"
MaxLength="20 "></asp:textbox></td>
<td><ASP:REQUIR EDFIELDVALIDATO R
id="vUserPass " runat="server"
ControlToVali date="txtPasswo rd" ErrorMessage="P assword
isrequired"

Display="Static "></ASP:REQUIREDFIE LDVALIDATOR></td
</tr>
<tr>
<td>Persisten t Cookie:</td>
<td><ASP:CHECKB OX id="chkPersistC ookie"
runat="server " autopostback="f alse"></ASP:CHECKBOX></td>
<td></td>
</tr>
</table>

'usercontro l vb code

Public MustInherit Class UserLogin
Inherits System.Web.UI.U serControl

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnos tics.DebuggerSt epThrough()> PrivateSub
InitializeCom ponent()

End Sub
Protected WithEvents vUserName As
System.Web.UI .WebControls.Re quiredFieldVali dator
Protected WithEvents vUserPass As
System.Web.UI .WebControls.Re quiredFieldVali dator
Protected WithEvents chkPersistCooki e As
System.Web.UI .WebControls.Ch eckBox
Protected WithEvents lblMsg As
System.Web.UI .WebControls.La bel
Protected WithEvents lblUserID As
System.Web.UI .WebControls.La bel
Protected WithEvents txtUserID As
System.Web.UI .WebControls.Te xtBox
Protected WithEvents lblPassword As
System.Web.UI .WebControls.La bel
Protected WithEvents txtPassword As
System.Web.UI .WebControls.Te xtBox

'NOTE: The following placeholder declaration is
required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceho lderDeclaration As

System.Objec t

Private Sub Page_Init(ByVal sender As

System.Object,ByVal e As System.EventArg s) Handles MyBase.Init
'CODEGEN: This method call is required by the WebForm Designer
'Do not modify it using the code editor.
InitializeCompo nent()
End Sub

#End Region

Public Property UserID() As String
Get
UserID = txtUserID.Text
End Get
Set(ByVal Value As String)
txtUserID.Text = Value
End Set

End Property

Public Property Password() As String
Get
Password = txtPassword.Tex t
End Get
Set(ByVal Value As String)
txtPassword.Tex t = Value
End Set

End Property

Public Property PersistantCooki e() As Boolean
Get
PersistantCooki e = chkPersistCooki e.Checked
End Get
Set(ByVal Value As Boolean)
chkPersistCooki e.Checked = Value
End Set

End Property

End Class

'aspx html that incorporates my usercontrol
<%@ Register TagPrefix="YTCI " TagName="LoginC ontrol"
Src=".\UserCo ntrols\UserLogi n.ascx" %>
<%@ Page Language="vb" AutoEventWireup ="false"
Codebehind="L ogon.aspx.vb" Inherits="NCVAC .ValidateLogin"%

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitiona l//EN">
<HTML>
<HEAD>
<title>Login</title>
<meta content="Micros oft Visual
Studio .NET 7.1" name="GENERATOR ">
<meta content="Visual Basic .NET 7.1"
name="CODE_LA NGUAGE">
<meta content="JavaSc ript"
name="vs_defa ultClientScript ">
<meta
content="http ://schemas.microso ft.com/intellisense/ie5"
name="vs_targ etSchema">
</HEAD>
<body MS_POSITIONING= "GridLayout ">
<form id="Login" runat="server">
<p></p>
<YTCI:LoginCont rol runat="server"
id="ValidateL ogin"></YTCI:LoginContr ol><BR>
<div align="center">
<asp:button id="btnOK"
runat="server "
Text="OK"></asp:button>
<asp:button id="btnClear"
runat="server " Text="Clear"></asp:button><br>
</div>
</form>
</body>

<script language="JavaS cript">
<!--

window.open = SymRealWinOpen;

//-->
</script>

</HTML>
'aspx vb code that incorporates the usercontrol
Public Class ValidateLogin
Inherits System.Web.UI.P age

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnos tics.DebuggerSt epThrough()> Private

Sub
InitializeCom ponent()

End Sub
Protected WithEvents btnOK As
System.Web.UI .WebControls.Bu tton
Protected WithEvents btnClear As
System.Web.UI .WebControls.Bu tton

'NOTE: The following placeholder declaration is
required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceho lderDeclaration As

System.Objec t

Private Sub Page_Init(ByVal sender As System.Object,ByVal e As System.EventArg s) Handles MyBase.Init
'CODEGEN: This method call is required by the WebForm Designer
'Do not modify it using the code editor.
InitializeCompo nent()
End Sub

#End Region

Private strUserName As String
Private exException As Exception()
Protected ValidateLogin As
YTCIWebUserCo ntrols.UserLogi n

Private Sub btnClear_Click( ByVal sender As
System.Object , ByVal e As System.EventArg s) Handles
btnClear.Clic k
ValidateLogin.U serID = String.Empty
ValidateLogin.P assword = String.Empty
End Sub

Private Sub btnOK_Click(ByV al sender As

System.Objec t,
ByVal e As System.EventArg s) Handles btnOK.Click

Dim strDataSource As String
strDataSource = CType(Applicati on
("strDataSour ce"), String)

Dim clsBLL As New NCVACBLL.Schedu ling
(strDataSourc e)
Dim drOLEDBNCVAC As OleDbDataReader

Try
Cursor.Current =
System.Window s.Forms.Cursors .WaitCursor
drOLEDBNCVAC = clsBLL.GetUserI nfo
(ValidateLogi n.UserID, ValidateLogin.P assword)
..
..
..
I'm really pulling my hair out over this one! I've triedso many different things to get this to work.... Can
someone please HELP!!

Thanks so much,

Bill.....
.

.

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1952
by: Raed Sawalha | last post by:
Hi, I have a strange problem with a usercontrol on a page. The usercontrol dispalyes three categories (From a database) when the user clicks a category they see all the products in a shop for that category, the results are paged 10 to a page and the user can page them. As this "Category" usercontrol hardly ever changes I wanted to setup...
2
4612
by: Sascha | last post by:
Hi there, I searched carefully through the web before finally deciding to post this message, because I could not find a solution for my problem. Hopefully someone will have a hint or explanation for me! I apologize for the length of this posting, but I wanted to make sure that I get an answer other than "Hey man, just use LoadControl!",...
0
1524
by: N. Demos | last post by:
Hello, I have a custom usercontrol, of which I have two instances of in my aspx page. Both the usercontrol and page have codebehind. In the page codebehind, I want a member variable for each usercontrol. My problem is that I keep getting a compiler error on the usercontrol variables in my page codebehind (BC30002: Type 'CityGeoPosSelectClass'...
41
4275
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based on some initialization information obtained elsewhere. Basically, I'm going to create my own dynamic toolbar where the toolbarbuttons can change. ...
12
2189
by: Joe | last post by:
Hello All: Do I have to use the LoadControl method of the Page to load a UserControl? I have a class which contains three methods (one public and two private). The class acts as a control server. It "serves" back the required control (either WebControl or UserControl) based on the contents of an xml file. The code in the webform places...
9
14431
by: Marcelo Cabrera | last post by:
Hi, I have a user control that in turn creates a bunch of webcontrols dynamically and handles the events these webcontrols raise. It used to work fine on ASP .Net 1.1 but when compiled on 2.0 it does not. The problem is that the webcontrols get created on the OnLoad event of the usercontrol and the event handlers are assigned at the same...
2
1383
by: sonu | last post by:
Hi all, I have a problem regarding use of a usercontrol in .NET. My usercontrol consists of two listviews which I say as source and destination lisviews which contains the files and folders. I select files from source view and transfer it to the destination view.The problem arises while displaying the dialog for overwriting the file or...
5
3681
by: tshad | last post by:
I get an error when running my Javascript inside my UserControl. It works fine if I put the UserControl Data directly in my Web Page. The stripped down code is: <script language=javascript> function CheckQuestion() { var checkBox = document.getElementById('SecurityStandard'); alert("checkBox.checked = " + checkBox.checked);
2
8927
by: Rene Sørensen | last post by:
In VS 2005 I'm trying to create a usercontrol, but I have some problems with it right now I can't figure out how to fix. The size of my usercontrol is "Size 574; 619" I have anchored all controls added to the form, so I can resize it up and down, and not left and rigth. My usercontrol is a usercontrol project. In my main program I just drag...
3
2012
by: Martin | last post by:
Hi ! I've developed a small UserControl with five textbox and label. However, when I want to display the UserControl in a form, controls appear slowly one after one. I've activated double buffering and removed all code in the OnLoad, constructor and I still have the same problem. Here is the code that I use to display the UserControl un...
0
7760
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7679
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8049
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6392
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5573
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3724
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3723
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2185
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1289
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.