Setup:
Application: - the app references Assembly1 and 2
- App.Config - has connection strings for everything in it
- form1
- form2
Assembly1:
- class1
- class2
- dataset1
- dataset2
Assembly2:
- class1
- class2
- dataset1
I need to tell assembly 1 and 2 to use the app.config connection...
Here is my app setup I have an application "app" which has the app.config. I have added several assemblies to the project that app has a reference to. On a form in "app" I can use system.configuration.configurationmanager.... But I cannot access the same app.config from my other assemblies...
Hey guys I have been a web dev for a long time and I use the web.config to store conection strings that I use throughout the application. Now I am building a desktop app and I am trying to use app.config in the same way but when I create a new dataset it does not show any of my connection...
I have an app I am wanting to build it in as OO as possible. I have a user who can have multiple addresses. What I have done is create an address class and an addresses class. Addresses is a collection of address and it has properties like item, count, delete, ect... class address has the...
With mysql if I have a software and I distribute it to clients do I have to buy a license per client? If its not embeded and the client gets mysql themselves can my app use it without lisence? I will have to have a license for all servers I am just wondering about on the clients local side...
I have an app that uses a sql database. There is a password on the sql database but all someone has to do is stop sql service, detach, then reatach to any server they own and tada they have full access to all the information to edit ect. Is there a way to stop this?...
Here is a query below I want to get all this information back plus some but the problem is the pictures. There can be more than 1 picture in the database. I just want to return the latest picture using pic.DateOfPicture so I dont get more than one row. I cannot use distinct because of the...
I have a DataSet xsd that has a few tableadapters I want to be able to use with crystal. The tableadapters take 3 parameters how do I tell crystal to use those queries and 1 pass prameters to crystal then have crystal use the values to query the tableadapters?
Thanks
I have a website that shows time information that needs to be based off the users timezone not the servers. I can convert server time to utc. I need a function that will allow me to send in servers time and pacific or eastern and then return the conversion. I am not able to find something...
I have a calendar control on my page and when the user clicks on a date I want to capture that date to use to populate grids ect on the page simple no?.... Problem is the Date that was clicked on is not the value until the page finishes loading.... Here is the code of a very simple example...
I have several dynamically created grids that I want to put into another grid so they have a grouping. Below is a sample main grid that I need to add another grid into the itemtemplate.
<asp:GridView ID="gvMain" runat="server" Width="90%">
<Columns>
<asp:TemplateField HeaderText="A">...
I have a site and I need to pass in the clients date and time I am using the Now() function but when I display it on the screen it is giving me the servers time. Is there a way I can get the users local time????
Thanks!
Col1 Col2 Col3 Col4
NULL 2 1 4
9 10 9 8
7 7 22 NULL
If I have a table like the one above how would I return the lowest value
of any row that is not null as some alias? Above statement should return
Alias
1
8
7
Thanks for any help
I have a query that creates a temp table like the query below.
Select * INTO tmpTable FROM Table1 WHERE...
Then I do a join on the tmpTable
Select * from Table2 inner join tmpTable on .....
Then I drop the tmpTable
drop table tmpTable
This works fine but I want to know what happens if 1...
I cannot find any information on this but I think it would be pretty common... I have a page with multiple updatepanels and I want to have an update progress for each of them. When I put more than 1 update progress on the page regardless of the panel I am reloading EVERY update progress runns...
I am not that good with sql and i need to be able to get this query to return the same information but i also need the HoursWorked that is in the subselect to return its value. I would also LOVE any advise on making this run faster
THANK ALOT!
SELECT TOP (5) SUM(Commissions.UnitsSold *...
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.