|
Friendz,
1)How to write SQL connectionString on web.config file using c#?
1)And how i call that connectionString to my webApplication?
CheeN
|
|
|
|
|
Both your items are numbered one....
You should ask ASP.NEt questions in the ASP,NET forum. Also, there are plenty of articles on this site, I'm sure that there are some that cover this, connection strings are the canonical example for using config files.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Christian Graus wrote: Both your items are numbered one....
Oops
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
|
i need to download files from share's folder other PCs within the same network.
for example (manually):
- i go to Start->Run -> and type IP "\\xxx.xxx.xxx.xxx"
- browse C: -> programfiles -> a target folder-> a target file
- copy them to my PC
but i have to download files for 40-50 machines,
So i need to do it automatically read the list of IP address and download files form specific path?
How to do this?
Does WebClient class could do this?
Thank
^^
|
|
|
|
|
I'd imagine that you could do this just by specifying paths and using File.Copy, I would expect it to work so long as your path would resolve in Explorer on the machine running the code.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
You will also need permissions on each of the folders of course.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I have permission to access folders.
but..
How to set target folder's permission?
for manually, it always show Connect to.. dialog box for entering username and password. How to do this in c#?
thank
^^
|
|
|
|
|
how to remove access password using c# code
|
|
|
|
|
You ask the same questions over and over, and more often than not, use C# as your header. It's clear you have no idea what you're doing. Tell your boss or your client that they made a mistake hiring you, enrol in a Computer Science course and/or buy some C# books and establish some basic, fundamental programming skills before flooding this forum with your basic questions, over and over again.
The only way I can see to remove the password from an Access file is to use brute force to crack it. You plainly can't jsut remove the password, it's there for a reason.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Christian Graus wrote: ask the same questions over and over
Oh gawd, another one of those
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Are you stupid???
how many times do you have to get shouted at before you realize that this kind of crappy question is not the way things are done here?
And people have told you that YOU CANT REMOVE THE F****ING PASSWORD BECAUSE THAT WOULD DEFY THE POINT OF HAVING ONE IN THE FIRST PLACE!!!!
just because you dont like the answers your getting doesnt mean the answer will MAGICALLY change if you ask the question over and over again!
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
What do you have in mind?
what you say in not enough to understand what you want.
Write down all you want to do ,title your question, and anyone can direct you to an answer!
Maybe showing your code can help!!! 
|
|
|
|
|
Hello everyone,
What is the function of "D10" when use it as input parameter to Int.ToString? For example, someIntValue.ToString ("D10")? I can not find any document about this format input parameter from MSDN. Any documents?
thanks in advance,
George
|
|
|
|
|
|
Great Phillip!
I found the answer and the function is padding.
regards,
George
|
|
|
|
|
or:
int value = -16325;
Console.WriteLine("D10: {0:D10}", value);
|
|
|
|
|
Hi All,
i am having this code in c#:
if (type.IsSubclassOf(typeof(SqlDataAdapter)))
{
//doing sth here
}
what i am trying to do with this code is: when the "type" object returns "TableAdapter", the if statement will returns "true" and does certain process. however, when the "type" object does return "spClientSearch_Husband_WifeTableAdapter", but the whole if statement returns false hence it doesn't do the sth that i need the code to do.
can someone tell me is there anything wrong with it?
most appreciated.
Andie
|
|
|
|
|
I'm guessing you have an object and are trying to determine whether or not it's a DataAdapter by first getting its type.
But you don't provide all the code. The simpler solution is to use the is or as operator:
public void Fis ( object o )
{
if ( o is SqlDataAdapter ) ...
}
public void Fas ( object o )
{
SqlDataAdapter s = o as SqlDataAdapter ;
if ( s != null ) ...
}
|
|
|
|
|
Thanks a lot PIEBALDconsult, i had worked out another approach so this problem has been fixed.
|
|
|
|
|
I doubt it's better than is or as .
Care to show your solution?
|
|
|
|
|
First check to see whether "spClientSearch_Husband_WifeTableAdapter" is really a subclass of "SqlDataAdapter" or not.
Judge a man by his questions rather than his answers. - Voltaire
Blogial
|
|
|
|
|
Thanks a lot Blogial, i had worked out another approach so this problem has been fixed.
|
|
|
|
|
Is there a way to use a font with C# without installing it. I'm using C# to write headers into images so i can use different fonts for headers on my website but my web host does not have the font installed that i want. Given that i can't install it is there a way to use it without installing it?
|
|
|
|
|
Look at System.Drawing.Text.PrivateFontCollection .
|
|
|
|