database for winform and asp.net
is it possible to use the same database for winform application (with vb.net) and web based with asp.net? thank you in advance ...
is it possible to use the same database for winform application (with vb.net) and web based with asp.net? thank you in advance ...
I'm trying to determine in vb if a URL is absolute or relative. I'm sure there has to be some library that can do this but I'm not sure which. Basically I need to be able to analyze a string such as 'relative/path' and or 'http://www.absolutepath.com/subpage' and determine whether it is absolute or relative. Thanks in advance. -Ben ...
I have a groupox in a VB.NET winform app. The groupbox contains a few Labels, Textboxes and Checkboxes. This was created by simply dragging the controls out of VS toolbox. What I need to do is take the 1 Groupbox and at runtime create multiple Groupboxes to display based on user selection. Instead of dynamically creating the Groupboxes ...
I just read this article about the Entity Framework 4 (actually version 2). Entity Framework seems to offer a huge improvement over its first release. Thus, I have never ever used EF in any project, since I think EF is not mature enough in comparison to NHibernate. NHibernate and its current contributions of FluentNHibernate and Linq f...
I'm a C# programmer constrained to write VB.NET code. While exploring NHibernate further for my current client, I encountered FluentNHibernate, which I find real attractive. But now, I wonder how to "translate" this C# code for component mapping into VB.NET code: Component(x => x.Address, m => { m.Map(x => x.Number); m.Map(x =...
hi, I'm having some real confusion about events in c#... if I have this code in an interface: Event OnBeforeSaving(ByVal Sender As TEntity, ByVal EventArgs As CancelEventArgs) How should it be in c#? When I run it through a converter it gives me this event OnBeforeSavingEventHandler OnBeforeSaving; delegate void OnBeforeSavingEventHa...
We have around 2000 staff. Each has a shared drive to store some of their files. This shared drive points to a central location on our network. Example: John's F: drive -> \\ournetwork\john.doe Jane's F: drive -> \\ournetwork\jane.doe Each user will have a folder within the root "ournetwork" labeled with their username. I do not ha...
I have a crystal report with a bunch of parameterized fields that are being filled by code and displayed through CRViewer. I need to add a few sections in here to execute a query to return a dataset and display this in the same report. I am not sure if the best way to do this with a subreport. I am trying to add a subreport and then s...
I have tried to implement a multithreaded crawler and it seems to be working in fetching a list or urls concurrently without any issues. I tested each step and had the program write all html pulled to a text file. Now the rest of the program intends to take each html stored as a string and parse it for a list of urls from that page and ...
What actually happens when you target the .NET 3.5 framework in Visual Studio? What does that actually do? Does it somehow "flag" any of the output files and associate them with the framework version? ...
Let's say you're building something simple, like a data entry/CRUD form for working on an entity called Customer. Maybe you pass the CustomerID in via Session state. I tend to write a lot of fairly boilerplate plumbing code around handling that Session variable in a particular way. The goals vary slightly but tend to be things like: A...
I have some code that I've inherited, and it's not the greatest in the world, but it works, with one small exception: This page is a directory search, it has controls identified by record ID, however there exists a situation where there can be more than one result with the same record ID, thus making .NET barf. I had originally impleme...
I'm using VS2008, and I have a project that will not start when I press F5 or when I click the little green triangle in the toolbar. The screen flickers once, like the project is going to run, and then it doesn't. The build message claims the build was successful, but the project won't start. In the Configuration Manager, my 'Active s...
Click-once deployments are suppose to maintain user settings, but on this one application we have the user settings are overwritten to the Visual Studio default every time we publish an update. Any ideas of what might be happening? ...
Hi I wonder if somebody can help me flatten an XML file to CSV format. I have worked on this all day today, and although I've found some simple examples, my issue is slighlty different. Please see example below... Example XML: <data> <val_A>1</val_A> <val_A>2</val_A> <val_B>3</val_B> <val_B>4</val_B> <val_C> ...
Is there a Tag for an Item in the CheckedListBox? Or something similar? I would like to be able to store and ID associated with the item that I'm displaying. ...
Hey guys, I'm making a SIMPLE, and when I mean simple, I mean simple. But any way, I have this thing where, the person enters in a word, and it will preview a text file. I have everything setup even the text reader, but something unusual I get in my code is the "if statement". Whenever I type in the word into the textbox, it won't run t...
I have a method name "LogClick" that is called 2 or more times per second. I call it in the tradicional way: Call New MyClass().LogClick() Everty time I call "LogClick", the "MyClass" is instanciated. So I think: "why not transform this method to shared?" Public Shared Sub LogClick() ... End Sub MyClass.LogClick() Will I have perf...
I'm looking for suggestions on keeping a program that is running on a network updated. Installation consists of 15 users, each have the program on their local pc, but they all access same date from sql server. I am looking for a clean method that would allow me to update one folder on the network and for each computer to get updated when...
I have an XElement that I need to create via dynamic xml literals/embedded expressions and I need it to inherit the default namespace. This doesn't appear possible though through everything I've tried. Does anyone know how to make this work? For example Imports <xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> Sub ...