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
G

goatstudio

@goatstudio
About
Posts
11
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Creating a FireBird Database Programmatically
    G goatstudio

    Dear all, I am using FireBird .Net Adapter and able to create FB database using below code (C#): Hashtable parameters = new Hashtable(); parameters.Add("User", UserName); parameters.Add("Password", Password); parameters.Add("Database", @FilePath); parameters.Add("ServerType", 1); FbConnection.CreateDatabase(parameters); After creating the database, I am able to open it using FBConnection for the first time. But after that, whenever I open the database, I am getting this error: internal gds software consistency check (Internal error code (165)) Any idea? Thanks. :) regards, vic

    Database csharp database help question

  • RSA SecurID integration
    G goatstudio

    Dear all, I am currently work on a project on ASP.NET with RSA SecurID. RSA now provide an authentication page for those who want to access the web server, which required RSA UserName and RSA Passcode. I tested out and everything working perfectly. However, I do have my very own login parameters to login to my own web application on that web server. Hence I try to integrate RSA authentication page with my login form, however I am not able to pass my own form elements' value to the redirected page after successfully authenticated by RSA. Any clues on that? Or anyone has been work with RSA SecurID? Thanks regards, vic

    ASP.NET csharp asp-net sysadmin security question

  • DateTime format
    G goatstudio

    Thanks Dave. :) I am now cracking my head to solve the problem. My server default date is US format, and the sql server as well. However, when users enter data through the web, they will enter 18/11/2004 (dd/mm/yyyy), I am trying to convert it and store in sql server using 11/18/2004 (mm/dd/yyyy). I wanted to do in dynamic way, hence I think globalization method in .Net is the solution. I try to parse by US format at first, then UK format... however end up still having error. How shall I deal with this? :sigh: Thanks! regards, vic

    C# database sql-server sysadmin help question

  • Line Break
    G goatstudio

    I developed a C# apps to retrieve pop3 email, the result I got is something like below: Return-Path: Delivered-To: user@main.com Received: (qmail 55301 invoked by uid 89); 3 Nov 2004 00:07:53 +0800 Message-ID: <20041102160753.55300.user@main.com> From: "Victor Tai" To: user@main.com Subject: Email Extream Test 11 Date: Wed, 03 Nov 2004 00:07:53 +0800 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8" Content-Transfer-Encoding: 7bit How do I separate them into line so that I can get the variable like From, To, Subject? I try to identify by "\n", but it gave me wrong result... Thanks.

    C# question csharp com announcement

  • DateTime format
    G goatstudio

    The Date in my sql server storedin US format, that is MM/DD/YYYY. I need to display the date in Asia format, or British format, that is DD/MM/YYYY. DateTimeFormatInfo Asian_DateTimeFormat = new CultureInfo("en-GB", false).DateTimeFormat; Console.WriteLine ("1. DateTime: 10/15/2004: " + System.DateTime.Parse ("10/15/2004", Asian_DateTimeFormat).ToShortDateString()); Above code give me an error. DateTimeFormatInfo Asian_DateTimeFormat = new CultureInfo("en-GB", false).DateTimeFormat; Console.WriteLine ("2. DateTime: 10/2/2004: " + System.DateTime.Parse ("10/2/2004", Asian_DateTimeFormat).ToShortDateString()); This code however successfully executed, and return me 2/10/2004. Wht can't the first code did the same? Any idea? Thanks! :D regards, vic

    C# database sql-server sysadmin help question

  • Web Services with dll
    G goatstudio

    Hi All, I created a web services, and place it under 1 of the virtual directory, and it successfully run. Now I need to declare an object, said ObjCommon, the ObjCommon.dll placed in /bin directory. My problem is, how to write the code to include this ObjCommon in my .asmx file? Thanks.

    ASP.NET wcf help tutorial question

  • Session State
    G goatstudio

    Hi all, I use Session to store my user object.UserObj NewUsr = new UserObj (); if (NewUsr.LoginValidate (TextBox_ID.Text, TextBox_Password.Text)){ Session ["MM_UserObj"] = NewUsr; RedirectTo = "main.aspx"; } At every page I do a check on this session if (Session ["MM_UserObj"] == null) { Response.Redirect("default.aspx"); return; } This work find in my XP Professional... untill I move the entire web application to my Win2k Avd server... The session seem very fast to disappear (a after 1 or 2 pages). Any idea what is going on? Thanks. regards, vic

    ASP.NET question sysadmin

  • Random number in C#
    G goatstudio

    IDGenerator.cs --------------

    public class IDGenerator {
       int min, max;
    	   
    	   
       public IDGenerator () {
          this.min = 1000000;
          this.max = 9999999;
       }		
    		
       public string GetID () {
          Random r = new Random(unchecked((int)DateTime.Now.Ticks)); 
    			
          // Produce a number from 00000 through 99999
          String myNumber = r.Next(min,max).ToString("00000");
          r = null;
          return myNumber;
       }   
    }
    
    C# csharp lounge

  • static variable
    G goatstudio

    Heath Stewart, Thanks for the explaination! :-D You are right, I actually declare the static variable outside the Page_Load method. My mistake here... ;P I just want to make sure that, as long as the static variable won't share by other sessions in the same server... it will be fine... ;) Thanks guy... ;)

    C# question csharp asp-net

  • static variable
    G goatstudio

    Dave Kreskowiak, Thanks for the info. :) My static variable actually work on the page... just that I am worry it become global. Your answer make me feel better. :-D p/s: I post it here coz I am using C# in my asp.net. Anyway thanks for reminding me. ;P

    C# question csharp asp-net

  • static variable
    G goatstudio

    I define some of my variables in asp.net page as a static variable, to keep track of the value when do a postback. For exmaple protected void Page_Load(Object Src, EventArgs E) { static int Counter = 0; } The question is, will this static variable become global? mean everyone login to the page from different session see the same value? or the value only applicable for current session? Thanks. :) regards, vic

    C# question csharp asp-net
  • Login

  • Don't have an account? Register

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