|
Im trying to create a website where users can run different databases on. I debuged the app using a static sql connection, but now im stuck. How would i make a dynamic sql connection where the user can choose from wich database to work from, before the app is executed ?
|
|
|
|
|
hi,all
I want a self-defined type pointer to be returned from my COM object to C#. and then use the pointer to initialize another COM.how should I do?
regards
Vincent
-- modified at 2:41 Wednesday 29th March, 2006
|
|
|
|
|
When i am adding pivot table component in Visual Studio 2005, it is getting added but seen as passive, not active.I right clicked the toolbox in VS 2005 and clicked Choose item.
I selected COM components, and under that i checked against Microsoft Office Pivot Table 10.0 and 11.0.
It is listing in the toolbox but not active.So i cannot use it in the web page.
Can anyone suggest how to make the control active in Toolbox.
|
|
|
|
|
arobind wrote: It is listing in the toolbox but not active.So i cannot use it in the web page.
Can anyone suggest how to make the control active in Toolbox.
Of course it wont work on a web page, it's a WinForm control, not a WebControl...
|
|
|
|
|
|
Hi,
I have to pass a string to a TCP\IP port.Which class i should use.
|
|
|
|
|
Check out TCPListener, NetworkStream and StreamWriter classes.
|
|
|
|
|
Hi,
I have to pass a string to a particular port.Which class i should use.
|
|
|
|
|
See some links if you found usefull.
http://www.codeproject.com/csharp/testingsocketservers.asp
http://www.codeproject.com/csharp/socketsincsharp.asp
http://www.codeproject.com/csharp/binarydatausingsocket.asp
http://www.codeproject.com/csharp/chandrasekar.asp
Before asking question search on articles/comments.
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
i have to get a sring of data from GPS device and parse that to extract longitude and latitude from that string.are there any API's which i can use to do it.
|
|
|
|
|
CodeProject -> Search -> GPS
--------------------------------------------------------
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hi ....everybody
I have two forms the first form is the main form .it has textbox and the second form has a datagridview I want when i click the current cell send it's value to the text box in the main form.
I have already done the code to get the current cell value but I couldn't send the value to the main form I tried to wrote some methods but it didn't work.....I am still a beginner in C#.
SOOOOOOOOO please help me.
with my best regards.
Ahmed
with my best regards.
Ahmed
|
|
|
|
|
Have you tried session variables ?? ex: on the datagrid page ..... Session["myValue"] = CellValue;
and then on the main page ..... TextBox1.Text = Session["myValue"].ToString();
Hope this helps.
|
|
|
|
|
Hi,
I have a new requirement to create a service so that my service would query the table every 5 0r 10 minutes to fetch the data from database and i have to pass the value to a particular port.
Can someone suggest me the methodology.Can i go for windows service or webservice?
Thanks,
|
|
|
|
|
Hello,
This smells like polling. Do you really need to poll for data? What kind of value do you need to pass? Is this some kind of selection criterium or is this the amount of data that you need or what?
If you want to do database intensive tasks, you can try replicating the database and do all the intensive stuff on a dedicated server.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Problem Scenario:
We have a database with information.
We have some ASP.NET web applications that request information from this database.
We do not want to give these applications direct access to the database.
Solution:
So, we planned on creating an API layer with some c# objects (ADO.NET objects) that access the database and instantiates some objects with the information stored in their properties.
The applications will then be able to access the information from these C# objects, instead of directly connecting to the database.
We have to make sure that these objects are alive even if the web application is stopped.
To make a long story short, we basically want to create some stand-alone application (may be a windows service in C#) that exposes an API for the web applications. This stand-alone application has objects that act as caches by maintaining the up-to-date information. Whenever the server is on low load, it updates the database with the latest information it has. All applications should be able to access objects of this stand-alone application to get the information. This stand-alone application should live for ever, ideally until the machine on which it runs is shutdown.
Question:
Which type of project in Visual Studio should I create to develop such c# objects? Will Windows service be a solution? if so, how can I access the objects created by it?
Any help is greatly appreciated.
|
|
|
|
|
siali wrote: Will Windows service be a solution?
Definately
siali wrote: if so, how can I access the objects created by it?
It's called Remoting. MSDN has many samples on this scenario
|
|
|
|
|
do you mean .NET Remoting? Does it use TCP?
|
|
|
|
|
How I can send messages SMS to a cellular telephone from my application?
Exists some Web service?
(In Code Project there is an example, but it does not support my country, Argentina)
Thanks!
|
|
|
|
|
|
I forgot to say, must be free.
|
|
|
|
|
This one[^] is good, but it doesn't cover Argentina either (it works for Brazil, if you ever need it). I always have the same problem with Mexico .
Luis Alonso Ramos
Intelectix
Chihuahua, Mexico Not much here: My CP Blog!
|
|
|
|
|
Plz see this.
I don't know how much it will helpfull to you. But it will nice.
for more information search "microsoft smssender" on google.
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
I want to know how to write in C# the following:
We have an xml file on a server and when the server is down, we should be able to display a message saying "Failed to Load File b/c server is down"
How can I write this in C#.
Please help, as I have checked the internet for sample codes but couldnt find any.
Thanks
|
|
|
|
|
Is it possible with GDI+ to just crop an image withou creating a new one?
I'm working with, say, 5 Mpix photos, so It can be superfluous, to create a cropped 4 Mpix bitmap and then drawing the first one to this.
I believe there is something similar to array reallocation applied to images...
|
|
|
|