Hello,
When connecting to a Sybase ASE database via ODBC using the code below, I'll occasionally get a '[IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed' error.
Can this be caused by my code? I read here that I should be using the 'With' statement instead, but I don't understand how that would affect this.
T...
I have a form with multiple tabs. Each tab has its own <form>, defined like this:
<% Using Html.BeginForm("Save", "FirstSection")%>
I've got a master Save button that submits all the forms on the page like this:
$("form").each(function() { $(this).submit(); });
The problem is that I don't know what each Save action should return:
...
Hi,
These two TimeSpan are stored in the Database with 24hr format. No date, only TimeSpan.
Dim r As TimeSpan
Dim tsStart As TimeSpan
Dim tsEnd As TimeSpan
'tsStard is 12:27:30 (pm) this happened first
'tsEnd is 00:10:25 (am) then this happened later
'You can't store 24:10:25 in the column type Time(7)
r = tsEnd.Subtract(tsStart)
...
Let's say I have an edit view that is strongly-typed to a table called "MyData". The view has multiple tabs, each with several different fields from the table. For performance, the data is only loaded when the tab is viewed, so if you only edit a field on tab 1 and submit the form, the data for tab 2 will not be loaded.
The problem I'm ...
I am getting this error and I have collection of anonymous Datarows and each item contains two datarows. How to cast this?
Unable to cast object of type 'WhereSelectEnumerableIterator`2[VB$AnonymousType_0`2[System.Data.DataRow,System.Data.DataRow],VB$AnonymousType_0`2[System.Data.DataRow,System.Data.DataRow]]' to type 'System.Data.Enume...
Hi
I need to add a download counter to know how many times my BLOB data is read and displayed from the database (to determine traffic). How and where can I add this counter? Many thanks!
I have a dynamically generated list of links such as
<a href="page.aspx?DocID=IDhere">Document filename</a> which direct to a display page.
My displ...
Sup Guys,
On my Bussiness Layer, I have something like
Dim object as New ExampleObject
Where ExampleObject inherits BaseExampleObject.
I want to know how can I access ExampleObject Properties by reflection on my BaseExampleObject.
Something like:
MyBase.GetType.GetProperty("PropertyName").GetValue(mybase.gettype, Nothing)
Of cou...
Hi guys,
I have an application (.net 3.5 app) that depends on odp.net (11g). I had installed the odp.net on the production machine, i deployed my binaries. The program works fine, however it displays an error like this:
This application has failed to start because MSVCR71.dll was not found. Re-installing the application may fix the pro...
Public Function Foo() as String()
Dim bar As String = {"bar1","bar2","bar3"}
Return bar
End Function
My situation is similar to the code sample above where I'm returning a string array from a function.
What I would like to do is just return the string array without having to declare a variable first and then return the variable.
Som...
I'm trying to get a query string from a shared function in a code-behind model using VB.NET. You have to use HttpContext.Current.Request.QueryString("Query") in order to get it from a shared function, however doing HttpContext.Current.Request.QueryString.Count gives back 0, which obviously isn't right in my case as there's many that exi...
I'm using a LinqDataSource to populate a basic GridView in ASP.NET. The user has the ability to filter the results, so I use a few WhereParameters and the Where within the LinqDataSource.
My client has requested an option to export the filtered results to a file. Easy enough to pipe the data into a file, but I would prefer not to rewrit...
Hi
I am getting error : ActiveX component can't create object. Actually I have VB6 Dlls where business logic is reside and I am calling that dll function in my vb.net application , all dlls are dependent on other dlls.I am getting the error from one of the dlls
waiting for you valuable thoughts
Thanks
...
I'm using a technique similar to Rick Strahls example, but have notcied using google's speed tracer that
Resource Caching : @10.88s - The following resources specify a "Vary" header that disables caching in most versions of Internet Explorer. Fix or remove the "Vary" header for the following resources: ...
The question is Which ve...
I can style GroupRows by creating a DataGrid.RowGroupHeaderStyles style, but this applies to all GroupRows.
eg If I am grouping by 2 columns. I would like a different background color for column 1 GroupRows and column 2 GroupRows.
Is this possible?
Update
Here's how I've accomplished this, but its a bit of a hack. Hopefully someone w...
I'm trying to get started with a simple audio application under .NET 3.5 (preferably in VB.NET, but will happily use C#). What I'd like to do is:
Continuously record audio from (the default) Windows audio input device in 8-bits-per-sample PCM format
For every N bytes captured, do some analysis on the raw audio (some RMS and/or SPL calc...
i am using OleDbCommand.ExecuteNonQuery() to insert data into the database:
ObjCommand = New OleDbCommand
ObjCommand.CommandType = CommandType.StoredProcedure
ObjCommand.CommandText = StrSQL
ObjCommand.Parameters.Add("field1", OleDbType.VarChar).Value = <something1>
ObjCommand.Parameters.Add("field", OleDbType.VarChar).Value = <somethi...
I am writing an audit file that is writing the username, time, and the old/changed values of several variables in the application for each user when they use my application. It is using a FileStream and StreamWriter to access the audit file. All audits for each user will be written to the same file.
The issue is that when two users ...
Hi all
I have an object which contains a number of string properties and an enum property called CRAction.
I have another object which represents a collection of the above object.
When I bind the collection object to something like a gridview, all of the string properties bind fine, but the enum doesn't appear.
I have added another s...
Hi, I'm trying to use Subsonic 3.0.0.3 with an existing web site created in vb.net. I've added a reference to SubSonic.Core.dll and added the ActiveRecord tt/ttinclude files. I also added a contextmenu entry to run the t4 templates using instructions I found here.
Whenever I try to run any of the tt files, I receive the following except...
I've been toying with the idea of building a web-based Roguelike game using Silverlight (or maybe just a desktop game using WPF).
If you don't know what a Roguelike is, it's a type of graphical RPG where the graphics are rendered using text. Because the graphics engine is relatively simple, you get to spend your time building features i...