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...
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...
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...
I have a datagrid with 4 templated columns,
3 of the columns have controls in them, and the other one is bound to a field in the datatable I bind the grid to
after I bind the grid, it displays the data just fine, but If I loop through the item collection to try to extract the text from the...
I am looking for an example in VB.NET which outlines XML/XSLT transformations using MSXML, not the XML classes which are built into .NET (speed reasons)
I have been unable to find an example on MSDN, other than for scripting languages.
need a concrete example showing showing how to load the...
The built in XSLTransform class in .NET is a little too slow for my needs. I would like to use MSXML instead of the built-in .NET xml classes, but I am getting a little hung-up with the syntax. If someone could point me to an example or tutorial (need to know how to load XML and XSLT files and...
I am trying to do a for-each but leaving out certain nodes,
something like:
<xsl:for-each select="/Report/*[not(/Totals)]">
In other words, I want all the nodes under Report, except the "Totals" nodes..
Can I do this?
Thanks
I have a XSLT stylesheet which was pretty fast untill I added more too it.
This is the code that slows down the stylesheet:
<!-- if there are totals for the level -->
<xsl:if test="/Report/Totals/@Level='ColumnLevel2'">
<tr>
<td class="xl26" align="left" width="200">Totals:</td>
<!--...
I am trying to convert a value in a datatable, which is a string and has to remain that way, to an integer or double value so I can perform a SUM operation on it.
I have tried the following:
objRow.Item("Total") = objDataReport.Tables("ColL2").Select("Sum(Convert(ColValue,'System.Int32'))")...
I have an ASP page which uses javascript for some validation and other things. I have a routine which fills text boxes with values when they are dragged over, and when text is entered in the box, I want the checkbox that corresponds with that text box to become enabled (they are all disabled by...
I have a 4 sets of checkboxes and text boxes on an aspx page. The checkboxes are disabled by default but when the text box next to it has text entered into it, the checkbox is supposed to enable.
The problem is, the value is changed when I step through it in the debugger but the page is not...
Are there any good resouces available which explain what steps can be taken to optimize XSLT sheets so transformations run faster? I am transforming an XML document using .NET and on large datasets (90,000 + records in one case) the transform takes upwords of 4 minutes.
I am fairly new to...
I have a dll (report.vb) file that i pass a dataset to so it will get filled. In the routine, if the dataset exceedes a certain number of rows or columns, I want it to throw an exception and exit before it goes back to the page.
I have the following code
reports.vb:
if rows > 255 or cols >...
I have been successful in getting Crystal Reports to display in a web application when they do not require parameters.
As soon as I try to set a parameter value in the report I recieve an error: "Unable to connect: incorrect log on parameters. "
Stack Trace:
[LogOnException: Error in...
I am trying to modify a worksheet for a woman in HR that lists all the employees and some information about them. Every time she adds or removes an employee the formula fields are off, circular references occur, etc.. since she just deletes or adds rows from the sheet.
since the starting row...
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.