I am new to ASP.NET, but have been programming for about 14 years (C#
about 2 years). My manager asked me to develop a web application that would
allow employees to view a spreadsheet that is used to manage resources
(projects, employees, hours, dates, etc). The employee should only be able
to view data that pertains to them, and not be able to modify it (read only
view). My thought is to allow my manager to upload the spreadsheet to a
location in the virtual directory, programmaticall y parse through the
spreadsheet and filter out the data based on the windows authentication, and
then build a html table and display the data.
Is this the correct approach? Can the spreadsheet be located in a
completely different directory that is not in the virtual directory, but
located on a server somewhere. Could I access my manager's personal
directory using his windows logon information?
The other thought is just to develop a Windows form application, but
then it would require that everyone have .NET 2.0 installed and it was tough
enough getting MIS to install the 1.1 framework.
Any help or suggestions would be greatly appreciated.
Thanks 3 2307
You can use impersontation to allow
asp.net to pull resources (excel files).
I have an application.. that stores images on a fileServer. (big big
datastorage)
my web app....using impersonation.. .. pulls the files across the
network..copies them to a local
directory (one where IIS has access), and the aspx page gives the url to the
image...as it is now located in a IIS folder.
(I have a windows service that runs every 1/2 hour, which clears out images
that haven't been accessed in over 30 minutes).
Also check this post I made a while back: http://groups.google.com/group/micro...214c3bcca94224
(or search http://groups.google.com/?hl=en for "xml to xml transformation" and
"spaces.msn.com "
)
I think since you have to filter....putti ng it into a strongly typed dataset
would be much much cleaner and easier than trying to manipulate excel data
as an OleDb datastore.
Using the trick at that other post..and my blog you could:
Convert the excel file to Xml.
Convert the xml to dataset friendly xml, using xsl.
Now that the data is in a strongly typed DataSet, you'll have a
MyStrongDS.Sele ct("securitylev el=123 and userid=333", "dateof DESC");
...
Good luck.. if you use the xml to xml then please post a followup post.
"Brooke" <tb******@hotma il.com> wrote in message
news:uQ******** ******@TK2MSFTN GP10.phx.gbl... I am new to ASP.NET, but have been programming for about 14 years (C# about 2 years). My manager asked me to develop a web application that
would allow employees to view a spreadsheet that is used to manage resources (projects, employees, hours, dates, etc). The employee should only be
able to view data that pertains to them, and not be able to modify it (read
only view). My thought is to allow my manager to upload the spreadsheet to a location in the virtual directory, programmaticall y parse through the spreadsheet and filter out the data based on the windows authentication,
and then build a html table and display the data.
Is this the correct approach? Can the spreadsheet be located in a completely different directory that is not in the virtual directory, but located on a server somewhere. Could I access my manager's personal directory using his windows logon information?
The other thought is just to develop a Windows form application, but then it would require that everyone have .NET 2.0 installed and it was
tough enough getting MIS to install the 1.1 framework.
Any help or suggestions would be greatly appreciated.
Thanks
You could generate the Excel reports dynamically.
Here is some guidance: http://SteveOrr.net/articles/ExcelExport.aspx http://SteveOrr.net/articles/ExportPanel.aspx http://SteveOrr.net/reviews/AsposeExcel.aspx http://SteveOrr.net/reviews/OfficeWriter.aspx
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
"Brooke" <tb******@hotma il.com> wrote in message
news:uQ******** ******@TK2MSFTN GP10.phx.gbl... I am new to ASP.NET, but have been programming for about 14 years (C# about 2 years). My manager asked me to develop a web application that would allow employees to view a spreadsheet that is used to manage resources (projects, employees, hours, dates, etc). The employee should only be able to view data that pertains to them, and not be able to modify it (read only view). My thought is to allow my manager to upload the spreadsheet to a location in the virtual directory, programmaticall y parse through the spreadsheet and filter out the data based on the windows authentication, and then build a html table and display the data.
Is this the correct approach? Can the spreadsheet be located in a completely different directory that is not in the virtual directory, but located on a server somewhere. Could I access my manager's personal directory using his windows logon information?
The other thought is just to develop a Windows form application, but then it would require that everyone have .NET 2.0 installed and it was tough enough getting MIS to install the 1.1 framework.
Any help or suggestions would be greatly appreciated.
Thanks
Hi Brooke,
My suggestion is
1. Put the spreadsheet in file server. And set its access permission to
certain role(s) (by networking) so some people can modify the spreadsheet.
Actually the spreadsheet works as database. (If possible, use database rather
than excel)
2. Build a web page to show data in the ‘Database’. It’s very easy to use
GridView web control to show data (or export to spreadsheet). If it’s in
Intranet, you can use Windows authentication to get automatically login
user’s credential. Hence based on user’s role filter data. Proper
configuration setting can allow the web application to access the spreadsheet
in any place of LAN.
HTH
Elton Wang
"Brooke" wrote: I am new to ASP.NET, but have been programming for about 14 years (C# about 2 years). My manager asked me to develop a web application that would allow employees to view a spreadsheet that is used to manage resources (projects, employees, hours, dates, etc). The employee should only be able to view data that pertains to them, and not be able to modify it (read only view). My thought is to allow my manager to upload the spreadsheet to a location in the virtual directory, programmaticall y parse through the spreadsheet and filter out the data based on the windows authentication, and then build a html table and display the data.
Is this the correct approach? Can the spreadsheet be located in a completely different directory that is not in the virtual directory, but located on a server somewhere. Could I access my manager's personal directory using his windows logon information?
The other thought is just to develop a Windows form application, but then it would require that everyone have .NET 2.0 installed and it was tough enough getting MIS to install the 1.1 framework.
Any help or suggestions would be greatly appreciated.
Thanks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Phil Powell |
last post by:
What would one best recommend to parse an existing Excel spreadsheet (was
done in Excel 97 or 2000 not sure to be honest)? I am looking for the most
practical way of parsing an existing spreadsheet to place contents into a
mySQL db.
Thanx, Phil
PS: can you use fopen() to read the contents and parse? The spreadsheet is
on a remote site.
|
by: Allison Bailey |
last post by:
Hi Folks,
I'm a brand new Python programmer, so please point me in the right
direction if this is not the best forum for this question....
I would like to open an existing MS Excel spreadsheet and extract
information from specific worksheets and cells.
I'm not really sure how to get started with this process.
I ran the COM Makepy utility from my PythonWin (IDE from ActiveSTate),
|
by: quadric |
last post by:
Hi,
I have an application that requires that Python initiate and mediate a live
and iterative conversation
between an external application (in which Python is embedded) and an
external Excel
spreadsheet. Python will have to pass info to the spreadsheet, spreadsheet
will make
calculations, Python will obtain results and pass back to
application, application will evaluate
results of spreadsheet calculations and create new set of data and
|
by: Horhayson |
last post by:
What would be involved with having an Excel spreadsheet displayed in an
ASP page? The additional problem is that the file name changes on a
monthly basis. For example, this month's file name is 'Feb 2005.xls'.
Any help would be appreciated.
-Regards
|
by: Tim Marsden |
last post by:
Hi
I am a complete ASP novice.
Is it possible to display an Excel spreadsheet in a web page?
Can any input to the sheet be captured and sent back to the server?
Regards
Tim
| |
by: syvman |
last post by:
Hi everyone... I am pulling my hair out trying to do this, and was
wondering if someone could give me some assistance...
I have an Excel spreadsheet containing several worksheets. I'd like to
be able to take all of the data from the second column (B) of each
worksheet and append that raw data to an access table. The columns in
the spreadsheet do not have headers for use as field names (it's my
assumption that my table should have a...
|
by: Scott M. Lyon |
last post by:
I'm trying to figure out a way to export data (actually the result of a
Stored Procedure call from SQL Server) into a specified Excel spreadsheet
format.
Currently, I have the data read into a DataSet that consists of one
DataTable.
That DataTable has a specific name (for arguments purposes, let's say it's
called "DataGrid"), that I need to use as the tab name in the exported Excel
|
by: ssrirao |
last post by:
There is an Excel Spreadsheet containing data, residing in an internet site.
It’s very easy to Import data from a local Excel Spreadsheet into SQL Server Database Table using DTS.
But in my case the Excel spreadsheet resides an internet site which has a static name (Example xyz.xls) but varying data inside it.
The spreadsheet contains three columns a, b, c and data below it.
Only data get updated weekly
So basically I have to automate...
|
by: Bill Atkins |
last post by:
I'd like to embed an Excel spreadsheet in my C# application.
The information I've found on the Web suggests placing a Web Browser
control on the form and navigating it to an Excel spreadsheet. When I
try this, I get a dialog asking if I'd like to open or save the
spreadsheet - the spreadsheet never appears embedded in the
application.
Has anyone else had issues with this?
|
by: Sport Girl |
last post by:
Hi everybody ,
i have the task of developing in Perl a script that retrieves data from 3 tables ( bugs, profiles, products) from a MySQL database called bugs and display them in an excel sheet report.
I always get when trying to test it " 500 Internal Server Error - The server encountered an internal error or misconfiguration and was unable to complete your request."
Can somebody help me please.
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |