nmirhan's Q&A profile
Visual C# removing items from cache that start with a certain prefix................
I am using the Caching Applicationn Block, VS 2005 and SQL Server 2005. What I am trying to accomplish is to remove certain items from the cache. For example I have a Products class which has a Products_Cache_ + productID. What I am trying to accomplish is to remove all cached items that start with a certain prefix e.g. Products_Cache_ private static void PurgeCacheItems() { //List<string> itemsToRemove = new List<string>(); while (productCacheManager.Contains( Products_Cache_ )) { productCacheManager.Remove( Products_Cache_ ); //itemsToRemove.Add(); } //foreach (string itemToRemove in itemsToRemo ...Show All
Software Development for Windows Vista Help with Hands on Labs
Hello, Over the last days I've started to experiment with Workflow Foundation, but I've had some problems. I find that when I want to create a local variable in a "HandleExternalEvent" object, it won't let me do it. I explain, in Lab05 for example, it asks you to insert a HandleExternalEvent object to handle the user's vote, and once you've changed the interface type and the event name, the manual tells you to " type the value votingArgs into the (Parameter) e field, this will create a local variable named votingArgs within the workflow". I do that and once I click somewhere else or I hit Enter, the word "votingArgs" disappears from the (parameter)e field, and the variable isn't created. The same thin ...Show All
.NET Development in memory generated XML contains \r\n characters
Hi all, I'm trying to serialize a tree object as XML and then persist the XML (in memory) into a SQL table.I'm using the code below to generate the XML, a sample piece of generated XML is : " < xml version=\"1.0\" encoding=\"utf-8\" ><DTreeNodeOfOBSTeam xmlns:xsi=\" http://www.w3.org/2001/XMLSchema-instance\ " xmlns:xsd=\" http://www.w3.org/2001/XMLSchema\">\r\n .... " if you note you'll see 1- the whole text is wrapped in double quotes and i t has \r\n characters. these make the string unreadable for my stored proc which accepts a text parameter to update the table. I assume I can solve this by removing the double quotes and \r\n characters but I don't know how! ...Show All
Visual Basic How to compare text between two text boxes
I am trying to write a typing program which allows users to copy text from one text box into another. After a certain time the program calculates how fast they typed and also how many errors they made. I have completed everything except how to compare the two text boxes so it tells me how many characters dont match. Can anybody help with this. if all you need to know is if there is a difference then you can use the string.compare method...if you are wanting to display the differences then you must iterate through the strings... Private Sub Button1_Click ( ByVal sender As Object , ByVal e As System . EventArgs ) Handles Button1 . Click Dim counter As Integer = 0 For ...Show All
.NET Development problem with converting PDF to Xml
Joe thanks a lot for your early replay im trying to do this simply open the PDF document and I make it saved into as a .xml format. If the word like “first“ in pdf document ,its displaying like ” rst “. Where ever the fi,ff,ff,<,>, is their that symboles replaced with "box" symbol . here are the some of the examples what i am getting in xml: different -> "di erent" (a) changed into " a " changed into " " hid; 1i h=i hid; 2i h+i hid; 3i h_i h60i so please give me an idea to solve the problem Thanks, Ram krishna It seams that you have problem reading (decrypting) PDF file. You may contact Adobe for help in this or forums related to PD ...Show All
SQL Server Nested set show leaves of parent
Hello, I have the following code which will show all bottom level leaf nodes of the hierachy: SELECT name FROM tree WHERE rgt = lft + 1; I'd like to be able to filter results by a node. For example in a tree such as: Products ReleaseProduct Release1 Release build 1 Release build 2 Release 2 Release 2 build 1 Release 2 build 2 Build Product Build 1 Build 2 If Build 2 is chosen (any node with no children) I'd like to just show the Buuild 2, if ReleaseProduct is chosen Release build 1, Release build 2, Release 2 build 1 and Release 2 build 2 will be shown and if BuildProduct is chosen I'd like to display Build 1, Build 2. I understand the prinicipals but my SQ ...Show All
Visual Studio Team System .net 1.1 fxcop
Hello, Is it still possible to download a version of FxCop which works with the .net 1.1 runtime I know that version 1.35 is able to analyze assemblies compiled against all versions of the .NET Runtime however we do not have/want to install .net 2.0 which version 1.35 requires to run, onto our build machine. Thanks, Andy By default, IIS will actually use .NET 1.1. If on IIS 5, you can simply change this by viewing the properties of the Application within the IIS MMC Console, if on IIS 6+ you will need to create a separate Application Pool for .NET 1.1 and .NET 2.0 applications. They can co-exist together quite happily. ...Show All
Audio and Video Development The 'priority' attribute is not declared.
In the samples and my own tests I get the error: ERROR: Invalid attribute "priority" at row 13, char 36: The 'priority' attribute is not declared. When running the validator. Is this a bug in the validator Here's line 13 for example: <PlaylistApplication description="Test" language="en" src="file:///dvddisc/ADV_OBJ/Manifest.xmf"> 13 <PlaylistApplicationResource priority="1" multiplexed="false" size="500000" src="file:///dvddisc/ADV_OBJ/Manifest.xmf" /> <PlaylistApplicationResource multiplexed="false" priority="1" size="500000" src="file:///dvddisc/ADV_OBJ/Script.js" /> <PlaylistApplic ...Show All
.NET Development XML and SqlServer
How to insert data from xml file into sqlServer database table. Thanks You can try using the XML DOM object (System.Xml.XmlDocument) to retrieve the different nodes and attributes values, then using ADO.NET (SqlConnection, SqlCommand, etc) you can insert the data into a DB. There may be some other alternatives but it might be also more difficult to implement. Rgds, Rodrigo ...Show All
Audio and Video Development XML Parser Performance..
Does anyone have any relationship data between XML Parsing (using the built in spec Parser) and specific CES devices We are looking for data based on the parsing and handling the parsed xml stream, such as dynamically creating menus, pop up messages, dynamic playlist navigation, game engine datasets etc. Our SAX implementation and DOM implementations are multi-format compatible but we are looking to verify performance at this time before giving up on the built in spec parser. Any one doing this kind of dynamic work already and willing to share their experiences Thanks, Denny B. HI Peter, This is very good to know as well. I think that is a good rule of thumb even if using the built in parser is:& ...Show All
Visual Studio Express Editions NEED HELP with this piece of code !
HEY GUYS i am developing a program while learning Visual C# so here what i am trying to do .... getting htm links from the database ( access ) and view it in the WebBrowser Control and, i have a button to the next link in that database to get it and view it in the WebBrowser so here is the code for that button but it doesn't work :( when i click on it this is the function i am using when button is clicked private void Next(string lesson) { string StrConnection1 = @"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\anything\database.mdb" ; &nbs ...Show All
Visual Studio MSDN Download
I downloaded the May 2006 MSDN (all three ISO's) a couple of weeks ago, and it seemed to install OK, I was under the impression that I would see a difference in VSE help/documentation, like the plethora of broken links etc would go away, and it wouldn't crash when I just down VSE - but alas nothing seemed to changed. Yesterday I installed another IDE to see if it handled nested partial classes better than VSE (or VS anything as I understand) it, imagine my suprise when I asked me which documentation set I wanted it to use, and one of the options was MSDN May 2006. There is was, no broken links, Interface definitions etc. How can I get VSE to integrate with MSDN May 2006 FYI the other IDE didn't handle nested partial classes very ...Show All
Visual Studio Express Editions String to number
Is there a quick way to convert the string "2.334.654,23" to the number 2334654.23 I have tried decimal.parse but does not like the format of the string (it works with 2,334,654.23). Thanks, Antonio got it! Decimal .Parse( "-59,23" , NumberStyles.AllowDecimalPoint Or NumberStyles.AllowThousands Or NumberStyles.AllowLeadingSign, nfi) ...Show All
Smart Device Development SerialPort and SMS.
Hi, We are writing a SMS component for Siemen MC55 modem inbuilt for Windows CE 4.2. We are using .NET CF 2.0 SP1 for the development tool in C# language. We use the SerialPort class for COM communications. This is our key challenge, I hope someone will be able to give some advise. private void OnComPortReceive(object sender, SerialDataReceivedEventArgs e){ if (e.EventType == SerialData.Chars) { string response = serialPort.ReadExisting(); stateMgr.ProcessResponse(response); } } After send a receive SMS command, for instance " AT+CMGR=1 ", there are times when the response from serialPort.ReadExisting() is broken up. For example instead of receiving in a single ReadExisting() for the fo ...Show All
Visual Studio Disk space requirements for installation of SP1 for VS2005
The disk space requirements are listed as 6 GB, my problem being that my C partition is onlly 6 GB in size, with the 40GB disk split into three partitions - C: 6GB containing XP, D: 6GB containing Apps, and E: the rest for personal data. I decided to be optimistic and try install SP1 anyway, and, as expected, it failed due to lack of space - apparently on C: which went down to ~300 MB of free space. Any advice before I go reformatting & repartitioning my drive as reinstalling everything from scratch TIA, Tzal. Hi Tzal, It is very simple to do a system restore. Indeed it is a wonderful feature which would save you all the trouble of formatting and re-installing everything on your machine. ...Show All
