ContactForm.ascx.cs auto-populate fields

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
1/9/2007 2:02:27 PM
Gravatar
Total Posts 80

ContactForm.ascx.cs auto-populate fields

It's convienent to auto-populate the "your name" and "your email address" fields if a user is logged in because the site already has the information. I added the following lines to ContactForm.ascx.cs at line 89:

            SiteUser siteUser = SiteUtils.GetCurrentSiteUser();
            if (siteUser != null)
            {
                this.txtEmail.Text = siteUser.Email;
                this.txtName.Text = siteUser.Name;
            }   

-Jesse
1/10/2007 8:08:30 AM
Gravatar
Total Posts 18439

Re: ContactForm.ascx.cs auto-populate fields

Good idea! and nice low hanging fruit 

Joe
You must sign in to post in the forums. This thread is closed to new posts.