The code-behind still doesn't know the TYPE of X though, so when you type
"X." you get a generic list of object methods/etc.. not the one's that are marked as public for the type of control.
So thats a start, but I need to be able to call functions on the user control, so it needs to know the...
I want to be able to dynamically add it to a page, then cast an object as that type of control so I can call a method of that control.
I want to be able to do this:
Dim X as control = LoadControl("../controlX.ascx")
Controls.add(x)
Dim i as integer = CType(X, ControlX).DoSomething(1,2)
hope...
In 1.1, I was able to say something like
dim x as control = loadcontrol("../control.ascx")
Controls.add(x)
dim y as MyCustomControlType = CType(x, MyCustomControlType)
'or
CType(x, MyCustomControlType).SomeParameter = 1234
Since everything is partial classes in 2.0, how can I accomplish...
I have a function which takes 2 objects, they are both of the same class but one is from a webservice and one from the local application. Using reflection I have a method that fills the local object with the parameters in the one returned from the webservice.
In 2003 this works just fine, In...
can someone tell me how to change my connection string (without using impersonation) to allow asp.net application (ADOMD.NET) to connect to an instance os SQL 2000 AS which resides on another machine on the network?
It seems that AS needs to use Windows Authentication, which is a big letdown...
I know how the visual totals works, but is there a way to have it only return you the aggregate column and not the child columns with it?
If not, is there an easy way to accomplish this?
Example: (taken from SQL Server Books Online)
select
{[Measures].[Unit Sales]} on columns...
The problem is that if (or when) the cursor moves over the iframe, it is then over a different document than the one where the event occured. Since the events dont populate down the document hierarchy it doesn't think there is a mousemove on the page.
I solved this problem by playing a...
I have a table with a single row and 3 cells, first and last cell contain iframes, the middle cell is 5px wide, and when clicked allows the user to drag left/right and change the width of each frame.
My problem is that when the user moves the cursor too quickly, it moves off of the element...
not the cleanest code in the world but it gets my point across (might be IE only for now)
<html>
<head>
<script language="javascript">
function doSomething(){
var i;
for(i=0;i<800000;i++){
}
}
function doProcess(){
var status = document.getElementById('statusArea');
status.innerHTML...
Positive.
If i put alerts, or something to break the routine, it works fine.
If i put something like "loop from 0 to 10000000" the button stays "pressed" untill all the loops have finished and then the last message is the only one that shows up.
I guess I'm just looking for a working example...
setTimeout(...) doesn't seem to work for me either. even if I set the timeout to some rediculously large number it makes the page almost "hang" for a few seconds then just shows the final message.
putting the status calls in the "doSomething()" routines doesn't seem to make it work either...
I am trying to update a status message before/after function calls. My code looks like the following (simplified)
var status = document.getElementById('statusMessage');
function updateStatus(state){
status.innerText = state;
}
function doThings(){
updateStatus('doing something1')...
I am trying to create arrays of structs nested in other structs in my class, as follows:
<Serializable()> _
Public Structure clsEquityTrackerMetric
Public Name As String
Public Measure As String
Public MeasureID As String
Public MeasureType As String
Public ThresholdHigh As Integer...
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.