Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
A

AesopTurtle

@AesopTurtle
About
Posts
63
Topics
34
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Multiple Identities for FTP
    A AesopTurtle

    Hi, Is it possible to set multiple identities for an ftp site under IIS 6.0? I understand that this can be done for a website by setting it in website properties --> website tab --> advanced button. For example, I have a website running under IIS and I'm running a dynamic dns with the address: KiT.dyndns.org. If I add "mysite.KiT.dyndns.org" as an identity for that web site, anyone can access my website hosted on my pc through http://mysite.KiT.dyndns.org/. Now I would like to do the same thing for FTP e.g. ftp://myftp.KiT.dyndns.org/. Is it possible? Thank you very much.

    KiT Never wait for a chance to come, Believe in your own potential and go get it!

    IT & Infrastructure windows-admin tutorial question

  • Implicit/Explicit variable initialization & performance [modified]
    A AesopTurtle

    I see. Thank you very much.

    KiT Never wait for a chance to come, Believe in your own potential and go get it!

    C# performance

  • Implicit/Explicit variable initialization & performance [modified]
    A AesopTurtle

    So you mean in this scenario, the second case (implicitly initialization) yields better performance?

    KiT Never wait for a chance to come, Believe in your own potential and go get it!

    C# performance

  • Implicit/Explicit variable initialization & performance [modified]
    A AesopTurtle

    Hi, Are there any difference in performance between these codes: MyClass _myClass = new MyClass(); string _myString = ""; _myString = _myClass.GetMyString(); and MyClass _myClass = new MyClass(); string _myString = _myClass.GetMyString(); In the first case, the string variable has been explicitly initialized. While in the second case, it has been implicitly initialized. Well, I understand that the difference in performance cannot be noticed. But I'm just curious to learn about it. Thank you very much. -- modified at 22:15 Wednesday 20th June, 2007

    KiT Never wait for a chance to come, Believe in your own potential and go get it!

    C# performance

  • Character Encoding in Visual Studio
    A AesopTurtle

    Could I have more details on what \x does and how to work with it please? I understand that seeing W instead of \ for Korean fonts is normal. But it confused me sometimes. That's why I would like to keep my system encoding as English but let the VS display proper fonts (just like EditPlus does). Is there any way to accomplish that? Thank you very much.

    KiT Never wait for a chance to come, Believe in your own potential and go get it!

    Visual Studio csharp visual-studio tutorial question

  • Character Encoding in Visual Studio
    A AesopTurtle

    Hi, I have a project that contains Korean characters in the code. When I open it with Visual Studio, those characters turn into alien. I figure it out that the character encoding in Visual Studio follows the setting of "Language for Non-Unicode Programs" in Regional and Language Options --> Advanced tab. If I change that language to Korean, the characters then display properly. However, every backslash sign (\) in my windows displays as Korean Won sign (struck out W sign). For example, the remote address \\192.68.0.1 will turn to WW192.168.0.1 (WW with strike out line). Is there any way to make Visual Studio display a specific encoding for a solution? (Open a file with specific encoding can be done with the options in open file dialog, but not for opening a solution.) Thank you very much.

    KiT Never wait for a chance to come, Believe in your own potential and go get it!

    Visual Studio csharp visual-studio tutorial question

  • variable scope
    A AesopTurtle

    Thank you very much. Currently, I am using a Session variable to hold the value. Is there any other way to work with this issue?

    KiT Never wait for a chance to come, Believe in your own potential and go get it!

    ASP.NET csharp help tutorial asp-net com

  • variable scope
    A AesopTurtle

    Using the Session variable is what I did. However, I wonder if there is any other way to work with it. Thank you very much.

    KiT Never wait for a chance to come, Believe in your own potential and go get it!

    ASP.NET csharp help tutorial asp-net com

  • variable scope
    A AesopTurtle

    Hi, I have been facing the variable scope problem since I started coding in ASP.NET (C#). A variable I declare globally seems to be reset whenever it gets out of a function block. For example, I have a label control named "lblURL" and a button named "cmdShow" on a web form with the following code: public class MyClass: System.Web.UI.Page { private string _url = ""; private void Page_Load(object sender, System.EventArgs e) { this.SetUrl(); } private void SetUrl(){ _url = "http://www.myWebSite.com"; } private void cmdShow_Click(object sender, System.EventArgs e) { this.lblURL.Text = _url; } } When clicking on a button, I expect the label to display "http://www.myWebSite.com". But it turns out to be blank. I have tried debugging and found that the _url variable has been set properly in the SetUrl function. But the value is gone after I click the button (_url = "" in cmdShow_Click() function). Personally, I think it's the IsPostBack issue since I've never had this kind of problem with Windows Form programming. But I don't know how to solve it. :(( Someone please tell me how it works and how to solve it.

    KiT Never wait for a chance to come, Believe in your own potential and go get it!

    ASP.NET csharp help tutorial asp-net com

  • HTTP/1.1 500 Internal Server Error
    A AesopTurtle

    Hi, I need to create and run an existing asp.net web project using vs.net (2003). When I try to create or open an existing project, the following error message appears: The web server reported the following error when attempting to create or open the Web project located at the following URL: 'http://localhost/WebApplication1'. 'HTTP/1.1 500 Internal Server Error'. I've tried many possible solutions available on the internet including re-install windows followed by vs.net. But they don't help. If anyone has experienced this before, please help. My configuration: - Windows Server 2003 SP2 - Visual Studio 2003 - ASP.NET v1.1.4322 Thank you very much.

    KiT Never wait for a chance to come, Believe in your own potential and go get it!

    ASP.NET csharp visual-studio help asp-net sysadmin

  • UserControl priority
    A AesopTurtle

    Hi, I'm currently working with user controls under VS2005. VS2005 does provide a handy tool called "UserControl TestContainer" for every user controls in my project. However, I need to configure one of my user controls in the project to be the first one to display. The problem here is that I'm using a third party control and it doesn't render correctly if its parent form is not the first one to be rendered. So I need a way to set the form as a startup user control. Is there any way to do that? Thank you very much.

    KiT Never wait for a chance to come, Believe in your own potential and go get it!

    C# winforms help question

  • Conditional Operator in C#
    A AesopTurtle

    I see. Thank you very much. You're the man. :-D

    KiT Never wait for a chance to come, Believe in your own potential and go get it!

    C# help question csharp tutorial

  • Conditional Operator in C#
    A AesopTurtle

    Wow! Thanx a lot, Mark. Never known there is this trick in C# 2.0. By the way, is there any way to convert from non-nullable to nullable? Say... I need to assign a value to a variable for web service. In my provided example, the variable for a web service is of bool type. How can i convert it to "bool?" ? Thank you very much.

    KiT -- Never wait for a chance to come, Believe in your own potential and go get it! --

    C# help question csharp tutorial

  • Conditional Operator in C#
    A AesopTurtle

    Hi, I'm trying to use the Conditional Operator in C# in the form of <bool condition> ? <true value> : <false value>; and I want the value to return as NULL if the condition is false. For example: bool _validated = _boolText != null? bool.Parse(_boolText): null; But an error occurs when trying to build. Here is the error message: Type of conditional expression cannot be determined because there is no implicit conversion between 'bool' and '<null>' How can I solve this problem? Thank you very much.

    KiT -- Never wait for a chance to come, Believe in your own potential and go get it! --

    C# help question csharp tutorial

  • VS2005/C# runs a project file instead of a solution file
    A AesopTurtle

    Sorry... I got it. The option to show the solution file is not checked -_-"

    KiT -- Never wait for a chance to come, Believe in your own potential and go get it! --

    Visual Studio csharp help question

  • VS2005/C# runs a project file instead of a solution file
    A AesopTurtle

    Sorry... I got it. The option to show the solution file is not checked -_-"

    KiT -- Never wait for a chance to come, Believe in your own potential and go get it! --

    C# csharp help question

  • VS2005/C# runs a project file instead of a solution file
    A AesopTurtle

    Hi, any idea on why VS2005/C# always runs a project file when I try to run an existing solution file? Say... I double clicks on a solution file. But when the VS2005 runs, the root in the Solution explorer appears to be its project file. Please help. Thank you very much.

    KiT -- Never wait for a chance to come, Believe in your own potential and go get it! --

    Visual Studio csharp help question

  • VS2005/C# runs a project file instead of a solution file
    A AesopTurtle

    Hi, any idea on why VS2005/C# always runs a project file when I try to run an existing solution file? Say... I double clicks on a solution file. But when the VS2005 runs, the root in the Solution explorer appears to be its project file. Please help. Thank you very much.

    KiT -- Never wait for a chance to come, Believe in your own potential and go get it! --

    C# csharp help question

  • How to determine the request & response packet size of a Web Service
    A AesopTurtle

    Hi there, Is it possible to determine the request and response packet size of a Web Service? Say... I would like to create a progress bar on my application to determine how many percentage the web service has performed. My idea is first to determine the packet size of the xml document sent/received by the web service. Then update the progress bar every, say... 10 kb, as the web service performs. So anyone please tell me how to determine the packet size using C#. If there is a better approach, please do not hesitate to suggest me. Thank you very much. KiT

    C# csharp xml tutorial question announcement

  • Extracting/Compressing .grf file
    A AesopTurtle

    Hi there, Anyone please tell me how to code to extract and compress .grf files as done by a program called GRF Tool. I found source code for the app but it was written in C++. I would like to know how to do so using C#. If anyone has any resource, please kindly provide it to me. Thank you very much. KiT

    C# csharp c++ tutorial learning
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups