.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
Imran Ghani
Post New Web Links

How to make validation at userprofile picture at sharepoint 2010

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :C#
 

Hello,

Any one please give me suggestion.

I want to make validation for userprofile picture at sharepoint 2010 when user upload their profile picture ...

I want t check the dimension of image ... i want user to upload 219*145 image.

at sharepoint, EditProfile.aspx and selectpicture2.aspx are used for image upload at profile.

the "view source" of the EditProfile.aspx, i see these


function SelectUserImage() {

var href = '\u002fmy\u002f_layouts\u002fSelectPicture2.aspx?Type=User\u0026accountname=cvpphg\u00255Cadministrator';

var dialogOptions = {width:460, height:240};

SP.UI.ModalDialog.commonModalDialogOpen(href, dialogOptions, SelectUserImageCallback, null);

}



function SelectUserImageCallback(dialogResult, ret)

{


if (!ret) return;

var img = document.getElementById('ctl00_PlaceHolderMain_PictureURLImage');

var clear = document.getElementById('ctl00_PlaceHolderMain_PictureURLClearImage');

var pictureVal = document.getElementById('ctl00$PlaceHolderMain$ProfileEditorEditPictureURL');

if(ret=='__RESET__')

{

img.src = '\u002f_layouts\u002fimages\u002fO14_person_placeHolder_96.png';

img.style.width = 'auto';

pictureVal.value = ';

clear.style.display = 'none';

}


View Complete Post


More Related Resource Links

Video: Field and List Item Validation in SharePoint 2010

  
SharePoint supports the ability to create Excel-like field validation formulas to validate field data in a list, which greatly reduces the amount of custom code that a developer must create and deploy. (Length: 1:44)

Microsoft Office Picture manager is not launched in sharepoint 2010 picture library

  
Hi ? I am stuck up with :? Microsoft Office Picture manager is not launched in sharepoint 2010 picture library The description is : ? All the photos are stored in a picture library in the root of the My Sites called User Photos.? They are then stored in a folder called Profile Pictures. Navigate to your profile home page, delete default.aspx and type in ‘/user photos/’? (for example   ? But When I tried the edit option : Open Picture in a Picture Editor The page is blank : Microsoft Office Picture manager is not launched. ? Kindly help , if any service or step is missing. http://sp2010/my/user photos/).? This will take you to the root and then navigate to the folder Profile Pictures.http://sp2010/my/user photos/)

Client side validation using Client OM in sharepoint 2010

  
Hi, Can we use Client Object Model for Client side validation? Suppose, i have a SharePoint 2010 List. While adding a new item in that list, i want to check for Title is already available or not, person has posted any item earlier or not..that kind of stuff. Could i check this at client side rather than ItemAdding Event, so that i can reduce the network traffic? Thanks in advanced. Hardik Shah Solution Developer.

Sharepoint 2010: Editing My Profile:Choose Picture gives errors

  
Hi, I've got the User Profile Service Application up and running.  When I try to add my picture to my Profile by clicking on the Choose Picture button, it gives an error.  Any ideas?   Thanks.

Is there an Sharepoint Server 2010 add-on download to make Adobe Acrobat Reader....readable?

  
I'd like to be able to make the occasional Adobe Acrobat Reader document available for viewing on our Sharepoint Server 2010.  How do I do this?

formula validation setting on column sharepoint 2010

  
Hi, Hi,  I have a two fields(mailid,cost,mailid2), i need a list validation of mailIds if already existing  mails three time I need a validation for new request , i need a formula for column in validation setting ->formula in SP2010  if mail is already existing validation  i need formula for validation setting for list it's new feature in sharepoint 2010 Regards

SharePoint 201 VS 2010 WF: PersistenceException: The security validation for this page is invalid

  

Setup: Visual studio 2010 SharePoint 2010 Workflow with custom infopath task edit form, with file attachment control. If I attach a file to the infopath task edit form, I got the following error message, though the attachment is saved, but the next task is not created and the current task is not marked as completed either.

09/27/2010 15:34:31.18     w3wp.exe (0x2B88)                           0x2844    SharePoint Foundation             Workflow Infrastructure           88xr    Unexpected    WinWF Internal Error, terminating workflow Id# 04621f32-17d4-439a-883a-7566b96481bb     
09/27/2010 15:34:31.18     w3wp.exe (0x2B88)                           0x2844    SharePoint Foundation             Workflow Infrastructure           98d4    Unexpected    System.Workflow.Runtime.Hosting.Pers

Sharepoint 2010 AD Sync - missing picture from AD to pictureURL

  

Hi all:

I have followed Jie Lie (Technical sharepoint Product Manger) steps in entirety (http://blogs.msdn.com/b/opal/archive/2009/11/19/user-profile-sync-setup-in-sharepoint-server-2010-beta.aspx), my sync with AD is working fine except it is not pulling the pictures in the AD.

Here is my issue, we have photos of all employees stored as domain.xyz.jpg in the custom attribute (emp_pics_2001) with type string, but the picture url type is url (is this the culprit type change), I am using the custom attribute to map the field in the Sharepoint 2010 miis client.

I am using the below url to do the set up: http://goodbadtechnology.blogspot.com/2010/05/setting-up-pictureurl-user-profile.html

i did check the profile db picture url field is NULL, i have all the other values for person except the picture.., I have already wasted more than 2 days in figuring this out

If i just get domain.xyz.jpg pulled to sharepoint, then i can prefix a url in front of it using powershell
I am using a full trusted service account with full permissions to the domain

please help me out..

thank you

Neel

How to make a PerformancePoint dashboard as a web part in sharepoint 2010

  

Hi,

I created a dashboard in PerformancePoint Dashboard designer 2010, now I want to use this dashboard as a web part in my SharePoint web pages with the tool SharePoint designer 2010. how can I make this?

In SharePoint designer, I can only find PerformancePoint report, PerformancePoint scoreboard etc, no web part for insert the dashboard.

waiting for your kindly response...thanks!!!

Regards,

Connie


How to make a PerformancePoint dashboard as a web part in sharepoint 2010

  

Hi,

I created a dashboard in PerformancePoint Dashboard designer 2010, now I want to use this dashboard as a web part in my SharePoint web pages with the tool SharePoint designer 2010. how can I make this?

In SharePoint designer, I can only find PerformancePoint report, PerformancePoint scoreboard etc, no web part for insert the dashboard.

waiting for your kindly response...thanks!!!

Regards,

Connie


How to make Custom SharePoint 2010 Webpart work on MOSS 2007 Environment

  

H

I've built a SharePoint WebPart in SharePoint 2010, using SharePoint Assembly version 14.0.0.0. Now i've to make this Webpart such that i should work on SharePoint 2010 and MOSS 2007. The version no for both the versions are different, so do i need to create separate web-part for both version or is there any other way?

My current webpart is built in env, which has

SharePoint 2010, Windows 7 64 Bit, VS 2010.

Reference is added to SharePoint DLL which is in 14 Hive ISAPI.

 

How can i make this generic, so that i should work on both version, i've not used anything specific which is only in SP2010, its just a simple webpart.

 


Thanks
Akhilesh Nirapure

Migrating Custom Site Definition to SharePoint 2010: Do i need to make any changes to existing site

  

Hi,

I am migrating from SharePoint 2007 to Sharepoint 2010.

We hae 2 custom workflows to be migrated.I have deployed the respective wsp which were used in Sharepoint 2007 site.But it did not help and i got errors.

Do i need to change my site definiton or my wso before deploying the same to Sharepoint 2010

Regards

Ram kiran


How to make my SharePoint 2010 site accessible from internet?

  

I have a sharepoint site on a production server here "http://servername:10500/sites/mysite" which accepts AD accounts - I'd need to make this accessible from internet; how could I do that?

Our admin has mapped our "http://subdomain.company.net" in DNS to point to the above url but I'm getting the following error message:

"Internet Explorer cannot display the webpage"

In SharePoint central administration of the "http://servername:10500" web application, I have added an internal url of "http://subdomain.company.net" for Internet Zone; not sure if I should have done that?

what else do I have to do?

Many thanks.

 

 


Uploading a profile picture in sharepoint 2010 through visual studio

  

hi,

  Is it possible to upload a profile picture in sharepoint2010(mysite) through visual studio(C#) ?'

   If so Could you please share the code.

thanks in advance,

sailaja

 

 


How do you make a a SharePoint 2010 site externally available?

  

I Have a Server 2008 R2 machine and I installed on it SP2010 now I want to make it available externally.

I've rooted the ADSL external IP on "a" port so I can have http://122.1.1.1:8*** external access. How can I now make the server display the content inside SharePoint Server...? I've tried with the Central Administration Mapping tool but did not work Can anyone help me?

Thank you in advance


HOWTO Make a HttpModule for use with SharePoint 2010

  
HOWTO Make a HttpModule for use with SharePoint 2010

I'm trying to make my own custom HttpModule for SharePoint 2010. The only steps I am aware of are as such:

1) Make a class derrived from IHttpModule. 2) Edit web.config, add the following:
  <httpModules>
    <add name="MyClassName" type="MyNameSpace.MyClassName, MyDllName" preCondition="integratedMode"/>
  </httpModules>

3) Edit web.config, add the following under <SafeControls>:
  <SafeControl Assembly="MyDllName" Namespace="MyNameSpace" TypeName="*" Safe="True" AllowRemoteDesigner="True" SafeAgainstScript="True" />

My HttpModule is not invoked at all. No error, even with SharePoint's logs all turned on. Nothing. What am I missing?

SharePoint 2010 - Column Validation (List Level) User Message Missing

  

I first saw this issue being discussed in January 2010 here, but there has not been any response in some time. 

What basically happens is when you set column validation for the list level (not per column) the message that alerts the user that the column does not meet the validation requirements is completely missing.   Both the default message or a custom message do not show up. 

Does anyone know if there is a hotfix for this issue yet?  I would expect more than a year later there would be one, but if so I can't seem to find it.  I would really like to correct this issue as column validation is a nice enhancement over SharePoint 2007.  Thanks in advance for any help.


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend