Hi, Can anyone tell me how to get the Microsoft.Web.UI.WebControls.TreeView web control to display properly in IE? It shows up fine in Firefox, but in IE it shows all the nodes on the same line. For example: Internet Explorer: Node1 Node2 Node3 Node4 Node5 Node6 FireFox: Node1 Node2 Node3 Node4 Node5 Node6 I haven't done anything special to the webform or changed any of the control properties. Thanks ;)
Manster
Posts
-
TreeView control display bug?...? -
Create a .pdf file programmatically?Hi, I've seen various postings on the code project about creating a pdf file programmatically, but none of them seem to work or they mention short comings in the process. Is their a way to do this? I have an xml file I'd like to create as a .pdf file. Can anyone point me to a free solution to do this? Thanks ;)
-
Web services question...Thanks so much for your help, this is exactly what I needed. :)
-
Web services question...So all I need to do is add this code to my web service and this will get the calling programs ip address?
string sHostName = Dns.GetHostName(); IPHostEntry ipEntry = Dns.GetHostByName( sHostName ); string sCallingAppName = ipEntry.HostName;
Thanks -
Web services question...Heath, I looked at the Dns class, but I didn't see anything obvious that would help me find out the calling computers ip address of my web service. Is their a way to do this? Thanks
-
Web services question...Hi, Can anyone tell me how a web service would get the calling computers IPAddress? I'm new to web services and I'm not sure where to look for this type of information. It's probably something really obvious that I'm unaware of. Thanks
-
Easy Arithmetic questionI've run into problems with the same issue before. The only way I could fix the rounding error was: double c = a + b; c = Math.Round( c, 2 ); Hope this helps. :)
-
How do you add intellisence text to an object or function?Hi, Can anyone tell me how to add intellisence descriptions to an object, function, and or property? I think it has something to do with adding text in [] above a object, function, or property but that's just a guess. Thanks :)
-
Lock a file?I just figured this out:
private bool LockFile( string sFilePathToLock ) { bool bFileLocked = false; if( File.Exists( sFilePathToLock ) && ( File.GetAttributes( sFilePathToLock ) != FileAttributes.ReadOnly ) ) { File.SetAttributes( sFilePathToLock, FileAttributes.ReadOnly ); // Use the FileAttributes.Archive to mark a file for deletion. bFileLocked = true; } return bFileLocked; } private bool UnLockFile( string sFilePathToUnLock ) { bool bFileUnLocked = false; if( File.Exists( sFilePathToUnLock ) && ( File.GetAttributes( sFilePathToUnLock ) == FileAttributes.ReadOnly ) ) { File.SetAttributes( sFilePathToUnLock, FileAttributes.Normal ); bFileUnLocked = true; } return bFileUnLocked; }
Hope this helps. ;) -
Passing a xml document to and from a web service...Hi, I'm trying to create a C# web service that takes a string (a file path) and returns the xml document. I'm having some trouble with this task so any help would be much appreciated. If you know of any examples that do this, please share them. My web service function looks like this: [WebMethod(Description = "Returns the xml file.")] public XmlDocument GetXmlFile( string sXmlFilePath ) { if( sXmlFilePath != "" || sXmlFilePath != null ) { m_XmlDocument.Load( sXmlFilePath ); m_XmlDocument.Save( @"C:\Documents and Settings\dsterling\Desktop\Golfers311.xml" ); } return m_XmlDocument; } m_XmlDocument is a global variable. Below is the code in my web service consumer app. private void button1_Click(object sender, System.EventArgs e) { XmlNode xNode = TWS.GetXmlFile( @"C:\Documents and Settings\bob\Desktop\Golfers.xml" ); xDoc.Load( @"C:\Documents and Settings\bob\Desktop\Golfers.xml" ); xDoc.Save( @"C:\Documents and Settings\bob\Desktop\Doug.xml" ); System.Diagnostics.Process.Start( "notepad.exe", @"C:\Documents and Settings\bob\Desktop\Doug.xml" ); } Thanks for your help!
-
Encrypting data not files...Hi, I'm trying to encrypt data in a large text control on a C# windows form. Can anyone tell me how to encrypt and decrypt the data that's in just the text control? I've seen instances on how to encrypt and decrypt files, but not strings of data. I don't need any particular algorithm, but lets just say DESCryptoServiceProvider as an example. Thanks ;)
-
wma to mp3 converter?Hi, Can anyone tell me a free application which will convert .wma files to .mp3 files? I've got windows media player 9 and music match and I haven't been able to figure it out. Thanks :)
-
Getting the selected tree node's text?Mazdak, Thanks for your help. I'm actually trying to get the child node from the code you listed above. So if I'm currently getting "Last Name" returned to me now, I'm trying to get "Wallace" instead. This is the tree structure. Last Name Wallace A child node is selected and I need it's text. Is this possible? This is the tree structure. Thanks
-
Getting the selected tree node's text?Hi, I've got a question regarding the treeview control on a C# windows form. How can I get the text of the selected treeview node? I know I need the .Text property to get the string, I just can't seem to get the selected/active treenode. I want to take part of that text and put it in a tool tip. I've got the tooltip part working but I'm getting the parent tree nodes text. The tree structure looks like this.
Last Name Smith Wallace First Name John William
Thanks :) -
Global fucntions where do they go?Yea I tihnk so. I think another namespace as well makes a lot of sense. Thanks for you help!
-
Global fucntions where do they go?Mazdak, Thanks for your help. I've got one question about the assembly. I'm not really sure what an assembly is or how I'd add something to it, and then access that function throughout the app? This is a really stupid question, pardon my lack of ASP.NET knowledge. Thanks for your help!
-
Global fucntions where do they go?Hi, I'm new to ASP.NET and I'm trying to create a C# database driven web app. With the help of some other code project readers, I'm now able to create global variables. Where do I create global functions? I'm trying to create a global function to open a record set for instance when I pass it the global connection string. Another example would be I'd like to create a global function to encrypt a string passed into it. Where would I put the encryption function and how would I access it? Thanks :)
-
Include File??Hi, I'm new to ASP.NET as well and I'm trying to figure out the same thing regarding include files. If you figure it out please let me know and I'll do the same. Thanks ;)
-
Global variables where do they go?Hi, I'm new to ASP.NET and I'm trying to create an (C#) application that uses global variables. I have a database connection string and I want to be able to use it in many of my pages. How can I do this? I created an object to do this, but I don't want to be forced to create that object on every page which uses the database. Thanks :)
-
Creating an XML FileDaljv, Here is an article I wrote which does all of the things you want to do programatically in C# in a windows application. http://codeproject.com/csharp/CSPersonalOrganizer1.asp Good Luck ;P