473,503 Members | 1,656 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

filefield control and word document

All,

I have a asp.net c# webform that contains a filefield control where a user
is able to upload a MS Office .doc file. I would like check the file is a
..doc file does anyone know how this can be done? I dont want to just check
the extention of the file as this can be changed.

Please note MS Office will not be installed on the client machine thus the
content type of a .doc file will be application/octet-stream

Thanks
Msuk
Nov 19 '05 #1
0 762

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2175
by: Rakesh Gupta | last post by:
Hi guys, Is it possible to host a .net user control in word, excel or powerpoint just as we would an ole control. We have a simple drawing .net user control, with simple menu etc. We'd like to...
4
2510
by: Marion Neubauer | last post by:
Hi! I'm using the RTF2 Control from Lebans web site with MS Access 2000. It's working very good. Now i want to create a letter with the formated text of the RTF2 control in MS Word 2000, but it...
1
1711
by: Aurimas Norkevicius | last post by:
I am trying to create an user control with ms word functionality. I succeded to create this control and it is functional in windows forms. I would like to use it in html pages using <object ..>...
2
1461
by: Mau | last post by:
Hi I have a little problem but I'm not able to solve it.... I'm writing an User control (ascx) I wanto to insert a FileField control (FileUpload in Webmatrix) to manage the upload of a file. ...
5
3819
by: lloyduh234 | last post by:
I need to display and allow the user to print a Word document from within a C# WinForm application. I'm using the ActiveX Browser control. The Word document displays correctly, but remains "locked"...
1
2243
by: JDeats | last post by:
If I embed an WebBrowser control on a WinForm I have the ability to load any ActiveX containable object into that control using this syntax: webBrowser1.Url = new Uri(@"c:\myfile.doc"); Using...
5
3724
by: John Kotuby | last post by:
Hi all, This is my first time trying to creaet and use a custome Web Control in a Web Site project in ASP.NET 2.0 with VS 2005 and VB. I created the control in a separate Web Control Library...
3
2339
by: bhappy | last post by:
Hai All, I am using html filefiled control in my asp.net application.Im browising image and storing in database, upto here its working fine, but while loading the image to filefield from...
1
2715
by: pavanip | last post by:
Hi, I am developing one windows application in that i am trying to integrate microsoft word programatically. I used web browser control to enter text,saving it as a word document but the saved...
0
7198
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7072
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.