Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:878562
More Search Options
RSS Available
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"
Posted to
ASP.NET Controls for Silverlight
(Forum)
by
prateek1
on 7/29/2009
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
Posted to
ASP.NET Controls for Silverlight
(Forum)
by
prateek1
on 7/29/2009
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 >
ASP.NET:
Using WCF RIA Services without Silverlight in Visual Studio 2010 for building 3 tier ASP.NET Applications
Channel 9:
Ping 41: Top stories of 2009, bing, windows 7, laptop hunters, azure
Channel 9:
endpoint.tv - Windows Server AppFabric in action monitoring and troubleshooting
Channel 10:
Windows Marketplace for Mobile Opens to 6.0, 6.1 Phones
Channel 9:
Rx API in depth: Hot and Cold observables
ASP.NET:
Back in Business
TechNet Edge:
Hacking Windows 7 Interview
WindowsClient:
Windows Client Developer Roundup for 12/14/2009
Channel 9:
TWC9: Silverlight Web cam apps, VS extensibility, Explorer shell extensions
ASP.NET:
Visual Studio Project Sample Loading Error: Assembly could not be loaded and will be ignored. Could not load file or assembly or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
WindowsClient:
Working with Windows 7 Taskbar Thumbnail Buttons with WPF 4
WindowsClient:
overflow:hidden -- a fix to a CSS problem
TechNet Edge:
Empowering your teams with SharePoint
TechNet Edge:
TechNet Radio: Expert presents: Creating and Executing a Comprehensive 2007 Office Deployment
ASP.NET:
ViewModel Pattern for Silverlight - Options for Hooking a View to its Model
Channel 9:
Rx API in depth: Concat, Catch and OnErrorResumeNext
Channel 10:
PowerPoint Twitter Tools Updated
Channel 10:
Windows Live Messenger Arrives on Nokia Phones
Channel 9:
Peer to Peer Series Part 7: PeerChannel Basics
TechNet Edge:
Visio: Drawing on Experience with Saveen Reddy
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online