Let's imagine you have an asp.net page in front of you full of input elements, user controls and panels etc. And you are asked to modify a specific textBox and you do not know where that textBox stands in your project. Most of the time I use FireBug and try to see the Id of that element but it is not the best way all the time. So, What is the fastest way you believe that can be used to locate the source file that houses a specific html element in your web project?
I have made an application where I am displaying the .pdf , .doc , .docx files. These files are uploading from an Admin Panel.When user place a mouse pointer on download icon provided in front of every file, it shows the complete path where it’s get saved.I want to avoid this path visibility even when user place mouse on download icon and even if it Inspect an element (as most modern browser will have this functionality).
I have a table in my database, in which a certain field holds the locations of text or doc files (the files are of a transcript for a chat session).
In the Gridview right now i able to show the link locations. But i want to have Hyperlink or Button in the links location in the Transcript Location fields.And on the click of which the txt or doc file opens up in notepad or microsoft word.
At this point only testing to see how this works.. but end result is that i need to copy a file to a new location when the button is clicked. The master file will always be available in 1 directory. The new location will not have this file. I have a very simple line of code below, but doesnt seem to copy the file over. I tried 2 ways.. one is the code below, the other was for the newloc string i didnt have the file name at the end. What am i missing?
I have a third party CMS system that can create forms but can't manage true File upload capabities. I am able to get users brows for thier file and have the value submited to my custom .net code behind page for processing. So I end up with like "C:somefilefoldersomefile.doc".
But on my processing page I want to read this file (like the file uploader) and save it to a location. I tried using the file uploader control (but have it not visible) but realized I can't preset it as I was planning to set it and do the normal processing from there. Is there another way to do this?
I have a virtual web folder that has large number of PDF Files (Leave Forms) submitted over the past 5 years.
The users and other applications have direct references to such files and on some cases, the PDF is referenced as embedded object.
Here is a snapshot of where the PDFs are stored:
So, the direct link to the PDF will look like the following:
[URL]
Becuase the PDFs are stored under a folder under the ASP.NET Web Application, it was a bad idea.
Now, I have to move them all to another location which is simply a virtual folder outside the Web Application.
All Leave PDF Forms have Unique URLs which is:
"SessionID" + "/" + "Leave-userid-start-date.pdf"
So, I need to replace the above link with the following after I move the PDF Files. I want the replacement to happen at the time it is requested from the Client Browser. The new URL will look like the following:
[URL]
So, whether it is requester from IE from any other Object Tag or similar, then the input URL should be replaced with the new URL as shown above.
Does anyone know how this is possible? I can retrieve the file, but I cannot figure out or find anywhere online how to prompt the user where he/she wants to download the file to.
Can i retrict the windows dialog to select only files from the selected folder and avoid to navigate from another folders?i am selecting from server side.
I am trying to create strogly typed datasets for my project. When I right click on the xsd file that I need to generate a strongly typed dataset for I can't find the 'Advanced' properties as described in the below article (almost half way down)[URL]As I do not see the Advanced properties option I can't find the 'Custom Tool' property/option to set its value to 'MSDatasetGenerator'. Do I have to install some kind of patch on my VS 2005?
MS webcast event "Quality Assurance in Visual Studio Team System 2010" * # 1032443491 happens Eastern DST 14:30 today.
The registration e-mail gives a confirmation number but does not specify the "Location" server value for the "Microsoft Office Live Meeting" "Join a scheduled meeting ..." dialog. How do I connect to this meeting?[URL]
I just want to select some file and get it location as a string.
I want that when I click in the button upload, that some panel will appeared and I just select the file that I want and get from there the location of the file. I saw that I need to use
using System.Windows.Forms;
but when i write it i saw an erorr
Error 9 The type or namespace name 'Windows' does not exist in the namespace 'System' (are you missing an assembly reference?) C:WebApplication1WebApplication1WebForm1.aspx.cs 15 14 WebApplication1
I have a controller that returns an image for a given parameter (productID). The image for a product is loaded from the database, but if the product is new, then there is no database record, or perhaps the image is null. In that case, I need to show an image that indicates that no image has been uploaded (e.g., a red X). The code to get the image from the database is straightforward, but the fallback image resides in the ASP.NET MVC application. The problem is, this is fairly generic code, and it will be used with areas later, so I want get the physical location of the file (i.e., "~/Images/noImage.jpb" to full file path). I know how to do this is a normal ASP.NET application, but how do I do this in a controller, in a way that won't break when the application is put in a subfolder?
i want to download file from other website to on my location and i used code below
Dim wc As New System.Net.WebClient wc.DownloadFile(pathUrl, fileName)
PathUrl,fileName both are correct m 100% sure.
after execution of these 2 line my browser progress-bar goes in to wait state like something is retrieving.but file not download any where.what should i do next?
URL....This link shows a demo that let user to put origin and destination then get direction. I want to know how to add a option which is let user to use their current location as origin location (Location from).
Following is my code when user enters hospital name and city, he will be navigated to this page to show location on map. Now I want to get user current location and draw the route between current location and destination. Is there any way to integrate to geocoding and geolocation?
I am trying to save the xml file after modification in a diffrent location. the code is as belowServices.Save(Server.MapPath("~/ResourceFiles/data.xml"))I have given full control permission to the folder. Now sometimes the file saves properly and some times it does not save. OS is Windows 2003 server 64 bit.
I have a web project with a data model defined in an edmx file. The connection string starts like this:
metadata=res://*/;
This has worked fine for a while. But somebody else working on the project created a dll that also uses the entity framework and added it to the bin folder. Now when I try to create my connection there is an error loading the metadata.
Aside from totally changing the way one or both of us is doing things, I wonder if the problem can be fixed if my connection string can be changed to only look for the metadata defined in my edmx file. The problem is, for the life of me I can't find the right syntax to do this. The metadata is embedded in the output assembly, so there are no physical metadata files to point to. How exactly should I specify the metadata location in the connection string?
i have successfully deploy my reports to our SQL reportserver and i was able to display it in a reportviewer in my site. but my problem is my reports is requiring a parameter to display the report, at first the parameterPrompt is were i manually encode the parameter value, but i need to dynamically pass the parameter value without manually encoding it in the parameterPrompt.