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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Accounts in Default Template

Posted By:      Posted Date: August 24, 2010    Points: 0   Category :ASP.Net

Hi,  I'm trying to learn in the VS 2010 Express. Using the default template for ASP.Net Website. It starts the web application with an accounts folder. I'm trying to extend the "registration" or "AddUser" utilities. What I'd like to do is modify the registration by adding additional elements (i.e., address, city, ST, zip, etc.). I know I can open the database and modify the Users table and also modify the stored procedure for CreateUser.

My question is:  I don't see any reference in the page code (here's a reprint of the register.aspx.vb) that calls the procedure, or even passes in the variables from the textbox entries from the page. I must be missing something. Can someone clue me how to drill into this template to find the elements like how it communicates with the database. There are a few JQuery files. I am not yet very familiar with JQuery. Is that where I need to look? Thanks for any advice...

Public Class Register
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        RegisterUser.ContinueDestinationPageUrl = Request.QueryString("ReturnUrl")
    End Sub

    Protected Sub RegisterUser_CreatedUser(ByVal sender As Object, ByVal e As EventArgs) Handles RegisterUser.CreatedUser

View Complete Post

More Related Resource Links

Is it possible to change the title bar background and the font style on default template?



Is there any way to change the default top link /title bar picture and the fonts of the title without breaking anything in the layout/structure?

I have changed the theme to Obsedian and I would also like to change the picture of the title bar of this theme and also the font/style of the title, top link bar, menus..etc. Is there a way to do this?

Please note: I am using WSS 3.0 and I am not the Administrator of the sharepoint. I am only the site admin of some sites on this sharepoint. I can do some basic customization using SPD.

Basically, what I am trying to do is that I want to set up a sharepoint site, however I want to make it NOT look like a sharepoint site.Well I know this is possible, but for my case it might be just partially possible due to the limitation that I am not the Site collection admin and hence I do not have direct access to the server itself.

What I want is to hide most of the sharepoint links/menus/bars, etc and use my own buttons/hyperlinks etc .. for user to navigate on the sites.

Thanks in advance for your help/advices.



Fresh VS2010/SP2010 install. Cannot Deploy default BCS template.

Error ocurred in deployment step 'Add Solution': Failed to load receiver assembly 'Microsoft.Office.SharePoint.ClientExtensions, Version is everyone else getting a BCS template to work  ?If you do SharePoint dev and have MSN add me!! punkouter@hotmail.com We can help each other out. My SharePoint Blog ---> http://punkouter.spaces.live.com/

default form template gone

when i create a form library the default template is gone. how can i place the template back?

Custom Webpart in Default forms of a list not coming in new list created by using List Template in S



I added a custom webpart in default editform.aspx of a list and saved it as a template in Sharepoint 2010. Now when I am trying to create a new list by using this custom list template I am not getting the custom webpart in the editform.aspx. Only default form is coming.

Any kind of help will be appreciated.

Calculated column Default Value not retained in site template.


On a new blank site, create a custom list and make these changes to the Title field:

  1. Change the name to Date
  2. Change Required to No
  3. Change Default Value: to Calculated Value
  4. Enter the formula "=TEXT(Today,"d-mmm-yyyy")" so that it defaults to today's date

Save thsi site as a template, then create another site based on this template. Items 1 and 2 above are carried over to the new site but items 3 and 4 revert to the default setting.

Does anyone know how to get around this ... er ... abnomaly?

Custom Webpart in Default forms of a list not coming in new list created by using List Template in S



I added a custom webpart in default editform.aspx of a list and saved it as a template in Sharepoint 2010. Now when I am trying to create a new list by using this custom list template I am not getting the custom webpart in the editform.aspx. Only default form is coming.

Any kind of help will be appreciated.

Provision/Add custom Layout, Master and Default pages in Site Template


I'm attempting to use the onet.xml of a custom Site Template to provision/add (same thing?) a custom Master Page, a Custom Layout page and then reference them in Configurations.

I'm having trouble understanding the steps and order to do this in properly and am getting errors where the Layouts/Master pages cannot be found.  Here is what I have now:

<Module Name="SitesLayout" Url="_catalogs/masterpage" Path="Layouts" RootWebOnly="false">

  <File Url="SitesLayout.aspx" Type="GhostableInLibrary"><Property Name="Title" Value="AEP Sites Layout Template" /></File>


<Module Name="AEPMasterPage" Url="_catalogs/masterpage" RootWebOnly="false">

     <File Url="CustomMaster.master" Type="GhostableInLibrary" IgnoreIfAlreadyExists="true" />


<Module Name="DefaultFunctional" Url="Pages" Path="">

     <File Name="MyDefault.aspx" Url="DefaultOrgFuncHomePage\default.aspx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE">

     <Property Name="Title" Val

create page with default template from master page programmatically


hi, exactly like cms , i want to create page programmatically with this options:

1: page-name

2: add template (master-page)

and etc...

help me .thanks

How to change Default My Site Template

When new user access to SharePoint for the first time and click on MySite (or access to MySiteHost), SharePoint will automatically create the Personal Site. I understand that it will use SPSPERS template (ID = 21). Can we change this default Site Template to other saved site template (that is based on SPSPERS (ID=21)?

I have tried to configure onet.xml of SPSPERS (I am aware that this might not be supported). However, it's very difficult to configure all the webparts and features that are needed for every new site created for users in onet.xml. So my idea is to save one configured personal site as Site Template, and every personal site should use this Site Template as personal site instead. What I have done now, is to manually create the Personal Site based on Site Template (using stsadm -o createsite), and it works perfectly. But it's tough to pre-create every personal site for new users. Is there any way to change the default personal site template?

And 2nd questions, is there any way to set Blog feature automatically created?

No longer have the ability to move webparts to different zones on the default "team site" template

I noticed today that one of the default site templates that i most widely use in sharepoint 2007 -the "Team Site" template when used in sharepoint 2010 i can no longer move webparts on the main home page from one zone to another from the browser in sharepoint 2010, or specify where they should be when creating them.   I am able to do this if i create a blank site, but that would also involve creating all the neccesary document libraries and  other team site lists.  I suppose as a last resort i could make my own template off of the blank site template that is similar to the team site template. but i am curious as to why this has been setup this way, or if anyone else has noticed this behavior

Ryan Klick

How to change Dynamically SPSite Template Default selection


Moderator Note: The original far too long title was in full

"How to change Dynamically SPSite Template Default selection like i have one application page that page should show the site template selected one (this page load am sending Template ID,Tab name) so how should display siteTemplate using Javascript"


Please Replay anybody for my issue still am not able to resolve this issue.

below  code is working when i enable the alert statement(i.e if i remove alert stmt it showing default site template under that tab.

function setCustom()

     var element = document.getElementById("ctl00_PlaceHolderMain_InputFormTemplatePickerControl_ctl00_ctl00_LbWebTemplate");      
     var tempname= document.getElementById("ctl00_PlaceHolderMain_TemplateName").value;  
     var tabs=tempname.split(';')
     var tabslcid="1033&";
     var getTemplates=tabslcid.concat(tabs[1]);   
     var options = element.options;  &nbs

Changing slide libraries default template from .ppt to .pptx


I created a slide library and the default template is PowerPoint .ppt extension, and  I see no option for changing at the time of creation. I need to change the template to .pptx and when I do this I get this error:


"Edit Document" requires a Windows Sharepoint Services compatible application and Microsoft Internet Explorer 6.0 or greater"


I have Office 2007 and IE 8.


I can create a document library and choose .pptx as the default document but I then lose the function of a slide library such as a thumbnail column and I see no way of putting that back in.


How to change the default location of SQL Server Profiler Template?


How can I change the default location of SQL Server Profiler Template from C:\Users\xxx\AppData\Roaming\Microsoft\SQL Profiler\10.0\Templates\Microsoft SQL Server\90?  If I log on to a Windows machine as certain user, anything created in appdata\roaming folder during that logon session will be lost after I logged off.  

If there is no way to change the location, how can I set up such user to retain anything created?  I know this question is related to Windows administration but I guess someone in here probably have experienced my problem before.

Default ASP.NET Architecture

In providing an architectural approach, some assumptions are made concerning the project goals. These assumptions should be used as a litmus test to determine if the described architecture may be an appropriate fit for your ASP.NET application.

Setting the default start page in godaddy hosting?


 How do you set the start page with godaddy hosting? I can see no way of doing this! You do not seem to have access to the IIS settings that allow you to change it!

Dropdown Event (Template Field)



I have grid view control that includes a dropdown control in a template field.

I wish to execute some code when the value is changed in the dropdown list.  Can't figure out how to capture this event though?

Any suggestions?

default constructor SelectList




dont have a  default constructor

new SelectList() :(

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