Custom Control Creation

Noddy

New Member
Hello !!<BR><BR>Ok, my problem is the following : i would like to develop my code with the code-behind files in asp.net.<BR>I have created a custom component (like the custom component VB Composition1.aspx in the asp.net quickstart tutorial, authoring custom control section)<BR>I have compiled my new component, with the vbc command, and a dll was created in the in directory of my application directory.<BR>But if I will work with the code-behind file, I must cut the script code in the aspx page, and paste it in the aspx.vb file. And the problem is here : when I paste the code, the framework don't recognize the 'myControl' declaration. If I import the namespace of my component, and declare a control like my custom control type, the parser return this error :<BR><BR>Parser Error Message: The base class includes the field 'MyControl', but its type (TestCC.MyNamespace.MyControlVB) is not compatible with the type of control (MyNamespace.MyControlVB).<BR><BR>I have tested several imports, but the result is the same... :O(<BR><BR>Please, if anyone has a solution, I'm lost... <BR><BR><BR>In advance thank you<BR><BR><BR>Thierry<BR>HEVS Sierre - CH<BR><BR><BR>ps : i can send my code for tests, if it's necessary<BR>ps2 : sorry for my english, it's not my mother tongue...
 
Back
Top