|
I think this is the problem with Trust level.
The application requires Full / Medium trust level while you are running it in Low Trust level.
Open your web.config and add
<trust level="Medium" originUrl="" /> to your <system.web> section.
|
|
|
|
|
hello all
I have a question.
My website has fileupload control that everyone can send data as doc,jpg and etc. Now I want to know that when they upload their files, where were these files go? it means that the transferred files go to the internet and I should download them to access them or these files send to my computer directly and I shouldn't connect to internet to see uploaded files.
For example suppose that a person whose name is FIRST upload a word file(doc) for me in my site. now I want to access to it to read it. what should I do?
Should I connect to the server that I buy my host from it and download that file? or that file send to my hard drive directly and it's in my computer.
Does it have any relation to ftp? if it does please explain for me about ftp?
excuse me for low English and long text.
modified on Sunday, September 27, 2009 6:44 AM
|
|
|
|
|
hasani2007 wrote: Now I want to know that when they upload their files, where were these files go?
The file will save to your server on the path where you have mentioned in your code. I guess you used some thing like,
FileUpload1.SaveAs(filepath);
Where filepath is server path location. Make sure when you host the site on IIS, you need to give the proper persmission to that folder for giving user to write access permission. It will normally work from VS Studio as VC Intergrated ASP.NET Enginge having full rights to write on Local Disk, but when you will host on IIS you need to setup the permission.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hasaini wrote: I shouldn't connect to internet to see uploaded files.
Did You Get the Question.
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
hasani2007 wrote: Now I want to know that when they upload their files, where were these files go?
It Depends Upon The Code.Where You are go to save files Is it Database or Map Path
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
hasani2007 wrote: download them to access them or these files send to my computer directly and I shouldn't connect to internet to see uploaded files.
Does it have any relation to ftp? if it does please explain for me about ftp?
Can You Explain this part in brief..!
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Thanks for your response.
I edit my question by an example.
could you explain for me what is ftp and what does it do?
sincerely
|
|
|
|
|
Use FileZilla Software Tht U connect to the site and U can See all the file in the folder stucture and You Can Access the files
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Hi!
I have database of movies and if there is available movies, someone (member) can borow it. I need to keep track of how many more movies is available so when someone returns a movie I increase the number of available movies by one. I have a gridview of borowed movies and I can click on checkbox if some movie is returned. My question is how do I update database to increase number of available movies (for example Matrix) by one when I check "movie returned" checkbox in gridview? Is there some easy way? I also need to search through a movie database and display names and how many movies is available for each movie (I need to display it in gridview). I know how to search for a movie but don't know sql command that will display field of movie availability.
|
|
|
|
|
robotz wrote: Is there some easy way?
Yes, it's called SQL. This is a very simple SQL statement.
robotz wrote: I also need to search through a movie database and display names and how many movies is available for each movie (I need to display it in gridview)
OK, so once you do the search, you need to do a join to whatever table tells you how many movies you have on hand, that's basically it. The specifics depend on the layout of the DB, but it's all still SQL 101.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: Yes, it's called SQL. This is a very simple SQL statement.
Can you tell me this statement?
if checkbox is checked (movie returned) then number of available movies is increased by one
else number of available movies is decreased by one
How to wrote that in sql? Do I need to combine UPDATE and SELECT somehow?
|
|
|
|
|
I can't tell you the statement without seeing the db. But yes, you'd do a select to get the old value, add one and update the column to contain that value.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi all,
I have a problem. The debugger in VS1.1 is not hitting the breakpoint. I have correct configuration settings (set to Debug) under the Project Properties and also debug attribute is set to true in config file. When the application is built and the output is rendered in the browser the application gets detached and enven can be rebuilt and run again. Can any one guide me whats the issue?
Thanks in advance.
Safvi
|
|
|
|
|
Are you using Windows Vista ?
Parwej Ahamad
ahamad.parwej@gmail.com
|
|
|
|
|
no i am using XP service pack 2. Thnaks for the reply.
Safvi
|
|
|
|
|
Do you have multiple framework version on your machine?
Follow the below instruction-
If Anonymous is on, then the app is running under the ASPNET account (or
possibly Network Service). These accounts (and add IUSR_ while you're
there) should also be in the Debuggers group.
Or
simply turn off Anonymous. If your web server is not your desktop, then try
turning on Basic. Then the application will be running under your user
context.
Parwej Ahamad
ahamad.parwej@gmail.com
|
|
|
|
|
yes i do have multiple dot net frameworks on my mechine.
i turned off Anonymous but it did not work. How to put a certain account under Debuggers group. i m using a Windows XP and the application is running on locahost.
Thanks,
Safvi
|
|
|
|
|
|
Does anyone know of a .NET solution to reading data from another website and updating data on that website? For example, there's a fantasy sports website that can read & display data about a persons "Yahoo!" fantasy sports team and send updates back to Yahoo. They also do this for about 20 other fantasy sports websites.
As you can see in this image (http://97.74.54.51/images/image1.jpg), they ask for your Yahoo account info. They then somehow retrieve your Yahoo data and display it onto their page (http://97.74.54.51/images/image2.jpg).
Does anyone know how this can be done or what programming methods I should be looking into to do this?
Thanks.
|
|
|
|
|
If they have your info, they can obviously log into your account. I'd assume there's a webservice interface they can use. The other option is screen scraping, they request a page, and then parse it for data.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Something like this[^]
only two letters away from being an asset
|
|
|
|
|
As CG Said, I think Web Service is the best option for it.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
I am trying to create an ASP.NET app using C# in VS 2005. I have a number of fixed Panels in the HTML, that I dynamically populate with server controls as the user utilizes the application.
I have noticed that as I populate some of the panels dynamically, the controls render okay. But I do View Source in Internet Explorer and the generate HTML markup for the dynamically-generated controls is no where to be found in the source. However, they are there, rendered on the page.
Does that make sense? Shouldn't I always be able to see the generated HTML from ASP.NET?
Thanks,
Mark
|
|
|
|
|
If you are using normal html controls like div, input etc, it will be directly rendered as you made. The id of those controls might change sometimes.
On the other hand asp.net controls renders differently. The asp.net controls renders normal html with some javascript and css etc to handle them. For instance :
If you write
<asp:label> it will render it as <span>
This is because browser knows nothing other than HTML. So to work in Browsers the server side Handlers should render proper html.
Moreover if you are using Masterpage, the Id of each control will be placed in such a way that its name contains the ContentPlaceholder name. This is just to ensure that there is no ambiguity between Masterpage controls and Content page controls. You can get the id generated for each control in the server side by calling its ClientId.
Try to look carefully on your code.. .I think you will find them hidden somewhere.
|
|
|
|
|
Greetings,
I and my colleagues are developing a project in Visual Studio 2008 using ASP.Net C# language and we wanna share the same code-behind between 2 aspx pages. we found 2 methods to apply this:
1- Dealing with the page directive properties: change the "Inherits"
value to the base class.
2- Creating a common class: use it as base which other 2 pages inherit
from it and be considered as derived classes.
now, we're looking for using the best method to implement our goal, share code-behind between multiple aspx pages.
can anybody provide us with his experience in this?
your cooperation is highly appreciated.
Thanks.
|
|
|
|