ozhonetech's Q&A profile
.NET Development Convert Stream Reader into XML Format
Hi I am receiving an xml file via http post..from a third party vendor. StreamReader streamReader; streamReader = new StreamReader(Page.Request.InputStream); line = streamReader.ReadLine(); do { //Writing XML String Content in a Log File. Logging.Logger.log("\n" + line + "\n"); line = streamReader.ReadLine(); } while (line != null); This is the code which i am using to recieve an xml file... I just want to see the content of the xml file... so that i am writing the output xml stream in a log file, but i am unable to see the <XML> tags... nor in an xml format the out put of the xml string is like this "%3C%3Fxml+version%3D%221.0%22%3F%3E%0A%3CBooks%3E%0A++%3CASP.net ...Show All
Internet Explorer Development Help me Uninstall Old IE7 Beta 2 to install RC1 !!
When I try to uninstall IE 7 Beta 2, I get an error that I can't uninstall due to a file I don't have. Now, I can't uninstall at all! Please help me!!! IF ANYONE IS STILL IN HERE TRYING TO FIGURE OUT HOW TO GET RID OF IE7 I FIGURED IT OUT IT TOOK ME 2 DAYS AND IT WAS REAL EASY. JUST DOWNLOAD THE NEWIEST IE7 INSTALL IT THEN GO TO ADD OR REMOVE PROGRAMS LOOK FOR WINDOWS INTERNET EXPLORER 7 AND UNINSTALL IT AND IE6 WILL AUTOMATICALY REPLACE IT. I SWEAR THIS WILL WORK I SAW ALL THE OTHER POSTS IN HERE I EVEN TRIED MOST OF THE IDEAS SOME HAD. I MIXED SOME OF EVERYONES IDEAS ABOUT IT TOGETHER AND FIGURED IT OUT SO IF U WANT IE6 BACK DO WHAT I SAID. ...Show All
SQL Server in ADO what is diffrence between cursortype Enum values
hi what is the diffrence between the cursor type of the recordset enumeration values in ADO dynamic openkeyset static forwardonly thanks in advance. adOpenDynamic 2 Uses a dynamic cursor . Additions, changes, and deletions by other users are visible, and all types of movement through the Recordset are allowed, except for bookmarks, if the provider doesn't support them. adOpenForwardOnly 0 Default. Uses a forward-only cursor. Identical to a static cursor, except that you can only scroll forward through records. This improves performance when you need to make only one pass through a Recordset . adOpenKeyset 1 Uses a keyset cursor. Like a dynamic cursor, except that you can't see records that oth ...Show All
Visual Studio Express Editions Image Background Removal
I know with Frontpage and Word it is possible to take a background color out of an image and make it transparent. Is there any way to do this in VBE, or will the image background have to be removed manually with some sort of imaging tool like Photoshop beforehand You can do it with the Bitmap.MakeTransparent() method. I added a bitmap to the resources, named SampleBitmap, with a white background and added a panel to the form: Private Sub Panel1_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint Dim bmp As Bitmap = My.Resources.SampleBitmap bmp.MakeTransparent(Color.White) e.Graphics.DrawI ...Show All
SQL Server Trigger on a table in TempDB
I have an application that creates and makes use of a table in tempdb. My problem is that I have a couple of triggers on this table that get dropped everytime SQL Server restarts (due to the fact that tempdb gets recreated). Is there a way to automatically recreate these triggers each time SQL Server starts It looks like it is not possible to have a "create trigger" statement within a stored procedure. I would greatly appreciate some ideas....thanks in advance! You can issue CREATE TRIGGER from within SPs if you use dynamic SQL. See EXECUTE statement in Books Online for more details. You can create the triggers automatically by using an auto-start SP or SQLAgent job that runs on service start. Bu ...Show All
Visual Studio Team System Order of execution
Hello, I am using unit testing methods in VS .NET and I want to know if it's possible to give unit tests an order of execution. Thank you. Hello, Yes you can, by using ordered tests. Using the ordered test UI, you can specify the order of any of the tests in your solution. For more info on ordered tests, please take a look here: http://msdn2.microsoft.com/en-us/library/ms182629(d=ide).aspx Thanks, David Gorena Elizondo [MSFT] VSTS ...Show All
Visual Studio Team System Unbinding Solutions Programmatically
Hi, I am in a situation where I need to unbind a number of solutions programmatically, right after deploying them from Source Control to a new location (which is also done programmatically). Any ideas would be very appreciated. eugene.z wrote: Hello, Should you decide to parse out SCC bindings from the solution files programmatically, you may wish to consider using SolutionClass (see the following thread for details). Cheers, Eugene Thanks, Eugene, this is very helpful. I hope I will manage to do it using the SolutionClass class. ...Show All
Visual Basic String Functions
Through playing I have noticed that whenever I type the name of a string, for example str, with a . after it a list appears with common and all functions availible. Commom: Contains EndsWith IndexOf ..... etc. I am trying to find which functin would accomodate me the best. I am currently using the .Contains to find if a specific "key" word appears in the string I just read in. But what I don't know how to do is extract data that appears after the "key" words. Can someone please help me.....!!!! Example: Itinerary for Doe,John on 01-01-1001 The informaion in yellow is the data that I need. The red ar the "key" words. Mark, alright... I have started desi ...Show All
SQL Server Single to Multi-value parameter passing
Hello, I am creating a drill through report in which I am selecting a single month from the main report. When I pass this month, I would like the secondary report to select all the preceding months (i.e to set YTD for secondary report) e.g. Primary Report - March selected from the drop-down Secondary Report - Jan, Feb, March should be selected. Any help will be appreciated. FYI - I am using an Analysis cube as my data source Thanks If you want to just display the month/year in the drop-down that is fine, but it is probably easiest to actually store and operate off of a full date from the first report (i.e. 1/1/2006, 2/1/2006, etc.). This simplifies your filter in the secon ...Show All
Windows Forms this.Close not working but this.Hide is working
Dear All, First I have a login page upon verification of the user name and password I will take me to my main form. Currently this how my code works upon verification UserName.Text = "" ; Password.Text = "" ; this .Hide(); Form formMain = new Form (); formMain = new fMain (); formMain.Show(); Then I notice that I should not be using this.Hide cause it uses up my memory and my program is always appearing in my task list of my computer. So I decided to replace this.Hide() with this.Close(). Once I replace my formMain.Show() doesnt show up can some one help me pls. Thanks. Set a breakpoint after the ShowDialog() call and see where the code goes ...Show All
Visual C++ Memory
Hi My program shows memory leaks how do i check this and where should i check, I check everything but still VS2005 showing Detected memory leaks! Dumping objects -> {428} normal block at 0x022A5F10, 33 bytes long. Data: < ' > 10 94 27 02 10 00 00 00 10 00 00 00 01 00 00 00 {405} normal block at 0x022A6010, 40 bytes long. Data: < ' > 10 94 27 02 17 00 00 00 17 00 00 00 01 00 00 00 {371} normal block at 0x022A5848, 29 bytes long. Data: < ' > 10 94 27 02 0C 00 00 00 0C 00 00 00 01 00 00 00 How do i fix this Thanks Manoj Jangid Early in your program, like at the top of the main or WinMain function, write _CrtSetBreakAlloc(371); This will cause the debugger to brea ...Show All
.NET Development splitting web.config file
My web.config file is very long and difficult to find code. Is it possible to split web.config file into a no. of Xml files If so please let me know the approach to split. thanx in advance, See my ASP.NET 2.0 configuration article here: http://www.odetocode.com/Articles/418.aspx . Specifically the section named "Using an External Configuration Source". Hope that helps, ...Show All
SQL Server Searching encrypted data; using MAC secret data
I just finished reading an article on how to search encrypted data efficiently and they suggested creating a new column with a Message Auhtentication Code. To be honest, reading the aritcle makes my head hurt. I can hardly understand what they were doing myself and I can't begin to explain it to a developer. Are there any easier ways to search encrypted columns for a speciifc match If not, does any have some stored procs that implement this messy MAC stuff TIA, Barkingdog If the article Sung pointed out is the one you have questions about I am the author of it, and I will be more than glad to help answering any questions and help you get a solution for your particular scenario. ...Show All
Visual Studio Tools for Office Attaching objects to mails in outlook using c#
Ive developed an add-in to Outlook 2003 in c# using vs2003 and Vsto. In that i would like to attach an object of a user-defined class created in the project to an Outlook mail-item. This mail item is then stored on the hard-disk. Thanks for your resonse Omega Man. The first part of my question involves using this in-memory object. Once it is created, How do i attach it Can i refer to it by the name used in the program or do i need a path Can i convert it to a binary file and then attach this file Or do i have to make it an embedded object ...Show All
.NET Development the basics steps in DISCONNECTED way ?? plz help me
hi all ... here is my problem i have a database created with access and i wanna get the data from it by using disconnected way in ado.net so I create oleDbDataAdapter then i fill the dataset by using the oleDbDataAdapter1.Fill(dataSet1);method and then i created a DataTable and i gave it same name that i called in the access db and by using while loop i tryed to get the data with read() method but no result So plz can any body exlpain what is the basic steps that can allow md bring data from db and put it in Dataset, then display it on RichTextbox or what ever :S help me plz !! NOTE : SORRY ABOUT MY BAD LANGUAGE AND GRAMMAR Here is a basic sample: SqlConnection conn = new SqlConnection(CONNECT); ...Show All
