If you want to use the Com object in ASP either you have to say
<object runat=server id="myObj" class="project.classname" scope="Page" >
</object>
change project.classname according to your project name and class name.
use the doAdd function as
myObj.doAdd()...
set the property selected index
Me.cboCustomer.SelectedIndex = ....
You have to loop through the items of the dropdown and compare the values with the value you got from the database;
and then set the above property for the value that matches
Add the properties to the custom control that you want the user to control.
And set the property of the calender control or any other controls within the custom control. Just have a look at the code below:
Imports System.Web.UI.WebControls
Imports System.Web.UI
Imports System.Web
Public Class...
You can create a webcustom control.
See this link for more info
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbwlkwalkthroughcreatingcustomwebcontrols.asp
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.