473,396 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

custom control timing

Dan
i have a custom control. In the page load of the control
I call a procedure
called binddata which gets a dataset and binds to a gird.
Then in my webform
I create and instance of the control and set the ListId
and ProjectName
properties and then add the control to the page. On the
load i'm getting an
error that an instance of an object is not set....this
error is occuring
because my dataset is returning null in the binddata
method because the
values that i'm passing in _listid and _projectname are
null even though I
set these properties in the page load of the web form.
Any Ideas on what
I"m doing wrong

'--------------Control Code--------------------
Private _ListID As Integer
Private _ProjectName As String

Public WriteOnly Property SetListID()
Set(ByVal Value)
_ListID = Value
End Set
End Property

Public WriteOnly Property SetProjectName()
Set(ByVal Value)
_ProjectName = Value
End Set
End Property

Private Sub Page_Load(ByVal sender As System.Object,
ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not IsPostBack Then
BindData()
End If
End Sub

private Sub BindData()
Dim UserRes As New DataSet

'Using GAP Web Service to get values from
ATG_Web_Approval database.
UserRes = GAP.SelectCustomApprovalProcessData
(_ListID, _ProjectName)
grdCustom.DataSource = UserRes
grdCustom.DataBind()
End Sub

'---------------webpage code-----------------------------
Private Sub Page_Load(ByVal sender As System.Object,
ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Dim ctlCustAdmin As New CustomAdmin
ctlCustAdmin.SetListId = 1
ctlCustAdmin.SetProjectname = "test"
Page.Controls.Add(ctlCustAdmin)
End Sub

Jul 21 '05 #1
0 1146

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

Similar topics

4
by: William Bub | last post by:
Is there an accurate way to create a "stopwatch" good to 1/10 of a second? I'm not sure if I should use the timer control, or some way to access the computer timer. I found the following site...
1
by: Michel Boivin, ing. | last post by:
I experience a curious behavior with hidden controls in a Report. The value of each primary control (CtrlA, CtrlB, CtrlC, CtrlD) is the result of a function call. These controls (intended to be...
19
by: laurenq uantrell | last post by:
I'm using Access 2K. I'm hoping someone can tell me which method performs faster- (currently I'm using a mix of both methods) a.) creating custom properties and then calling functions to set and...
16
by: Bret Pehrson | last post by:
I've converted a non-trivial C++ library to managed, and get the following unhelpful linker error: Assignment.obj : error LNK2022: metadata operation failed (80131195) : Custom attributes are...
21
by: One Handed Man \( OHM - Terry Burns \) | last post by:
When using a custom control. In order to check and see if values have changed one has to implement the IPostBackDataCollection interface. The values returned for the control seem to be simply a...
2
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a...
0
by: Dan | last post by:
i have a custom control. In the page load of the control I call a procedure called binddata which gets a dataset and binds to a gird. Then in my webform I create and instance of the control and...
3
by: codeslinger73 | last post by:
I ran into sort of a timing issue. I want to hold some default properties for form controls (font, borderstyle, etc) in the registry or a config file and then update these things after init but...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...

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.