Search results

  1. M

    A Question about Hashtable

    Is it possible to have one main Hashtable to store mulitple sub-hashtables? So it works like this: 1: Sub-Hashtable1 contains n objects (strings). 2: Sub-Hashtable2 contains n objects (strings). 3: Main-Hashtable contains these two Sub-Hashtables. 4: Retrieve these objects through the...
  2. M

    Help with Deleting a file after downloading

    Hi all, I have implemented some code in my page that will generate a .txt file (on the fly) when the user click on an ASP button, then a download box will show up and so the user can download that file. But I want to delete the file right away after the file is finished downloading... can...
  3. M

    User Control with GridView

    All, I need to create a .ascx control and inside this control contains a gridview control. So basically this ascx control wraps up the gridview control. But, how can I add templates in this control? Just like the way the GridView Control does. Thanks, Carl
  4. M

    One question on Generic Collection.

    I am currently using a Hashtable to store a list of collection, its type includes string, integer, and dateTime. After researched a little bit on "Generic", I am very interested of using it. However, from what I know, in order to enforce type safety, the generic collection class has to be...
  5. M

    A question on Ajax 1.0

    Hi, I have this web application and it has a 3rd party Gallery Control on the page . This gallery control would basically shows a list of images with a <A> tag wrapped it. And when i click on the image, it will be redirect to somewhere else... Now, my question is, is there a way for Ajax1.0 to...
  6. M

    IIS Error

    Hi, I am using Windows XP Pro and just installed IIS 5.1 on the machine. I created a new website under IIS and when I tried to debug it. I received the following error: Failed to access IIS metabase. The process account used to run ASP.NET must have read access to the IIS metabase (e.g...
  7. M

    EnterpriseLibrary - Caching Application Block

    All, I want to know the benefits of using EntLibs Caching Application Block and what is main difference between this Caching mechanism and (In-Proc) session management? (note that I am not asking comparing (ViewState) caching to Session State Management, but the Caching from Entlib compare...
  8. M

    Access an object from other forms

    All, If I declare a new object, say, a Hashtable in Form.Load event, how can I access this object from another form? The worse is, I cant even see this object from other events in the SAME form. Does anyone have any clue? Thanks, Carl
  9. M

    Concept of Sync Tool

    All, I am learning C#, so I want to create some simple program and learn it this way. The simple program that I am thinking is a backup/sync utility. However, theres a performance issue in my mind. If I have selected two folders: A, which is the target folder; and B, which is the destination...
  10. M

    C# - Using Delegate Function

    All, I am a VB.NET programmer so please excuse me if the question is kinda dumb. I have a Web Service and a web page to call and retrieve data from the web serivce and pop them into a datagrid, the code is as follow: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As...
  11. M

    How to reload a listbox in a parent form [C#]

    Hi, I have two windows forms written in C#. The parent form can call the child form to open. In the child form, I have logic to add/remove certain nodes in a XML document. After that, I can close the child form. But I also have listbox control in the parent form to display the items from the...
  12. M

    Web Service Methods

    Hi all, I have a question about web methods in .NET Web Service. I know that it is illegal to have overloaded web methods in web service. But why? Does anyone know? Can I get some information about it somewhere??? Thanks, Carl
  13. M

    The process cannot access the file because it is being used by another process...

    Hi all, I have a XMLDocument Class that tries to access a bunch of XML files in a folder. However, some of these XML files are still being written while its has been load. Of course, if I try to load them, I will get an Exception. such as "The process caanot access the file because it is...
  14. M

    .NET Encryption Library

    All, I want to know that is there a way to determine if a ciphertext is encrypted with TDES or RC2? Thanks, Carl
  15. M

    A question on System.Threading.Timer

    All, I have a question on using Threading Timer. Basically this is my first time to use this timer and before this, I use System.Timers most of the time (well, until I found out using System.Timers would be a pain in Windows Service...) unlike Systems.Timer, Threading.Timer does not...
  16. M

    XSLT "Space" Formatting

    All, I have the following code: <td><xsl:value-of select="UDF/Name/NameFirst" /><xsl:value-of select="UDF/Name/NameLast" /></td> The above code will show first name and last name like this: "JoeSmith", but I want to put a space between so it will displays "Joe Smith", how am I going to...
  17. M

    Converting String into DateTime Format (in a Globalization Manner)

    Hello all, I have a question about convert strings into dataTime format (in a globalization manner). Consider I have the following code: Dim strMonth As String = "12" Dim strDay As String = "30" Dim strYear As String = "2005" strTime = strMonth & "/" & strDay & "/" & strYear dtmTime =...
  18. M

    Exit Sub in C#

    Is there anything in C# equal to Exit statement (Exit Sub to be more specific) in VB.NET
  19. M

    A question about C#

    Hi, all I am a vb.net programmer and I usually like to "module" to seperate a bundle of functions from my main namespace and class. This is because sometimes I want other classes to access to it while these functions are simply enough that I dont want to make them into classes seperately...
  20. M

    Using SubString in XSLT

    All, I have a problem when writing code on XSLT. I have a string like this: "123454433-56545663". I need to find a way to extract the last 3 digits before the "-" so the result will become: "433", I though about Substring but then I realized I cannot do it because the parameters of...
Back
Top