I've had the same problem a couple of times with different ASPX pages after renaming them and I am surprised that I can't find someone else with the same problem on stackoverflow.
When I run my ASP.NET C# project, the debugger gives me a message like this one.
Error 5 The name 'txtTitle' does not exist in the current context
It s...
Hello,
I currently have the following menu:
<Menu Grid.Row="1" Margin="3" Background="Transparent">
<MenuItem Name="mnuFile" Header="File" Background="#28FFAE04" Foreground="#FFFED528">
<MenuItem Name="mnuSettings" Header="Settings" Background="#28FFAE04" Foreground="#FFFED528" />
<MenuItem Name="...
I have a Direction Enum:
Public Enum Direction
Left
Right
Top
Bottom
End Enum
And Sometimes I need to get the inverse, so it seems nice to write:
SomeDirection.Inverse()
But I can't put a method on an enum! However, I can add an Extension Method (VS2008+) to it.
In VB, Extension Methods must be inside Modules. I r...
I'd like to partition my search results (which is in a DataTable) into groups of say 100 so the user navigates through them a chunk at a time.
I thought I could bind an array of DataRows to a DataGridView as the DataSource but it just does not work. This is the code I tried
DataGridView.DataSource = (From r In DataTable.Rows Skip 200 T...
Just a question, as I was unable to register the related upnp.dll provided by the intel open source upnp tools package (as provided here: http://opentools.homeip.net/dev-tools-for-upnp ) from the VB6 references dialog, it said something to the effect of "can't register .dll", but since it is written in (i think) C or C++ I figured there ...
I have tried to write:
Event EventName(Of T)()
But Visual Studio tells me that "Type parameters cannot be specified on this declaration."
Is such a declaration possible or will I have to put T as a regular argument?
...
Mainly I ask this because I don't want to distribute both versions, and if I need to instal a 64bit .NET on an x64 PC and a 32bit .NET on a 32 bit PC then I would need to make this check in my loader application to download the correct version for the correct PC.
However, if I just do a one for all, it would be easier - and i would just...
I'm just wondering if there is something I should know of when doing this or will it work straight out of the bat as long as the .NET framework is installed on the client?
I ask because when I attempted this, VB6's references dialog said "cant register that dll"
Thanks
...
I need to bind a textblock.text property to a single element in an observable collection, or array element, and have the text update using the INotifyPropertyChanged or INotifyCollectionChanged, whichever is best.
Most examples describe ways to bind listboxes or other list views to entire collections, but my application needs to update ...
I am working on designing a SQL Server database connection class in VB.net 2005. The idea behind doing this will be so a developer can can call the class, pass it a stored procedure name along with the parameters, and get return values back (if any).
My question is, how would I design the class so the stored proc parameters are dynamic?...
Am storing a table name in a String
ugad = "INSERT INTO tb(Ugname,Ugdob,Uggender)"
this is the ordinary query which functions well.
But i need to store a Tablename in a string called "dept"
and this string will have diff table name at diff times. How should i run it, Wat query should I Give.
ugad = "INSERT INTO dept(Ugname,Ugdob,Ugg...
I have a method that takes an System.Action, this is what I'm trying to feed it:
Function() Me._existingImports = Me.GetImportedAds()
The thing is that it complains about the = sign since it thinks I'm trying to do a comparison, which I'm not. I want to assign the Me._existingImports the value of Me.GetImportedAds(), but VB.NET compla...
Here is my code.
for example TextBox1.Text= 12,34,45,67,67
Dim process_string As String() = TextBox1.Text.Split(New Char() {","})
Dim process As Integer
For Each process In process_string
Combo1.Items.Add(process)
count = count + 1
Next process
total_process.Text = cou...
I have set up a streaming http connection and it now connects fine, but I need to read the stream and capture data by looking for the opening element and stop reading when I get the closing element . How would I implement this?
Here is what I have so far? I tried using webclient and webrequest but it did not work as well so use tcpclien...
Hello,
I am trying to run simple application (e.g. generated from template by VS.NET 2010) on IIS6.
I changed it to run with .NET 4.0 (its application pool) and checked with regiis (this pool has 4.0). I also changed all possible httpHandlers (svc etc), to run with NET4.0. All possible rights are checked (i think so).
Almost every requ...
I have a custom tool "NafestisGenerator" of which I need to apply to every ".ntf" file. The question is, how do I tell visual studio (suing the Custom tool Generator sample from Microsoft) to use the "NafestisGenerator" custom tool on every ".ntf" file? (vb.net)
...
I need to return an error message to the client, if they have entered invalid data when calling my web service. So if my code is:
If Not IsNumeric(strOrderID) Then
Throw New SoapException("Invalid Order ID", SoapException.ClientFaultCode)
End If
I get a web page saying:
System.Web.Services.Protocols.SoapException: Invalid Or...
This is the control structure
ContentPlaceHolder
--> Wizard
--> Panel
I am using setTimeout to display the panel after x minutes.
How do I get the ClientID of the panel?
The line of javascript needed is something like:
setTimeout(displayExtendSession('<%= ExtendSession.ClientID %>', 600000);
aspx
<asp:Content ID="Conte...
I need to add some common details in more than two tables.
ugad = "INSERT INTO Ugadmissiontable(Ugname,Ugdob,Uggender)
this adds the info to Ugadmissiontable
And i need to add the some of the datas into department details
ugad = "INSERT INTO" & dept
& "(Ugname,Ugdob,Uggender,Ugage,Ugdept,Ugcoursejoined)"
So i ha...
I am using structures in my programming and I sort the structure according to a value in the structure using IComparer.
How did Microsoft implement the Array.Sort() method? Is there any documentation (references) for this? Is it the same for all types of Sort() in Visual Basic?
This is a simple example for what I want.
Dim MyArray(6...