ASP.NET

Moderators: None (Apply to moderate this forum)
Number of threads: 1733
Number of posts: 3304

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Need Database Script for Substitution Posted by jlhill on 25 Jun 2008 at 6:03 AM
I have a website, written in ASP .Net & C#, and I am using a Substitution to display the contents of an Excel spreadsheet. The page consists of a DetailsView with paging enabled; I need to coordinate the file shown in the substitution with the record currently displayed in the DetailsView. I have the filename stored in the same table as the contents of the DetailsView, but what I can't figure out is how to get that filename and display it in the Substitution.

Currently, I have it written as

<asp:Substitution runat="server" ID="Substitution1" Visible="False" MethodName="<%Response.WriteFile("C:\\Domains\\nautikakennels.com\\wwwroot\\pedigrees\\SterlingPedigree.htm"); %>" />


I was thinking about writing a SCRIPT tag in the page, but I'm not sure how to do that either...I need to be able to pull the filename from the table, AND if the user uploads a new file, to add it in the database record with the appropriate primary key (to match what is currently displayed in the DetailsView).

Please HELP!

Thanks!




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.