He did give him the information he needed. He told the man who to find the information on his own. Judah didn't ahve to Google this to find out if there was any info on it out there. It's a question that's been asked and answered a couple of million times already!
Like Judah said, answering a simple question directly only serves to answer that single question. Teaching him how to find his own answers answers many, many more questions than just the one.
System.Diagnostics.Process.Start(/*url or file goes here*/)
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Perhaps you mean assembly tampering via key signing? Check out .NET key signing, search for it on your favorite search engine, there will be thousands of hits.
p.s. I realize English may not be your first language, but I'll warn you anyways: be more polite next time. "give me any reference" sounds too demanding. "Can you give me any reference..." would be better.
I want to do component: hierarchical dictionary based on DataGridView in C# (.NET 2.0 ). It don't has this component, I must do it same and I have problem with add rows to the DataGridView. When I add row like this: DataGridView row = new DataGridView(); this.DataGridview.Rows.Add(row); the new row will be add to the end of the table. I want to add the new row after the row which I click. It is posible ? if not, i will be must rewrite all rows and in the middle write my new rows. Is someone another posibility ?
I'm trying to store escape charachters (such as '\t') in the beginning of a string.
Problem is that I'm reading the characters from a file (ini-file), and I'm using a class that automatically stores the string with the @-sign which means that the string ignores the escape characters (like writing string g = @"\t";) Is there any way I can get rid of that annoying '@' character once it has been placed there?
Escape characters are only used to represent characters in a string literal in the code. There are no escape characters in a string or a file, just characters.
A @-quoted string is a verbatim string literal. That is also something that you only do in code. The @ character doesn't end up in the string literal, and putting the @ character in a string doesn't change how the string is used, it's just another character.
this code is working fine (display the image in image control) when i run this webpart in an ASP application on localhost but when i run this web part on share point it gives me the error "A generic error occured in GDI+." i check the error in try catch statement and it turns out that Image.Save() is generating the error. All the other data from database get displayed without problem.
And here are some things which i already checked..
1) As you know in sharepoint you have to logon with username and password to open the sharepoint page. So if i log on it my username and password i can run the page and even the above code was running fine without any error, but no other user was able to run that webpart.
therefore i change the web.config file and changed the identity tag from
and after that user can run the webpart but the above code start generating the error as i mentioned above.
2) after changing the identity tag the pages are running with NETWORK SERVICE user id.
3) i do not know that it is a security issue or not as i gave full permission to Everyone and NETWORK SERVICE users on C:\ dive.
4) and one more thing i have changed "trust level" tag in the web.config file from
<trust level="WSS_Minimal" originUrl="" />
<trust level="Full" originUrl="" /> just to make sure that security is not a problem
if any Gurus want to have some more information about this problem i can explain..
i describe this error with Image.Save()
i also tried Bitmap.Save("filename",imageFormat.jpeg) and again got the same error
i actually dont know what actually causing this error i spent lots of time googling ..
1)it could be a permission/security problem
2) it could be a memoryStream problem but if i display the image without saveing it it work fine
Bitmap bitmap = new Bitmap(ms);
Page.Response.ContentType = "image/bmp";
but i want to save that image rather displaying it through Page.Response.OutputStream
i would appreciate if anyone can help as there is no help any where on forums
Thanks Christian for ur quick reply
No I am not saving on an existing file i am createing a new file name everytime i run that code, its not a locking issue i am sure as the file name is different everytime