|
PIEBALDconsult wrote: I think I'll post that on my wall.
Why, it isn't there yet?
|
|
|
|
|
I'm dumbfrazzled myself. I just have two columns in the list view, and want to at least read the CSV and parse it in. I don't need to transform LV's into CSVs, as I write to the CSV. All I ask is for a simple way to read and write CSVs, with an easy to to add the CSV items into a list view. Nothing to complicated, just an int and string in two columns.
If there are missing Cs, my keyboard's C key isn't very responsible, sorry about that.
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. - Calvin (from Calvin and Hobbes)(The Indispensable Calvin and Hobbes, p105-3)
|
|
|
|
|
FileHelpers[^] is an excellent library for working with various file formats. Check out the home page[^]
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Nice find - I'll be checking this one out myself
DaveIf this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier. (Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
|
|
|
|
|
hi
brother
i search from someone who can make small program for me
if u can tell me
f0f020002000@yahoo.com
|
|
|
|
|
|
Hi
I am looking to read my Program's process memory. So I dump with taskmanager in *.dmp and but I don't know how to read in my own Visual C# program.
My task is to search into memory of program to find the strings
So i am looking open dump file similiar to "WinHex" program and then search into strings.
Regards
Simran
|
|
|
|
|
Pick one forum and stick with it. Posting to multiple forums will just get you ignored
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
hi
i search from programmer
thank you
|
|
|
|
|
I have a Windows Service written in c# that run on LocalSystem Account, and i need to check if in a network shared folder of a Server in my network exist a file...
With a File.Exist() method i can't do it because i haven't permission with LocalSystem account .
Is there a way to access to a network share with c# Service with LocalSystem Account ?
Is there some windows API that allow to do that ?
Thanks.
|
|
|
|
|
You service cannot run under the Local System account if you want to use network resources that require authentication, such as Shares. You service must run under an account setup for access to the share.
|
|
|
|
|
And what about impersonation? Do you think that would fail with a service?
|
|
|
|
|
Honestly, what's the difference? Either way, you're still using an account that has access to the network resource. I fail to see the point of going through the hassle of impersonation when you can just run the service as the same user.
|
|
|
|
|
when i m accessing database from my Default.aspx page exception raises i:e
Cannot open database "MyDatabase" requested by the login. The login failed. Login failed for user '[Computer Name/ASPNET]'.
any idea how to solve this?
|
|
|
|
|
Couple of options:
-Add the asp.net user account as a login to the Database Server (not very secure, probalby a bad option)
-Connect to the database using a connection string that uses a login account already configured on the database server.
|
|
|
|
|
and how to configure user to databse server?
i am using SQL Express 2005
my connection string is
string connString = @"server = .\sqlexpress; integrated security = true; database = MyDatabase";
|
|
|
|
|
Change your connection string to something like that, must make sure the user id is a user configured on the server and specify its password.
Data Source=.\sqlexpress;integrated security = true;database =MyDatabase;User Id=myUsername;Password=myPassword;
|
|
|
|
|
how to configure user to database
i am using SQL Express 2005
|
|
|
|
|
i am connecting though SQL Client
|
|
|
|
|
|
It is bad manners to post the same question to multiple forums
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Using a forum as your primary learning tool is not a good idea. Read the manual (Book On Line), learn to use Google to do some research[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
Ok what I am doing is calling a web service (C#) with javascript. I use the .innerHTML to get all the html within a certain div (this works fine). I then pass that data over to the webservice (which accepts a string array)..
First I make a javascript array (first contains the path to write the file, second position contains the .innherHTML).
When that gets passed for some reason it doesn't like all the HTML coding. It gives an error. If I just use PLAIN text (I.E. no < > / \) it works perfect.
Web service:
[WebMethod(Description = "Creates a file. First string in the array is the path and second string is the data.")]
public string Update(string[] html)
{
if (html.Length > 0)
{
try
{
string path = String.Format(@"{0}", html[0]);
using (FileStream fs = new FileStream(path, FileMode.Create, FileAccess.Write))
{
using (StreamWriter sw = new StreamWriter(fs))
{
sw.WriteLine(html[1], Encoding.ASCII);
sw.Close();
}
fs.Close();
return "Updated situation report.";
}
}
catch (Exception ex)
{
return "Error: " + ex.Message;
}
}
else
return "Incorrect parameter lengths.";
}
I'm guessing the streamwriter cannot write those types of charactesr to tmy file? How would I fix this?
In casey ou are wondering this is what should be in the string:
THIS IS MY DOCUMENT<br>
<span style="color: red"> IT CONTAINS COLORS </span><br>
AND OTHER CRAP
modified on Thursday, March 25, 2010 12:59 PM
|
|
|
|
|
The problem was the < > signs and such. I used a replace function on the javascript side. It seems in the code behind on the web service it went ahead and converted them to the actual symbols itself
|
|
|
|