Search

You searched for the word(s): userid:878562

Matching Posts

  • Re: where to store images?

    hi! first convert the image into an array of bytes like as follows:: byte[] ReadFile(string sPath) { //Initialize byte array with a null value initially. byte[] data = null; //Use FileInfo object to get file size. FileInfo fInfo = new FileInfo(sPath); long numBytes = fInfo.Length; //Open FileStream to read file FileStream fStream = new FileStream(sPath, FileMode.Open, FileAccess.Read); //Use BinaryReader to read file stream into byte array. BinaryReader br = new BinaryReader(fStream); //When you
    Posted to Getting Started (Forum) by prateek1 on 8/3/2009
  • Re: read word file

    Hi Here is the code that helps to read any document (like .doc, .rtf , txt ) from specified location. This is a web based application and this code is written in C# as code behind in ASP.Net 2.0, where the word document is hard to upload from client side. Here is the code that uploads the document file and stores it into a string and from that I have placed that string into a textbox. The First Step is that, we need to add a COM reference (that’s how we need to define the word application) to the
    Posted to Getting Started (Forum) by prateek1 on 8/3/2009
  • Re: Button to Download file

    Hi, string path = Server.MapPath("Path of the file "); System.IO.FileInfo info = new System.IO.FileInfo(path); Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=DSC_Declaration.doc"); Response.AddHeader("Content-Length", info.Length.ToString()); Response.ContentType = "application/octet-stream"; Response.WriteFile(info.FullName); Response.End(); Kindly mark as answer
    Posted to Getting Started (Forum) by prateek1 on 8/3/2009
  • Re: Button to Download file

    Hi, string path = Server.MapPath("Path of the file "); System.IO.FileInfo info = new System.IO.FileInfo(path); Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=DSC_Declaration.doc"); Response.AddHeader("Content-Length", info.Length.ToString()); Response.ContentType = "application/octet-stream"; Response.WriteFile(info.FullName); Response.End(); Kindly mark as answer
    Posted to Getting Started (Forum) by prateek1 on 8/3/2009
  • Re: Search engine for seraching the database

    Hi, You want to developed your own search engine ..... ok actually in the early days of my programming i developed one search engine which is preaty simple . In database i used three columns: URL,Keyword,Description and when the user given particular keyword then that URL is searched..... so for searching URL you defined keyword and matching the keyword bye using LIKE in query and bind that URL with DataLIst I haope this sugestion help you little bit.. If this artiacle help you then Kindly mark as
    Posted to Getting Started (Forum) by prateek1 on 8/3/2009
  • Re: C Sharp Convert dd/MM/yyyy to MM/dd/yyyy

    Hi, This is an interesting problem . The trick to doing this is to use the TimeSpan class to add on the days: string iso8601 = "07117"; int year = Convert.ToInt32(iso8601.Substring(0, 2)) + 2000; int days = Convert.ToInt32(iso8601.Substring(2, 3)); DateTime dt = new DateTime(year, 1, 1) + new TimeSpan(days - 1, 0, 0, 0); Console.WriteLine("The date is = {0}", dt.ToString("MM/dd/yyyy")); Console.ReadLine(); if this post help you kindly mark as answer
    Posted to Getting Started (Forum) by prateek1 on 8/3/2009
  • Re: Cannot open file when click open button in File Download dialog

    Hi, yes it is the path problem so here is the code with proper path string path = Server.MapPath("~/D/xyz.doc"); System.IO.FileInfo info = new System.IO.FileInfo(path); Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=DSC_Declaration.doc"); Response.AddHeader("Content-Length", info.Length.ToString()); Response.ContentType = "application/octet-stream"; Response.WriteFile(info.FullName); Response.End(); In the above
    Posted to Getting Started (Forum) by prateek1 on 8/3/2009
  • Re: POPUP FOR A DATAGRID

    Hi, Here is the code XAML : first create stack pannel and set that visiblity = collapsed : <StackPanel Visibility="Collapsed" x:Name="edittextbox" Opacity="0.95" Background="#FF95986A" Height="392.13" Width="624" Canvas.Left="206" Canvas.Top="118.87"> <Grid> <Rectangle Canvas.Left="214" Canvas.Top="288" Stroke="#FFFFFFFF" StrokeThickness="1" RadiusX="17"
  • Re: Accordian in silverlight

    Hi, you can find a sample here http://leeontech.wordpress.com/2008/03/26/expander-in-silverlight/ Mark As Answer Regard Prateek
  • Re: What exactly is ASP.Net???

    Hi, Great Tool Support. You can harness the full power of ASP.NET using any text editor -- even Notepad! But Visual Studio 2005 adds the productivity of Visual Basic-style development to the Web. Now you can visually design ASP.NET Web Forms using familiar drag-drop-doubleclick techniques, and enjoy full-fledged code support including statement completion and color-coding. VS.NET also provides integrated support for debugging and deploying ASP.NET Web applications. The Professional version of Visual
    Posted to Getting Started (Forum) by prateek1 on 7/29/2009
Page 1 of 5 (47 items) 1 2 3 4 5 Next >
Microsoft Communities