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
S

subrata jana

@subrata jana
About
Posts
53
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • TCP Client Persistent Conection
    S subrata jana

    string[] str1 = new string[3] { "http://www.google.co.in/", "http://www.google.co.in/intl/en\_com/images/logo\_plain.png", "http://www.google.co.in/images/nav\_logo3.png" }; string Ahost = "http://www.Google.co.in"; Uri lastURI=new Uri(Ahost); TcpClient client = new TcpClient(); string host = lastURI.Host; client.Connect(host, lastURI.Port); NetworkStream stream = client.GetStream(); for (int i = 0; i < str1.Length; i++) { string temp = new Uri(str1[i]).PathAndQuery; string str = @"GET " + temp + " HTTP/1.1" + "\r\n" + @"Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*" + " \r\n" + @"Accept-Language: en-us" + "\r\n" + @"Accept-Encoding: gzip, deflate" + "\r\n" + @"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)" + "\r\n" + @"Host: " + host + "\r\n" + @"Connection: Keep-Alive" + "\r\n\r\n"; byte[] send = Encoding.ASCII.GetBytes(str); try { if (stream.CanWrite) { stream.Write(send, 0, send.Length); } } catch (System.IO.IOException ioe) { Console.WriteLine(ioe.Message); } byte[] bytesToRead = new byte[client.ReceiveBufferSize]; MemoryStream ms = new MemoryStream(); StringBuilder sbuild = new StringBuilder(); do { try { int numBytesRead = stream.Read(bytesToRead, 0, client.ReceiveBufferSize); Console.WriteLine(numBytesRead.ToString()); ms.Write(bytesToRead, 0, numBytesRead); Console.WriteLine(ms.Length); } catch (Exception e1) { Console.WriteLine("No Data Found"); } } while (stream.DataAvailable); ms.Seek(0, 0); StreamReader sr = new StreamReader(ms, Encoding.ASCII); string Result = sr.ReadToEnd(); sr.Close(); ms.Close(); //stream.Close(); stream.Flush(); Console.WriteLine(Result); } client.Close();

    C# csharp dotnet adobe agentic-ai question

  • Chatting using WebService as the central Server
    S subrata jana

    Ur Server code will have all the functionality of Add User, Send and Recieve messages. Then add a webservice to this server project. In the webservice add distinct WebMethods for each of ur task. Create a instance of the server inside this method and make an appropiate call. ex. server.cs- class server { AddUser(){} } in webservice.asmx class service { [webmethod] AddUserService() { server sr = new server(); sr.AddUser(); } } This example is just to help u to start. Once u start u can know how to invoke methods.

    C# css sysadmin help question

  • Stupid question
    S subrata jana

    string[] arString = fullString.Split(';');

    C# question data-structures help

  • themes
    S subrata jana

    u can do it by giving some id to both the styles. first remove the style by var newNode = document.getElementByID("Normal"); if(newNode) { var oRoot = newNode.parentNode; oRoot.removeChild(newNode); } the add the new style. var elem = document.createElement('style'); elem.id = "Highlight"; elem.type = "text/css"; elem.text = "ur style property"; document.getElementsByTagName('head')[0].appendChild(elem); or else u try for document.getElementByID("Normal").id = "Highlight";

    ASP.NET javascript wpf help question

  • Email.
    S subrata jana

    in brief - It will first check for the "to" address and make a match of that from DNS if it is found the ur message will be enrouted to that server where it will get stored. Next time the person opens gmail can see that. It is just like we are storing data in database then retriving that by using some ID. In this case data u are sending to store in gmail's db.

    ASP.NET csharp asp-net

  • Server side printing
    S subrata jana

    i tried that with js but no luck U can go throw http://codingforums.com/archive/index.php?t-224.html[^] or type "window.print + no dialog" and check for results.

    ASP.NET html css sysadmin help career

  • C# code works fine in debug mode but not while running
    S subrata jana

    Thanks to correct me. Then only we can check for #if Debug .in this case.

    .NET (Core and Framework) csharp debugging help

  • C# code works fine in debug mode but not while running
    S subrata jana

    In Debug some values will be set to default values while in realse it may be assigned with null. Code depending on those may give some error also. Pls check for #if Debug kind of directives in this case the could will only work in debug mode never in release mode

    .NET (Core and Framework) csharp debugging help

  • Change style based on device type
    S subrata jana

    u can do it in ur client script by adding dynamic CSS and removing old one. And also donot cache the css in client side. use CacheControl=no-cache for that CSS probaly in IIS as a header.

    Web Development question csharp javascript html css

  • HELP: Strict JavaScript Syntax Checker Verifier
    S subrata jana

    there wont be any memory leak it is handled by DOM it will consider the last var control = new Control();

    Web Development question javascript visual-studio performance help

  • Deloy Web Application having Crystal reports
    S subrata jana

    First u add the DLLs in bin comiple the project then u create the deployment pakage either MSI or using MSBuild

    ASP.NET workspace csharp dotnet help tutorial

  • Deloy Web Application having Crystal reports
    S subrata jana

    while creating the deploymet package u have to add those dlls in applications bin directory not in the MSI. And All the dependent dlls has to be added in applications bin. Then the MSI or website will work fine.

    ASP.NET workspace csharp dotnet help tutorial

  • Server side printing
    S subrata jana

    with dotnet framework 2 , it will always ask for that print dialog. it was possible with framework 1.1.

    ASP.NET html css sysadmin help career

  • Launch an exe file from a website
    S subrata jana

    if that is a .net exe then add it in GAC. with "gacutil -i exe_path" then give full trust to it with "caspol -af exe_path" use sdk command prompt. Add this in webconfig. try ur program after that.

    C# csharp css sysadmin security help

  • validation of ASP label [modified]
    S subrata jana

    u can do that in JS . Say document.getELementByID("ID") then open the watch window and check for options there . innerhtml or childrens or value can give u ur "SavingCreditCard(9)". U have to debug that in JS.

    C# help tutorial question

  • About Multiple main()
    S subrata jana

    In C# if u use IDE the mutilple Main() is not possible. But u can use multiple Main() with different return type. and u have to comiple it with "csc" command line compiler giving appropiate option. Through VS.Net IDE it will give error

    C# help csharp visual-studio question

  • Cryptography/Encryption
    S subrata jana

    Pwd can be stored using any alogorithm u choose MD5,Sha256 or ur own Algorithm. The encrypted values are soterd to maintain privacy. This algorithm are one-way algorithm so can only be encrypted but cannot be decrypted. So next time when pwd is entered . the code behind will generate the same encryted value that will be matched with the db value.

    C# database csharp security question

  • Dcom
    S subrata jana

    U should have knowledge of remoting. Once a class is running in the server . U can create a instance of that object in ur client throw remoting then use it how ever u want. Knowledge of reflection is added benefit. Pls get an idea from this. http://blogs.msdn.com/adioltean/archive/2004/06/18/159479.aspx

    Windows Forms tutorial database sysadmin

  • services
    S subrata jana

    yes u can u have to use project type -- windows service. and if necessary installer class

    Windows Forms csharp

  • RTF/Regex Question
    S subrata jana

    http://www.ultrapico.com/Expresso.htm Download the tool , its a tool to test regular expression and with few example of regex

    C# question database regex
  • Login

  • Don't have an account? Register

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