When should we must create site pages through visual studio?

Generally site pages are created through SP designer. But what are business requirement when we MUST create site pages through visual studio rather than designer? I
mean situation should demand we MUST create site pages through visual studio rather than designer. Need some example .

Hi Sunil,
when it contains code behind
http://blogs.msdn.com/b/kaevans/archive/2010/06/28/creating-a-sharepoint-site-page-with-code-behind-using-visual-studio-2010.aspx
Kind Regards,
John Naguib
Technical Consultant/Architect
MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
Please remember to mark your question as answered if this solves your problem

Similar Messages

  • How to create a site column through Visual Studio 2010?

    I was trying to create lists, content type and site columns through Visual Studio 2010. But I could not figure out how to add site column? What item do I need to add for this and what kind of coding is to be done?

    Try this
    1. Create a Empty project in Visual studio.
    2.The Empty SharePoint Project template does not include any Features in the Features folder. To add a new Feature to this project, right -click the Features folder, and click Add Feature. This adds a new Feature component to the folder; double – click the
    Feature1 icon in Solution Explorer to modify the Feature ’ s
    metadata using the Feature designer. The Title and Description values appear on the Features pages in Site settings. It is a good idea to make these values
    descriptive so that administrators will know what they are adding to the site when they activate the feature.
    The feature ’ s scope determines where the feature can be activated within SharePoint. Please Note – Certain components, such as site columns, content types, Master pages, and Page Layouts, are installed at the site collection level and made available to all
    sites within the collection. These components require that the scope for the feature be set to “ Site. ”
    3. Next, add a new item to the project (Right – click project name ➪ Add ➪ New Item) and select the Empty Element template from the Add New Item dialog box.
    The Empty Element template is an XML fi le where you can enter CAML Field definitions.
    Following is what you will add in your elements.xml file –
    < Elements xmlns="http://schemas.microsoft.com/sharepoint/" >
    < Field ID="{76C140E1-D827-433B-AD38-257F9594B846}"
    Name="CustomCol"
    DisplayName="My Custom Site Column"
    Group="Custom group"
    Type="Text"
    Required="FALSE"/ >
    < Field ID="{5F516D92-969C-4661-81B9-C9210E2A2FDC}"
    Name="Choice Type"
    DisplayName="My Choice Type"
    Group="Custom group"
    Type="Choice"
    Required="FALSE" >
    < CHOICES >
    < CHOICE > Medical < /CHOICE >
    < CHOICE > Dental < /CHOICE >
    < CHOICE > Vision < /CHOICE >
    < CHOICE > Insurance < /CHOICE >
    < /CHOICES >
    < /Field >
    < /Elements >
    4. To deploy the Site Columns defined in the Elements file, right – click the project name in the Visual Studio Solution Explorer, and select Deploy. This will deploy the solution file to the solution store and activate the Feature in the targeted site collection.

  • Create Ajax Page on Visual studio 2013

    Hi how are you, i try use ajax in visual studio 2013 i install ajax toolkit and i have tools but can not create aspx page for ajax please help me 
    thanks 

    Hi,
    If you want to use AJAX Toolkit for SharePoint 2010 and 2013, here is a solution for your reference:
    http://sharepointajax.codeplex.com/releases/view/93640
    If the question not relate SharePoint, I suggest you post it to a suitable Forum, you will get more help and confirmed answers from there.
    http://forums.asp.net/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Pages 5.5.1: When opening a document created with Pages '09 (Version 4.0) with Pages 5.5.1 the page header and the page footer are deleted. How can this be prevented? Or is this a bug in Pages 5.5.1?

    Pages 5.5.1: When opening a document created with Pages '09 (Version 4.0) with Pages 5.5.1 the page header and the page footer are deleted. How can this be prevented? Or is this a bug in Pages 5.5.1?

    Same problem here (no graphics in header or footer) and the problem has been reported months ago. It is another bug/feature lost when Apple moves from 09 to the iCloud-compatible versions.  Complain to Apple, you may have better chance than me and they may finally listen to their users....

  • How to apply customization through visual studio to the SharePoint online

    We have an existing SharePoint online site, now there are some changes in functionality is required, can we do that change through visual studio and send that change to
    SharePoint online site? will it work?
    or we have to do the same only through the JQuery or other client side code directly to the site?

    Short list of what can't be done:
    deploy any compiled code to a server. This includes DLLs, EXEs and full trust SharePoint Solutions.
    deploy any file to a server disk drive. This includes anything usually stored in the 15 hive, site definitions, etc.
    What can be done:
    Anything that could also be done with SharePoint Designer.
    Anything that is a file that can be loaded into a library. You can create and upload pages, as long as there is no server side code (C# etc.). These pages can include JavaScript, jQuery, CSOM, HTML, CSS, etc.
    Create SharePoint 2013 apps. These can run custom code, but only if on an external to SharePoint servers.
    See here for more:
    http://technet.microsoft.com/en-us/library/sharepoint-online-developer-service-description.aspx (Developer Features in SharePoint Online)
    Overview of SharePoint 2013 development:
    http://msdn.microsoft.com/en-us/library/office/jj164084(v=office.15).aspx
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

  • X12 00502-204 validate instance failure when EDI file is in readable format in Visual Studio

    Hi, I have a n X12 00502- 940 edifile, when all data are on the same line, Visual studio validates
    ST*204*7629~B2**XXXX**159771**PP~.......N4G*L*43920*900**E*864~SE*33*7629~
    when I try to make the file in a readable format, each segment on line by hiting enter after each "~", and try to validate
    as follows
    ST*204*7629~
    B2**XXXX**159771**PP~
    B2A*00*LT~
    SE*33*7629~
    I get "Invalid Segment Terminator" or many segment level errors, I have always "~" in the "segment separator (106th char of iSA) checked in the validate instance dialog box. In Segment separator suffixe, I tried all, None, CR,
    LR & CRLF but no way
    I also generated an instance and made it readble, I get the exact same behavior
    Thanks in advance

    Covert it to readable format only for your purpose. Leave the system to read it based on segment separator only.

  • Why are objects in tables removed when opening a document (created in pages 2009) in the new pages?

    I have a problem: Documents I created in Pages 2009, when opened in the new Pages I get "objects in tables were removed".
    This makes all my documents useless !
    Is there any way to get the objects (images and tables mostly) to load into the tables across all my documents ?

    No, there isn't. Use Pages 09 with your old documents and Pages 5.0 for creating new ones. Do you really need Pages 5.0 is the question you need to answer. If not, don't.

  • How to Create a Custom Project Site Template Using Visual Studio

    I know how to make changes and save a site as a template but I need to be able to create a new project site template during deployment to different environments. Trying to have this not be a manual process.

    Hello,
    This article might help:
    http://blogs.msdn.com/b/sambetts/archive/2013/10/17/creating-a-clean-visual-studio-solution-from-a-sharepoint-2013-site-template.aspx
    Start with a default Project Site (create a new site from the Project site template) and save out the WSP then import into VS.
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Cannot connect to SharePoint online to create SharePoint App in Visual Studio 2013

    I have an Office 365 account and I am trying to create a SharePoint App via Visual Studio 2013 Here are the steps:
    1. Open VS 2013 and select Office/SharePoint > App for SharePoint (type the name) then click OK
    2. I type in URL of the site (of course https://) and Select SharePoint-Hostedoption, then click Finish 
    3. I get the Office 365 authentication dialog box.
    I type in the username and password and it opens the SharePoint in the same rectangular dialog box and it stays there and nothing happens:
     link :  i.stack.imgur.com/USYcG.png
    link :   i.stack.imgur.com/rlUpJ.png
    If I click the close icon on the Connect to SharePoint dialog box that still shows my SharePoint online site, I get the following error :
    link:  i.stack.imgur.com/p1ztW.png
    If I click on OK I get the Connect to SharePoint dialog box again
    Link :  i.stack.imgur.com/ZgyW9.png

    Hello,
    I'd ask in the
    Office 365 Community.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?&lt;=\G.{2})'|%{if($_){[char][int]&quot;0x$_&quot;}})

  • How to create Event Receivers using Visual Studio 2013

    No parsing error came while creation of Event Receiver in Visual Studio 2013

    Hi Shaheena
    Please search MSDN Articles, TechNet Articles and The Code Project Articles before asking questions.
    Answers to the basic as well as professional questions are available there.
    Go through the links below for the issue.
    Create an Event Receiver
    Indul Hassan
    Microsoft Community Contributor
    http://www.indulhassan.com
    You Snooze.. You Lose !!

  • Creating Proxy Classes in Visual Studio 2010 from SAP ES

    I am having problems with Microsoft's Visual Studio 2010 creaating a proxy class when importing a WSDL file from SAP's Enterprise Services.  
    When attempting to define the proxy class by pointing it to the endpoint WSDL, the import seems to work OK but the proxy class is not created.    I don't have this problem with other WSDL's from non-SAP sources.   There seems to be something "special" about the ES endpoint WSDL.
    Is anyone else having this problem?

    not always the 18th. For me it is the 14th. I think it is because I have  some buttons hidden already. But seems like it is always the last one.
      // The SAP Crystal Report logo is the last item on the 4th control.
    System.Windows.Forms.ToolStrip oToolStrip = (System.Windows.Forms.ToolStrip)crystalReportViewer.Controls[4];
                    oToolStrip.Items[oToolStrip.Items.Count-1].Visible = false;

  • Creating Refresh İmage for Visual Studio

    Hi,
    I want to refresh my Windows 8.1 operated PC but I have a problem which is related with that. I use Visual Studio 2013, but I got it via Microsoft Dreamspark. If I refresh my PC (it will also means uninstalling VS), I will not be able to download or install
    VS again because of copyright etc. So I did a little bit research and come across to an option just for my situation: creating refresh image. But I can take that risk just like that so decided to ask; could it work? Can I be able to restart my system in factory
    settings and continue to use VS as it is before?
    Thank you for your answers:)
    Who is Atlas?

    When you do refresh , your programs will be uninstalled and you could create image of your current Windows and restore the image but in some cases, you might ask to reactive your product (it doesn't happen all the time but it might happen).
    If your only concern is Visual Studio, you could install Visual Studio 2013 Community which is free (just take a look at term of use and license agreement) and if you want to use it for non-production environment then that is fine:
    http://www.visualstudio.com/en-us/visual-studio-community-vs.aspx

  • Can't Create New Excel Project Visual Studio 2013 Office Tools The Project Cannot Be Created

    I am having this issue on two computers. If I try to create an Excel 2013 Workbook C# in new projects, and choose create a new workbook, it starts to open Excel, and then I get this error in VS
    I have tried:
    Uninstall & Reinstall of VSTO from the Visual Studio Installer
    Uninstall & Reinstall of Visual Studio 2013 Ultimate, (manually removing anything with visual studio that was left over)
    Manually turning on the add-on Visual Studio Tools for Office Design-Time Adapter for Excel
    Installing VSTO by hand
    Enabling Macros
    Running VS as administrator
    Uninstalling & Reinstalling Office 2013 Pro Plus OLP
    I have made this change to excel:
    Like I said, this problem occurs on TWO pc's.  I have tried 2013 Visual Studio R1 and R2.  Does anyone have any ideas?
    Edit 3-1-2015
    There is still no answer to this, I have tried target frameworks:
    4.0
    4.5
    4.51
    And Running as Administrator.  Recently I upgraded to the CTP of Visual Studio 2015 Ultimate and the same problem exists.

    Thanks for the reply.
    The issue is not reproducible for me and I can confirm this not a known issue. We might need to do deeper troubleshooting at the repro machines.
    Because of its complexity your question falls into the paid support category which requires a more in-depth level of support.  If the support engineer determines that the issue is the result
    of a bug the service request will be a no-charge case and you won't be charged. Please visit the below link to see the various paid support options that are available to better meet your needs.
    http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone
    Sangeeth,MSFT

  • Get error when passing server name to Crystal Reports in Visual Studio 2012

    Hello,
    I work on Visual Studio 2012 with Crystal Report 13.0.12 (both developer and run-time). When I pass the name of the server to the Crystal Reports, I get an error -- Failed to open the connection.  Database Vendor Code 17.  I use SQL OLEDB as the provider.  It worked before.  Not sure what has happened.
    Any help is much appreciated!!!
    John

    Hi,
    See this: Failed to open the connection - database vendor code 17
    --dj

  • I restored my most used sites page through troubleshooting but then downloaded stylish and the alt. browser came back when i open a new tab. Help?

    I downloaded some dodgy software and having cleared it up it seems to have installed an alternative browser (delta?) and toolbar to my firefox. I've uninstalled the toolbar, but when i open a new tab, instead of my most used pages, it came up with the delta browser. So I followed the instructions on here and troubleshooted and restored the default settings of firefox. This worked until I re-installed the add on Stylish to customise webpages, and now it seems to have come back. Having uninstalled stylish it hasn't changed. Can i not use stylish now, or is there a way of my completely getting rid of this delta, enabling me to use the add on as before?

    See:
    *http://info.delta-search.com/uninstall/firefox.html
    *http://deletemalware.blogspot.com/2013/07/remove-delta-homescom-removal.html
    * [[/questions/949921]]
    * [[/questions/943111]]
    Note that your System Details List shows multiple Flash plugins.
    # Shockwave Flash 11.8 r800
    # Shockwave Flash 11.7 r700
    You can check the Flash player installation folder for multiple Flash player plugins and remove older version(s) of the plugin (NPSWF32).
    *(32 bit Windows) C:\Windows\System32\Macromed\Flash\
    *(64 bit Windows) C:\Windows\SysWOW64\Macromed\Flash\
    You can find the installation path of all plugins on the <b>about:plugins</b> page.<br />
    There is no need to toggle the plugin.expose_full_path pref to true in Firefox 22 and later, so leave this pref set to false.
    *http://kb.mozillazine.org/Issues_related_to_plugins#Identifying_installed_plugins
    *http://kb.mozillazine.org/about:plugins
    *http://kb.mozillazine.org/about:config

Maybe you are looking for

  • How to select multiple row in ALV report

    Hi friends, 1. How to select multiple row in ALV report                ( How to set tab in ALV report and want to select multiple line.) Thanking you. Subash

  • Analyzer Security for SAP BPC 7.5 SP6

    Hi , We have recently installed Analyzer add-in on our excel for Adhoc reporting on SAP BPC 7.5 SP6 But analyzer is not considering the data security restricted for specific region. For eg: If a planner is assinged to EUROPE planning role and when he

  • DVD burning options in FINDER

    Hello, can you tell me how to turn off verify when burning DVDs with Finder? Thanks much!

  • Problem with cropped PDF

    I am using Adobe Acrobat 9 Professional for MAC (10.6.8).  After successfully cropping and saving a PDF, I have emailed the cropped PDF via Entourage.  I notice that part of the original PDF (that has already been cropped out) is still seen by the re

  • IPod video... what can safely remove surface scratches?

    Ok, I know this is a really stupid question, but I just paid $400.00 for a 60 gig iPod video and the slipcover they gave me w/ the iPod has really scratched up my iPod. What can I use on the iPod that will safely remove the surface scratches? Another