Actually it sounds like a hyperlink is created (~/getreport.ashx?AttachmentId=0) ... and as long as the data can be viewed, it's all good :)
Thinking that if there were ever additional file types, the ashx file could be modified to include those, as well.
Thanks to Jason for the idea, and...
I am in the process of writing code for uploading PDFs. The page will contain (1) upload control for adding new PDFs and (2) grid that lists current PDFs.
The table in which PDFs will be stored contains fields named AttachmentId (int), Attachment (varbinary(MAX)) and AttachmentFileName...
Mark -- The Javascript error appears only in IE. In Firefox, no error appears, though I did find several listed in the console you suggested. I wasn't sure if it was a browser dependent problem.
Kalisto -- The example from which I've been working does not have an UpdateControl, so I don't have...
I have a gridview, in which there's a notepad icon as an image. When the user mouses over the icon, I want a pop-up to display any notes associated with that record. However, nothing happens.
Gridview code:
<asp:ScriptManager id="ScriptManager1" enablepartialrendering ="true"...
Which is the more efficient method of binding controls (listbox, dropdown list, gridview, etc)?
- Using a SQLDataSource control for each
- Creating a single connection in the codebehind page & using it to retrieve all data
My first instinct is to code everything by hand, but I wanted to take...
Membership.CreateUser takes arguments for username, password, email, password question, and password answer. However, in the current project, we're not using the security question and answer.
Does it matter what is entered for the question & answer? They're required, apparently.
This works...
A gridview contains a list of links, a menu of sorts, for users in an app. Some are external, some are internal. (Aside from the external beginning with "http://" they are also flagged in the database with an IsUrl field.)
We'd like the external links to open in a new window (target = blank)...
This is probably so simple that I'll beat myself repetitively after learning the answer :)
Problem: I have a listbox, lstUrls, that is populated by a dataset. It contains a list of web sites. And there is a button, btnRemove, that attempts to recognize the currently selected record in lstUrls...
I have a gridview that I'd like filtered by the current username.
Its source is a stored procedure, taking one argument, Username (string).
The datasource configuration provides the ability to select from such choices as form control and query string, but I'm not sure how to retrieve the...
Ouch! Yes, that would be something to be mindful of, wouldn't it? :)
What if prior to changing such a value, the user gave notice to users, then went into ASP.NET Configuration and clicked on "Take application offline"?
BTW is there a different way to control application being online or...
Is it possible to write settings to the web.config file?
I'm deploying an app, and the smtp server name will be stored in web.config. I know that if the value changes, the web.config file can be edited per usual. However, I was wondering if this would be something that could be set by the admin...
There's some code I'd like to be executed every x number of seconds.
The only way my web host says it can be done is by putting it in an aspx (or ASP or CFM) page, and they can add it to Windows scheduled tasks. While this is an option, they schedule it to run far less frequently than I'd...
I have an Access 2007 application that "watches" a folder to determine if new files or added, or if existing files are renamed. This uses the .NET FileSystemWatcher class, incorporated into a DLL wrapper named IOLib.
I've downloaded all the code and made it work without error in a VB6 form...
I did a drag and drop into C:\windows\assembly ... and it seems to work just fine now! Thanks!
When deploying on other machines, will a simple copy command accomplish the same result? Or are there other steps that should be taken?
You are correct, I do have VS on the original machine.
The reason this came about in the first place is an error when I run an application referencing the IOLib wrapper.
-2147024894
The system cannot find the file specified
The goal of install.bat is to register the .NET framework DLLs...
I've downloaded some VB code that creates a wrapper for the FileSystemWatcher class in .NET.
http://msdn2.microsoft.com/en-us/library/ms364070(vs.80).aspx
Included was an install.bat file to register everything.
It worked great on one machine. However, on another, I got the following error...
The file is named by user typing it in.
I don't know if a button that commands Acrobat and its scanning process is possible: the idea is right along with what I had in mind initially, but I don't have any idea of how to work with the Acrobat object model, and check for things like user...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.