Security :: Upload Mp3 And Photo And Retrieve On "Profile"?
Jan 31, 2010
I'm actually a little lost here. I'm doing a Custom Membership Portal with LINQ to SQL. I created my custom tables and integrated those with the default aspnet tables (everything on my custom database). I'm using Visual Web Developer 2008 and SQL Server 2008 ExpressFor example... creating a new user, i pass the userID and email to my custom user table:
I just created a profile page were users can enter their name current location age , etc. I want users profile info be created together with their profile photo on the top left hand corner. Ive created a database for the profile but how to upload a profile pic using either file upload or any other method.
I am new to asp.net's membership controls. I am trying to figure out how to make a public profile page that will display information about a site member to other users. I thought I would be able to use the profile class and just pass in a parameter such as user name. But I tried:
Profile.GetProfile("username") 'Where username = name of profile I want to retrieve Response.Write(Profile.Title) Response.Write(Profile.Company)
However, if the user is logged in this codee just brings back their details, not those of the username requested. What am I doing wrong?
i want to uplod no.of photos in my project, e.g. hotel i want to upload photos of hotel and when i search for that hotel i can saw that photos into the details ofthat hotel.(i want to store that photos into my project's "Images" folder)
how can i do this using javascript, without javascript,using fileupload or without fileupload control...
Once I upload an image to the server (asp.net), I need to display this uploaded image for cropping. What is the best-practice to achieve the same(ie how do I send te image back to the client for display)? . I have tried giving a preview option before upload. But this does not seem to be working for all images. See here
Addition :
[I know JCrop is available , but the point of the question is how to send the image back ofr display]
I'm building a site.In which i'll submit some information into database including picture and banner. How do i add a asp picture add control in submit information form.
I am logged in as user1, and while creating a user in which I have additional information which would store first and last name into the profile database. I have the following code
[Code]....
But because I just have profile like that, it is updating the profile of user1 not the new user i just created
Private Function GetAuthenticateToken() As String Dim flickr As New Flickr("9855637e1efcb0a7245c2dfb5523774b", "6634b31122809bd7") Dim frob As String = flickr.AuthGetFrob() Return flickr.AuthCalcUrl(frob, AuthLevel.Write)
I have a very simple WCF Web Service it has methods like the ones below. It should be said that my webservice is very simple, I didn't do any configuration. Now I want to upload and download photos like .jpg or .jpeg files. But my question to you how shall I write the methods to be able to download and upload photo files to the WCF web service from my client?
I h one problem, i need to upload many photo at a time using file uploader control in asp.net, only one photo I m able to upload, but problem is like after selecting course all records are coming, i need to attach one one file uploader (photo) option with all records so that after clicking[after selecting photo] on save button all the records [photos] h to be save in database, can U people plz. tell me what to do , how , for that do I need to make user control.
in asp.net i want the user to chose a photo to upload from their HD . then i want the uploaded photo displayed and an hyperlink option to save or reject this photo. if accepted the filename will be stored in a DB.
the problem is displaying the photo before it has been saved.
I display strFileName which works on my PC but not on my laptop.
I want to pass an asp.net membership user name to a subroutine and retrieve the profile property named FullName for that user, how can i achive this in vb.net?
i,m workign on mailing project , and in a user table i added the UserImage feild in the user table and i uploaded the images to the database as bytes but it make the size of the database too large so i wanna upload images for users to a folders but link them to database table to use them when i make queries to retrive user image or user data like (Request.Querystring["ID"])
I'm making another attempt to find out how to use a different profile in the web application. I though it would be quite simple. but couldn't find an answer anywhere.
All I need to know is how to call "i90ProfileProvider" instead of default "i90PartnerProfileProvider" in C# or VB.
1. i use the profile feature and i noticed that the profile cant work with anonymus users . and i can understand why now it leads me to a nother problem , in the creatUserWizard i added another step wich take the personal details of the user like firstName LastName and ect... and i wanted to store the details in the profile feature...
but it wont pass me to the second step it just give me an erorr that the service can work with anonymus or something like that .
2. i stored a datetime detail in the profile and when i tried to get it it gave me the date + the hour i put the date like : 29/12/1989 18:18:00 and i want to see just the date ...
I am working on asp.net web application (VB) where the user uploads his images in the web server and then he can retrieve those images by using gridview with paging.
Everytime as the user uploads new images, the code should create new folder.
I am making a Human resource Management system in which i have to make employee profiles, there is a page in which i am entering employee name and uploading a rofile picture and i want the next page to show that image on a left corner of every employee...after clicking on the submit button of the previous page !
I have an MVC Web App project. Because the Profile object is only available to website apps, I've written my own Profile class that inherits from ProfileBase (as described in various places around the web). I'm also using the AppFabric cache. I would like to cache the logged in user's Profile object so that every time I access the Profile, it comes from the cache and not the aspnet database tables. However, I've hit a problem. When I try to add the Profile to the AppFabric cache, I get this error: The use of type 'System.Configuration.SettingsContext' as a get-only collection is not supported with NetDataContractSerializer. Consider marking the type with the CollectionDataContractAttribute attribute or the SerializableAttribute attribute or adding a setter to the property. I've noticed that ProfileBase inherits from SettingsBase, which indeed contains a read-only property called "Context" of type SettingsContext. I've tried for a few hours now to get my Profile:ProfileBase to serialize, but to no avail.
I am useing asp.net membership to store my users and under each users profile there is a field for their supervisor. I would like to get a list of all the users with the supervisor "Jon Doe". Is there an easy way to do this or would I just have to loop through each user and see if there supervisor = "Jon Doe" then if it is store there username in a list?