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


Top 5 Contributors of the Month
ffttt
Post New Web Links

Keep user from clicking verification link again

Posted By:      Posted Date: December 04, 2010    Points: 0   Category :ASP.Net
 

I'm using the following code to send an email verification link (from the security tutorials).  How would I modify the code below so that if the user has already clicke the verification link, it will display "account already verified" and redirect them to the login page?

  1. using System;  
  2. using System.Web.Security;  
  3.   
  4. public partial class Verification : System.Web.UI.Page  
  5. {  
  6.     protected void Page_Load(object sender, EventArgs e)  
  7.     {  
  8.         if (string.IsNullOrEmpty(Request.QueryString["ID"]))  
  9.             StatusMessage.Text = "The UserId was not included


    View Complete Post


More Related Resource Links

Redirecting to custom page while clicking on the user/group browse button

  
Hi, i have created a custom visual web part in visual studio 2010 and i deployed it into sharepoint site by creating a new page in my site. The custom page gets the data of users/groups from database and pass the users to the people picker in sharepoint.Here my question i have a document library where we upload document and get the users page popup that consists of people picker and a user/group browse button.when i click on the (book image button)browse button it will redirect to the user and group search page but here i need to replace my custom  user/group search page with the default one so please help me how to redirect to the custom page by clicking on the user/group browse button,and i need to pass the selected users to the people picker text box........please give me some solution whether this can be done or not if possibe please send me the link or some sample code how to do this   thank you.

Clicking on "Shared Documents" gives link to download instead of opening document library

  
Hi, I hope someone can help! All of a sudden (I don't know if someone has changed something!), whenever anone clicks on a link to open the "shared documents" document library in a specific site within our sharepoint site, instead of opening the document library, it instead gives a download dialog for a zip "AllItems.aspx" as a zip file. Anyone got any iteas what could have gone wrong and how to correct the issue?   Many thanks for any help!

add user login name to a link on a page

  
Hi guys, Hi guys I have a link to another server on one of my portal pages. I need to add a user login name to it. So link "http://anotherserver" should change to "http://anotherserver/AppsLocalLogin.jsp?username=<username>". I see here 2 parts: 1 - get user login name 2 - add it to link Any ideas?

unexpected error while clicking on document link

  
Hi, To upload 50 MB file, execution time has been changed, and large size document can be uploaded. but, while clicking on the document link to open , it shows 'unexpected error has occured"  and no log entries. Please help me in this.Thanks in advance.

Trigger UpdateProgress by clicking on HTML link

  

I have a UpdateProgress that trigger fine when I click on stuff inside my UpdatePanel.  However I have some regular HTML link ("<a href>") outside of the panel.  How can I reuse the UpdateProgress so when I click on those link, it will show my loading screen?


Document icon and title link in document library don't navigate on click for one user using IE8

  

On a pretty vanilla SharePoint document library, a particular user browsing with IE8 can click on the document icon or the title link for a Word document but nothing happens.  Other document types were not tested, so I can't say if it was specific to Word documents. The user can however pull up the menu at the right of the title and select "Open in Microsoft Office Word" which will open the document in Word and is then able to modify and save the document.  The behavior has not been observed from other users using IE8.  I've reviewed the users Internet Options settings and didn't see anything out of the ordinary and tried disabling pop-up blocker and other potentially interfering features without changing the observed behavior.  The user is from a different location and his configuration may or may not represent the stock configuration at that site, so I can't dismiss it without determining whether it would affect all users at his site.  Word 2007 is installed on the user's machine.

Does this sound familiar?  Any suggestions for troubleshooting?


Error when clicking on servers in farm link unders Operations in Central Adminstration

  

Hi All,

I have below error message when click on servers in farm. Any idea how to resolve this. Thanks in advance! This is in WSS3.0

Object reference not set to an instance of an object.   at Microsoft.SharePoint.Administration.SPDatabase.get_Server()
   at Microsoft.SharePoint.ApplicationPages.FarmServersPage.get_ConfigurationDatabaseServer()
   at ASP._admin_farmservers_aspx.__Render__control8(HtmlTextWriter __w, Control parameterContainer) in c:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\ADMIN\FarmServers.aspx:line 27
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.Control.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Contro

Hide SharePoint Ribbon for anonymous user (Not the Sign In Link)

  

Hi,

We need to hide the Sharepoint 2010 ribbon for anonymous users. But we should have the Sign In Link (which is a part of the Ribbon, I believe). Please let me know the steps for this.

The Sharepoint site has been setup for custom form based authentication.

Thanks,

Aritra Saha.


User clicking on dynamic controls ????

  

With this code:

  private void Form1_MouseClick(object sender, MouseEventArgs e)

  {

   Size imageSize = new Size(17, 17);



   if (e.Button == MouseButtons.Left)

   {

    PictureBox spor = new PictureBox();

    spor.Image = sporType;

    spor.Size = imageSize;

    spor.Location = new Point(imageSize.Width * (e.Location.X / imageSize.Width), imageSize.Height * (e.Location.Y / imageSize.Height));

    this.Controls.Add(spor);

   }

  }



the user can insert controls - lots of different pictures in pictureboxe - on a form.

If the user clicks on one of them, I want to do some things with that particular picturebox - delete it or change the image.

How can I know WHEN and WITCH of them the user clicks on ?


Best regards KSor, Denmark

HyperLinkField Javascript DispEx: clicking link shows Read Only/Edit dialog

  

I have a web part that uses an SPGridView to display the documents that match previously selected criteria.

The user needs to see the 'Read Only / Edit' dialog that is displayed when a document is selected directly from the document library.

My research shows that I need to call the Javascript DispEx function somehow. How do I do this in the HyperLinkField setup? Can I somehow call it in the DataNavigateURLFormatString? This code is my latest attempt (which doesn't work). The 'onclick=' appears in the hyperlink.

 Dim hfTitle As New HyperLinkField()
            hfTitle.DataTextField = "name"
            hfTitle.DataNavigateUrlFields = URL
            hfTitle.DataNavigateUrlFormatString = _
"<a onclick=" & Chr(34) & "return DispEx(this,event,'TRUE','FALSE','FALSE','SharePoint.OpenDocuments.2','0','SharePoint.OpenDocuments','','','','1','1','0','0x7fffffffffffffff')" & _
Chr(34) & "href={0}"

            hfTitle.HeaderText = "Name"
            hfTi

How to Disable Add all authenticated users link in Add user page of Sharepoint

  

Hi

I want to disable the link "Add all authenticated users " appearing on "Add user" page. Is there a way to disable or remove this link from the "add user" page.

I referred a blog http://sfguyalex.blogspot.com/2008/08/all-authenticated-users-please-stand-up.html where it mentions to remove the link by editing page in 12 hive AclInv.aspx.

Before doing that, is there any way thru configuration I stop users by clicking on this link?

Regards,

RK


Radhakrishna

How to avoid page flicker when clicking on a link

  

Hi I have noticed that many new modern websites (and templates like themforest templates) are being built without any page flicker.

What I mean by page flicker is that when you click on a link the hole screen flicker and then the new page is retrieved and viewed.  

Here are some examples of these new sites (templates) that do not have any page flicker.

I would like to know to make a website like above.

I do realize that it must be ajax or javascript. However what I would like is some code.

Thanks for reading.


Site Users Webpart - Add New User link Issue

  

Hi All,

We are using SharePoint OOTB Site Users webpart to display all the users in the respectives SharePoint groups. Its working fine. But, when we logged in as a user who has a member of visitors or members SharePoint groups, the user can able to see the "Add New User" link. Eventually, the link should not be displayed for members and visitors group.

Could any one face this issue? Is this bug in the SharePoint itself?

Kindly suggest.

Thanks

Chandrasekaran C N

 


Verification Link and Add to Group

  

I'm using the code from the Security turorials for sending an email with a verification link.  When the user clicks the link, the below code-behind will make the account active.  Can someone show me how to change the below code to add the user to the group "Members" when they click the link?  Thanks.

using System;
using System.Web.Security;

public partial class Verification : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (string.IsNullOrEmpty(Request.QueryString["ID"]))
            StatusMessage.Text = "The UserId was not included in the querystring...";
        else
        {
            Guid userId;

            try
            {
                userId = new Guid(Request.QueryString["ID"]);
            }
            catch
            {
                StatusMessage.Text = "The UserId passed into the querystring is not in the proper format...";
                return;
            }

            MembershipUser usr = Membership.GetUser(userId);
            if (usr == null)
                StatusMessage.Text = "User account could not be found...";
            else
            {
                // Approve the user
                usr.IsApproved = true;
                
                Membership.UpdateUser(usr);

sp2010 user profile service starting, started, two different status in the link, how to fix

  
when click application management-service applications-manage service applications see User Profile service Application STARTING, when click on it, get error:

Error

An unexpected error has occurred.

 

Troubleshoot issues with Microsoft SharePoint Foundation.

Correlation ID: 42dd77a3-3335-4472-bc38-808b2021c1f2

Date and Time: 4/8/2011 10:52:34 AM

 

however, when click on services on server, see User Profile service STARTED.


How to create Word Verification where user type the characters see in the picture

  

Hi There:

I am not too sure what it call; however, I had seen many web site registration system had word verification (e.g gmail registration for new user) where user had to  type the characters see in the picture.

Anyone has idea how to implment this ? Or if there is tool our there can generate this as widget ? or AddOn components onto the ASP.Net page ?

Please advise.

QT

 


put link in every user mysite

  

Hi

I want to put link in every user mysite, that when user click on it redirect to the link.

How I can this for all users my site?

Thanx
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