I know this sounds backwards, but I have to convert this from C# to Classic ASP. I don't know any VBScript so I need help.
In my C# code, it is reading appkeys in the config file, parsing them, and using loops to perform a process. I don't know how to do dictionaries and I/O stuff in VBScript. Can someone please help with this?
These a...
We have two update panels on our webpage. Now first update panel is having button cancel. While second update panel is having a file upload control.
Now if the user uploads a file that is going to upload in about 2 mins, and in between, say after 30 seconds the user clicks the cancel button, the upload taking place in update panel 2 sho...
I need a lean & mean TextBox solution. A RichTextBox proves too slow, so I want to go the way of owner drawing, or custom control building.
My need is for a textbox that can handle large text content and offers simple highlighting by drawing colored backgrounds around words or single characters. Important is, that the text string itself...
I have a problem with the selected item in WPF-TabControl that could be reproduced with the following simplified code:
If a new TabItem is created and selected through the Click-event of the button in the second window, the tab is created, added and selected. When the second window will be closed, the selected item of the tab-control is...
I am having a lot of trouble trying to upgrade my existing library from Cassandra 0.6 to 0.7 beta1. I had originally thought it was a order of operations issue, so I decided to break it down to the basics.
Here is the basic setup that I will be suing
TTransport framedTransport = new TFramedTransport(new TSocket("localhost", 9160));
...
Hi,
I am trying to build a dynamic Expression Tree like below :
Func<IEnumerable<int>, int, bool> dividesectionmethod = (x, y) =>
{
int nos1 = 0;
int nos2 = 0;
foreach (int i in x)
{
if (i <= y)
nos1++;
...
Hi, here's what I need (it's a bit hard to explain):
I have 2 window controls:
MainWindow and FileMover
and 1 util class:
FileMonitor
MainWindow created a new object of FileMonitor for testing purposes on it's Loaded event, which creates a FileSystemWatcher and a Timer object.
The FileSystemWatcher watches a given folder for Created an...
I am working on an assembly that handles various color transformations. When I load the assembly into a new project to test, if there happens to be an bug in the assembly, Visual Studio opens the offending code from the DLL. I can step through all of the code in the assembly.
I definitely don't want the code to be so easily visible/av...
I want invoke my .NET assembly from snmp agent and return an XML document to the agent in order to transmit that XML file to the server (manager).
Can I use SNMP to transmit big files to the manager?
...
I'm having a bit of a problem deciding how to store some data. To see it from a simple perspective, it will be a simple table of data but there will be many tables. There will be about 7 columns in each table, but again there will be a lot of tables (and they will be created at runtime, whenever the customer wants a clean grid)
The data...
In a future project, I need to access Axis IP-cameras from c# and show the current video-stream of multiple cams in a (WPF)-app. The app must be capable of making snapshots of the current stream.
I have looked around and found multiple APIs to access the cams. Axis provides an html-API and an API to use the the ActiveX display-control. ...
There are plenty of threads on how to create a Method using Reflection.Emit but I cannot find any on Cloning or copying an Existing Method.
I would like to copy an existing class and add a few more additional fields to it. I am having trouble copying the methods. I have read that you cannot simply take the IL Code from the body because...
MSDN, as well as many other sources, claim that worker threads in the thread pool are always background.
"Thread pool threads are background threads." (MSDN)
"Pooled threads are always background threads." (Threading in C#, Joseph Albahari)
I can easily make the worker thread non-background by setting
Thread.CurrentThread.I...
Hi,
I try to get the string after the sign # in my url of my WebBrowser with:
MessageBox.Show(UI_WebBrowser.Source.Fragment);
But it return me a null string!
I also tried to navigate to a string like "http://www.google.com/#123" and nothing...
Need help please! :)
PS: my code:
private void checkIfUpdate()
{
UI_WebB...
I have WPF window with a FlowDocument with several hyperlinks in it:
<FlowDocumentScrollViewer>
<FlowDocument TextAlignment="Left" >
<Paragraph>Some text here
<Hyperlink Click="Hyperlink_Click">open form</Hyperlink>
</Paragraph>
</FlowDocument>
</FlowDocumentScrollViewer>
In the C# code I handle Click e...
Does BeginRequest and EndRequest for an ASP.NET HttpApplication always occur on the exact same thread for a given HTTP request from a client?
The reason I ask is that I am seeing some very strange behavior where a ThreadStatic variable is not null inside of an Init method for an IHttpModule.
I set this ThreadStatic variable to a value...
I am working on a project that uses conflict.dll version 6.2, but the project also uses helper.dll that uses conflict.dll version 5.8.
I could install 6.2 and 5.8 into the GAC, but I'ld like to have this project xcopy deployable. I believe .net will search for the assemblies in the application bin directory like so:
\bin\conflict.dll (6...
i think this has been asked before but i just cannot figure this one out.
I have added a global.asax file to my project (using asp.net with c# from vs2010) and works great on my local machine. then when i publish to our site (i publish to ftp site and then copy from the ftp folder into the site folder overwriting old files) and it doesn'...
I have code that was previously adding ExtendedProperties to components like
component.ExtendedProperties( new { prop = someObject });
This method is no longer available and the constructor for Property is marked internal.
Is there a new way of doing this for v2.5?
Specifically, I have a custom ComponentActivator that needs some in...
Windows 7, Visual Studio 2010, .NET 4 Client Profile
I developed an application (100% local, no access to servers) using SQL CE 3.5, it works fine on my computer. However, when i deployed it on another computer, it shows this error:
Access to the database file is not allowed. [ File name = data\BDApepucCE.sdf ]
I deployed on a window...