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
B

balkang

@balkang
About
Posts
22
Topics
16
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • string serialization
    B balkang

    Hi, I have a class that has a string attribute. I set this attribute to " " (a space) and serialize the instance to an xml file. When I deserialize that instance the value of that string attribute is null, not space.. How can I do that??

    public class MyClass
    {
    private string str;

    public string Str
    {
    	get{return str;}
    	set{str = value;}
    }
    

    }
    [STAThread]
    static void Main(string[] args)
    {
    MyClass mycls = new MyClass();
    mycls.Str = " "; //a space assigned

    //Serialize it
    TextWriter tw = new StreamWriter("str.xml"); 
    XmlSerializer sr = new XmlSerializer(typeof(MyClass)); 
    sr.Serialize(tw, mycls);
    tw.Close();
    
    //Deserialize
    FileStream fs = new FileStream("str.xml", FileMode.Open); 
    XmlSerializer sr2 = new XmlSerializer(typeof(MyClass)); 
    MyClass mycls2 = (MyClass)sr2.Deserialize(fs);
    fs.Close();
    Console.WriteLine("\*\*\*" + mycls2.Str + "\*\*\*" );
    

    }

    output: ******

    C# question xml json

  • horizontal splitter
    B balkang

    It works.. thanks.

    C# question visual-studio

  • horizontal splitter
    B balkang

    Hi I am still using VS 2003, and I want to use horizontal splitter in my window form. How can i do that? thanks..

    C# question visual-studio

  • Overlapped windows controls
    B balkang

    Hello, When developing a Windows Application, You may have to put lots of controls on same form. Therefore It becomes too difficult to see, manage and manipulate all of these overlapped controls. I think, it is a frequently encountered problem. Are there an way to solve this?

    C# help question

  • weather report service
    B balkang

    Hello, I want to use weather reports in my project. Is anybody know a web service that provides weather reports??

    C# question

  • picturebox binding
    B balkang

    Hello, I want to keep the personal details including a picture of a user and store this information in a database and display later. I binded the textboxes to a datatable but could not bind the picturebox and the image. I tried the code below.. How can I handle that?? string selectStudent = "SELECT * FROM Students "; daStudent = new SqlDataAdapter(selectStudent, conn); dsStudent = new DataSet(); cbStudent = new SqlCommandBuilder(daStudent); daStudent.Fill(dsStudent, "Students"); pictureBox.DataBindings.Add("Byte[]", dsStudent, "Students.Photo");

    C# question database wpf wcf

  • Error: unable to connect to the remote server
    B balkang

    hello, I am developping a compact framework app. using Web Services. When i try to call the web service, "unable to connect remote server" error is given. When i am using Windows Server 2003, it was enough to write the ip address shown in cmd/ipconfig to web reference property of the connection. But i have to use XP for a little time, and cmd/iponfig does not show anything and it is still not work for 127.0.0.1 . What can i do..

    Mobile wcf sysadmin windows-admin help

  • isolated storage
    B balkang

    Hello, Can we use isolated storage in compact framework applications?

    Mobile question

  • serializing in client
    B balkang

    Do you mean that... I should define a User dll on server. And both webservice and client should reference them?? I haven't experience of dlls. will it not be a problem for client to reference a dll in remote server?

    C# sysadmin help question

  • serializing in client
    B balkang

    Hello, I have a data class in my Web Service server. Its name is User. When I include this web service to the client and name it "WSA" the User class will be WSA.User. the problem is when I serialize a User instance in client its type will be WSA.User and I can not deserialize it to a User instance in server. the types will be different. What can I do?

    C# sysadmin help question

  • registry vs isolated storage
    B balkang

    -Unauthorized access to the client application is not important. The username and password given in client app will be used to connecting server.. Also password will be determined by server administrators. So i think windows authentication could not work. isolated storage seems as a better solution. Thanks for help

    C# visual-studio windows-admin question

  • registry vs isolated storage
    B balkang

    the same username and password will be used in connecting a remote web service so these information will be saved in server. Will it be logical to release the windows password to the server? This is my first project and I seriously consider your recommendations

    C# visual-studio windows-admin question

  • registry vs isolated storage
    B balkang

    Hello, In a windows application I want to save the users username and password to remember in subsequent openings. Where do you recommend me to stare the information. In registry or isolated storage??

    C# visual-studio windows-admin question

  • custom data in WS
    B balkang

    Hello, I want to pass a custom data type to a webmethod and get a custom data from a webmethod. The custom classes are on serverside. How can i include these classes to the client. What should i do?

    C# question

  • configuring SSL under XP
    B balkang

    hello. I am developing a web service in my personel computer and I am using XP Pro. I want to use SSL for securing the communication and I want to use windows certification authority. There some steps in http://support.microsoft.com/default.aspx?scid=kb;en-us;290625[^] for setting SSL but I couldnt succeed it. In the 5. step "Server Certificate" button is not active and also http://YourWebServerName/certsrv/ can not open. Is the opareting system must be windows 2000 server or 2003 server to perform these steps?? I need your help...

    ASP.NET com sysadmin security cryptography help

  • returning table from a stored procedure
    B balkang

    thanks very much.

    Database database

  • returning table from a stored procedure
    B balkang

    Hello, I want to get all of the rows of a table in my database which are suit some criteria in a stored procedure. but ı dont know getting and returning table (multiple data) from a stored procedure. How can ı success this..

    Database database

  • custom authentication
    B balkang

    I couldnt use the SSL. so ı decided to use self cryptography. I am developing the project in my pc under XP. I dont want to purchase any certificate (verisign ) and want to use cetificate authority. But I couldnt achieve that. Is it possible?

    ASP.NET sysadmin security question

  • custom authentication
    B balkang

    hello, I want to use custom authentication in my web service project. I use asymetric cryptography for loging on the clients. if its OK. I use symmetric cryptography. In brief like that: 1.clients requests the public key of asymetric cryptography from server. 2.server generates and returns it to the client. 3.client encrypts its username, password and the symmetric cryptography's public key and IV and sends them to the server. 4.Server decrypts and authenticates the username and password. if its OK, generates a GUID ticket and encrytp the ticket using the clients public key and IV and sends it to the client. 5.When client calls a webmethod, it send the encrypted ticket and server authenticates the ticket. I have doupts about the safety of this system. Can any other person access to the ticket and call a webmethod by using this ticket. What should ı do more?

    C# sysadmin security question

  • custom authentication
    B balkang

    hello, I want to use custom authentication in my web service project. I use asymetric cryptography for loging on the clients. if its OK. I use symmetric cryptography. In brief like that: 1.clients requests the public key of asymetric cryptography from server. 2.server generates and returns it to the client. 3.client encrypts its username, password and the symmetric cryptography's public key and IV and sends them to the server. 4.Server decrypts and authenticates the username and password. if its OK, generates a GUID ticket and encrytp the ticket using the clients public key and IV and sends it to the client. 5.When client calls a webmethod, it send the encrypted ticket and server authenticates the ticket. I have doupts about the safety of this system. Can any other person access to the ticket and call a webmethod by using this ticket. What should ı do more?

    ASP.NET sysadmin security question
  • Login

  • Don't have an account? Register

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