Answer Questions
Donckers ICertificatePolicy overriding is not being called
I'm overriding the ICertificatePolicy to have a custom certificate validation. When this class is overriden you must to implement the CheckValidationResult where the custom validation is performed. When I started using the code (it is a little more below), It seemed to work fine, but I just realized that is not being called all the time. Sometimes the CheckValidationResult is called, but other times that is not happen ...Show All
Koen Vermeire WebClient.Download gives an error:- "Forbidden 403" with .NET 2.0
Hi All, I want use DownlaodFile method to download file from a website. I tried following code in Visual Studio 2003, .NET 1.1 and it worked well, I was able to download the file. However the same code does not work in Visual Studio 2005, .NET 2.0. I am able to access the web site URL using Intenet Explorer. Can any one please help WebClient myWebClient = new WebClient(); // myWebClient.Credentials = CredentialCache.DefaultCredenti ...Show All
Todd D SqlDataReader problem while showing data in <td>rdr.getvalue(2)</td>
hi. i am having a problem while showing my data through sqldatareader in C# asp.net web application. the Problem is the sqldatareader object doesnt shows data on the newline. let say the data in sql table is "hi my name is measum" now when i show this data through <td>rdr.getvalue(0)</td> it will show like "hi my name is measum" (c no line break) however when i put this data into the textbox(multiline ...Show All
Parrotboy TextBlocks to Streams
Alright, yet another problem, how can i save the content of RichTextBox to a variable, so i can put it in my own object. Cant find anything about it on the web, only how to save it to a file and how to store it in a SQL database ah, thats enough, thanks You can get/set the contents of a RichTextBox control via its Rtf property like this: string rtfContents = myRichTextBox. ...Show All
James Pahl XSL,XMl, DHTML Tree (TOC) as per MSDN CodeCorner article April 99
Hi Kinda new to all this. But want / need to create a TOC menu (3 levels).I have been using this article (George Young Apr 1999, .. ) DXML: Taking a TOC from XML to DHTML ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/dncodecorn/html/corner042699.htm as an example and start point. but my XML File is slightly different to that in the example, and I am getting nowhere fast (or slowly or at all..!!) I use Topics, Topic and Sub ...Show All
bensun13 OracleClient problems
Anyone out there using the OracleClient I can't get the update method on the OracleDataAdapter to work. I'm passing a simple text SQL select via the Command object and using the Fill method on the dataset. Then I add about 35 rows (79 columns in the row) and issue the Update method. The code throws no errors in either the UI or data layers, and I don't receive an error from the Oracle stored procedure, but the data neve ...Show All
rodan_be Connection not Alive
Sorry to post again, I think the other one has been forgotton I have a Windows Form, (Application). On that I have a TextBox called txtIdNum, a Button, and a TextBox called TxtNombre What i want to happen is when someone types into the txtbox txtIdNum, and press the button, the code will search the MSQL table, and select all the fields where FIELD IDNum is = txtIdNum.Text Straight forward, easy to say. My code is the following System.Dat ...Show All
Bruno Sanchez Getting data from the server to the client?
I have a server that does lots of stuff. I have a client that can create remote objects on the server. I need to get data from the server to the client but I am having problems. I think there is an obvious solution but I am just not seeing it. Here is the scenario: The sever starts up and makes a configuration list instance. The server holds this list in its memory and often updates the data with ...Show All
Rob S Control for making graphics
I'm making a program now. It's mission is makig graphics of all types of functions. Now it's time to chose what control I need for making graphics It must be a white rectangle, where I will be able to draw lines and points for graphics. I also want to export my graphics from this control to .BMP format. I am using .NET 2005. Of course, I can easily use Form_Paint and some functions from System.Drawing namespace. But I think it is not ...Show All
Jens Kohler Listbox dropdown SelectedIndex resets after postback
I have been struggling with a problem for days now, and searched for related problems and solutions but had no luck. I have two dropdown listboxes where the first is populated in page load and the second is populated based on the input in the first. The first dropdown is inside a "If Not Page.IsPostBackThey" if loop. Both have autopostback set to true. The problem is that when the user makes a choice in the first dropdown an ...Show All
Mazmo Checking the current deployment version with clickonce
Let's assume we have an application which we normally deploy through clickonce. We want to present current version in the about box (the version installed). The following code seemed normal to me: return System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString(); well... I try to debug this application, and when I open ...Show All
Akiwa Exception Handling...
Hi all, I wonder how Exception is handled by .NET. here is my problem.. I've a .NET component(C# dll) and i'm using it in .NET clients.Now when an exception is thrown or an exception occurred in my component,the code where actually the exception occurs opens in the Client project and it shows my component class completely.This is really bad as you as it just exposes my component code. One thing is,when there is any exception occurred in Fram ...Show All
Josh C Unknown error "-1".
I am getting the following error when trying to use File.CreateText(filepath) Source: mscorlib Message: Unknown error "-1". We are only seeing this error on a few of our client machines (they are all XP Pro). We are unable to reproduce it in-house. Luckily I've been able to remote into one of our client boxes in order to fix the problem. Here are the steps that I have taken: 1. I've given the folder that we are writing ...Show All
Julien Erard Exception while running load test on Trace Listener
Hi, Iam trying to access the custom log file through machine.config. Iam using TraceListener for this purpose. I then write a function with the code similar to the following: StringBuilder debugInfo = new StringBuilder (); Debug .Listeners.Add( new TextWriterTraceListener ()); uint BLANK_VALUE = 0; StackTrace tracer = new StackTrace (); if (!tracer.GetFrame(1) == null ) debugInfo.Append(tracer.GetFrame(1) ...Show All
Steve1999 method return type and consumer
If I created a webmethod that returns a dataset, will only a .net consumer be able to use it Are you returning the DataSet object, or the XML from a dataset If you are going to interoperability, then I would recommend returning the XML from the dataset. Inside of the .NET call, you can convert the XML back into a DataSet object and use it natively to .NET. I'm not returning the object's properties, ...Show All
