What Is The Path To Document In Resources Folder
Mar 29, 2010I have an xml document in a folder called resources in my solution.
what is the path to the document, so my code looks something like this
[Code]....
I have an xml document in a folder called resources in my solution.
what is the path to the document, so my code looks something like this
[Code]....
Is there any control which has to browse folder path alone instead of selecting folder path + file ?any server side or client side control ?
View 1 RepliesExsits any way to modify the temporary folder path returned by System.IO.Path.GetTempPath() method?
My asp.net application run under iis 7.
I have successfully created my own virtual path provider to load a user control embedded in an assembly. The problem I am facing is I cannot use any embedded string resource in MyUserControl.ascx:
<Label runat="server" ID="MyLabel" Text="<%Resources: SR, Welcome%>"/>
This will cause IIS to throw a compilation exception at runtime saying the resource SR.Welcome is not found. I guess ASP.NET runtime looks for the string resource SR in the main assembly instead of the one that contains my user control.
I am new to ajax. here's the problem I have. in my bin folder, I have so many different copies of AjaxControlToolkit.resources.dll in different languages.
/ar/AjaxControlToolkit.resources.dll
/de/AjaxControlToolkit.resources.dll
/es/AjaxControlToolkit.resources.dll
.....
my web site is english only. How do i get rid of those dll files in another language.
I have my site on a shared hoster.all files are in a folder called httpdocs/So i have folders like this
httpdocs/resources
httpdocs/app_data
httpdocs/controls
httpdocs/script
All folders default to read only.The resources file I have re set to modify as read/writeHow can I code vb.net to show me that the resources folder is writeable, and NOT read only. So I am after the status of the folder/directory as to its modification properties.
I have added .CSS file in Resources folder of the project.In the same way i can add Images or any other files.But i am unable to use those files in Server Control Project.How to apply CssClass property to any predefined server control to the css file that is stored in the Resources folder ?
how to use those Resource files .
I'm encountered a problem when upload the file to my asp.net folder.I'm using fileupload control
<input
type="file"
ID="FileUpload"
[code]...
How can i retrieve a document saved in system folder whose path is stored in sql db...
View 3 Repliesi use several exes for my asp.net prj. they include ffmpeg and imagemagik. I know i can easily put this in my path but i may want to switch between different version in different builds. How do i add the path based on my exe? doing it in code is ok. I'm thinking about using a prefix path as a workaround and just set the prefix path to the version i want.
View 1 RepliesHow do you specify the path to a folder in you project. I have a Documents folder in my project. How would I refer to the path ie "~Documents"; instead of on the C drive ie
StreamWriter sw = new StreamWriter("C:\Test.txt");
I am Generating a Word Document by using Following Code:
StringBuilder str1HTMLContent = new StringBuilder();
str1HTMLContent.Append("<html>".ToString());
str1HTMLContent.Append("<body>".ToString()); [code]....
The word file is Created and popup on windows .How can i save this created word Document on Database, or on server folder?
I am using File upload control to upload image and store images in database
When i browse the image
My file path is D:sampleSlide1.JPG
How to i get the folder name ie 'sample' from above path?
I have an application where I export some crystal reports to a shared folder like:
Code:
Dim ReportFilePath As String = "XXXXXAutoLoad ReportsReports"
DiskOpts.DiskFileName = ReportFilePath & "" & ReportName
myCrystalReport1.ExportOptions.DestinationOptions = DiskOpts
myCrystalReport1.Export()
My question is: I looks it uses the machine account to access this folder like:
domainvgiwpw03-xxx$ (name of the server is vgiwpw03-xxx2).
Is there a way to programmatically specify which account to use accessing the shared folder? We do not like to use machine accounts as this may change if we switch servers etc.
Is the Content folder the root folder? I mean does http://localhost/ point to Content or is it something else?
I have a file named dummyIcon.png inside Content/images/temp folder. How do I locate it from my domain layer (which is a Code Library project)? What is the best practice of displaying images in ASP.NET MVC? Should I store a path to the image in the database (which I personally prefer), or do I save a byte array and return it to the view?
In ASP.NET MVC 2, how can I get the absolute path to the Content folder from within a model?I'm trying to check for the existence of a file by calling IO.File.Exists. So, I need to convert the "~ContentisFile.png" relative path to an absolute path.I tried getting the application's directory path by calling My.Application.Info.DirectoryPath but that returned some temporary folder that doesn't contain the Content folder.
View 2 RepliesHow to locate the path of other drive's folder in server?
For ex:
The application is there in 'C:SomeFolder', now I want to export a file to the drive 'D:AnotherFolder' on the server. How can I achieve this?
I am editing a code to change the path of the image uplod folder,
There is a form for uploading an banner to the site, which has table of all the banners uploaded with image path and file path for downloads.
The form has 2 parts, one for the image uploading and the other for banner link updating.
The banner link updating has a dropdownlist of all the images available in the folder. The imagepath is uploaded via sql
I have changed the sql imagepath, but can find where is the code for uploading to a folder, so that i can change, also, how to change the dropdownlist to read from the new folder.
the below is the codes:
[Code]....
and its cs:
[Code]....
I got creating album feature, it require user to enter data of new album name, description, and upload a profile picture. I can do everthing perfectly fine, but wat i wan to do is, if the user did not select any file to upload, which means they do not wan to put a profile pic for that album, i wan to take the "noimage.gif" from the folder and set it to the FileUpload path, because i wanted to store that image into database, therefore i need to retrieve that image first and then convert it into bitmap and then to bytes with a method im using now
View 7 Replies1) I have a text box and a button. When i chick the buttonn i need to get the browse option so that i can browse all folders in my system, after that if i select the folder the folder path should be displayed in TextBox. like C:/Users/Tom/ in textbox.
2) Now i have a list box it should display all the .docx files present in the folder.
I am using WebForms (not Winforms) ..
I have read many articles on FileUploadControl but it does not solve mine... mine is a little different task...
how to get the folder path on button click..
I have the following filepath
D:\_My_Project\Projects\My\MyWebApplication\UserImages\10b1abd6-0d3c-4fb0-928a-60cbf9b7a5d7\Images\
and I was wondering if there are any build in methods in the .net framework that would give me something like this
~/UserImages/10b1abd6-0d3c-4fb0-928a-60cbf9b7a5d7/Images/
I have created one windows form application and I want to get file path which is present in debug folder,How to get that.from the application i am calling another Windows form aplication by exiting first aplication using Application.exit.And in second aplication i want to get the file path present in debug folder of that aplication.
View 1 RepliesI am building a Web Forms application, it involves a database, so I have some sort of login.
I have put all the webforms to do with Account Login and Update into their own separate folder. The folder is called { Account } in the application root.
My Site.Master is also at the application root, along with other files (e.g. Default.aspx .. etc).
This image file path breaks when I view the pages inside the Account Folder:
[Code]....
I understand why it is happening, but I can't figure out how to avoid this problem, unless I put the Master page along with all the other files into a folder too.
i have some problem here, i am working in web page, there is some required for folder path when select file in fileupload control,
like in IE FileUpload1.PostedFile.FileName, i can get full path
but not in chrome and Mozilla browsers,
any one know how to do it...
i am sending mail message using smtp,,,i want to send mail message with attachments....but i do not know how to set path.
below is code :
System.Net.Mail.Attachment attachment; attachment = new System.Net.Mail.Attachment("how to set path here"); message.Attachments.Add(attachment);