Creating Web Parts

Rate It (1)

Last post 07-22-2009 12:39 AM by Taju. 12 replies.

Sort Posts:

  • Creating Web Parts

    11-11-2008, 5:10 AM
    • Member
      point Member
    • Harini_A
    • Member since 11-11-2008, 10:01 AM
    • Posts 1

     Hi .. I need to  create web parts... Could anyone help me out..

      Im new to ASP.NET

  • Re: Creating Web Parts

    11-11-2008, 7:48 PM
    Answer
    • All-Star
      91,768 point All-Star
    • vinz
    • Member since 10-05-2007, 3:47 PM
    • Cebu, Philippines
    • Posts 13,769
    • TrustedFriends-MVPs

    Hello,

    You can refer to the following articles below to get started with:

    WebPart Overview

    http://msdn2.microsoft.com/en-us/magazine/cc300767.aspx
    http://msdn.microsoft.com/msdnmag/issues/05/09/WebParts/default.aspx
    http://www.brainbell.com/tutorials/ASP/The_Web_Parts_Architecture.html

    WEBPART with Windows Authentication
    http://www.beansoftware.com/ASP.NET-Tutorials/Web-Parts.aspx
    WEBPART with Anonymous Users
    http://www.codeproject.com/KB/aspnet/anonywebparts.aspx
    WEBPART with FORM Authentication
    http://www.eggheadcafe.com/tutorials/aspnet/0b6cdd68-c023-4f0d-9253-d980bc8b26bd/web-parts-and-form-based.aspx 

    Video

    http://www.asp.net/learn/videos/video-43.aspx

    WebParts with AJAX Enabled:

    http://www.gridviewguy.com/Articles/340_Creating_Ajax_Enabled_Webparts.aspx

    "Code,Beer and Music ~ my way of being a programmer"

  • Re: Creating Web Parts

    11-12-2008, 4:28 AM
    • Member
      23 point Member
    • anukanasaha
    • Member since 10-23-2008, 9:55 AM
    • Kolkata
    • Posts 36

    Hello Vinz........

    I m also trying to use webparts and given above links are very useful.I m following the code given in

    http://www.brainbell.com/tutorials/ASP/The_Web_Parts_Architecture.html

    but getting error.

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

    can u tell me why this error occurs.?

  • Re: Creating Web Parts

    11-12-2008, 4:35 AM
    Answer
    • All-Star
      91,768 point All-Star
    • vinz
    • Member since 10-05-2007, 3:47 PM
    • Cebu, Philippines
    • Posts 13,769
    • TrustedFriends-MVPs

    anukanasaha :

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

    can u tell me why this error occurs.?


    Hi,

    It seems that you have not installed SQL Express in your machine.. Please note that the WebPart Personalization uses ASPNETDB database for users and page personalization...

    See this previous threads below:

    http://forums.asp.net/p/1192478/2051521.aspx

    http://forums.asp.net/t/1296815.aspx

     

    "Code,Beer and Music ~ my way of being a programmer"

  • Re: Creating Web Parts

    11-12-2008, 4:41 AM
    • Member
      128 point Member
    • JiHao
    • Member since 07-25-2007, 9:42 AM
    • Posts 30

    And also check if the SQL server be configured allow remote connections.

    See this:

    http://support.microsoft.com/kb/914277

    Regards,

    Ji

  • Re: Creating Web Parts

    11-12-2008, 4:44 AM
    • Member
      23 point Member
    • anukanasaha
    • Member since 10-23-2008, 9:55 AM
    • Kolkata
    • Posts 36

    Thank U Vinz

    I havent set WebPart Personalization as false. Now it works.

    Thanks for ur cooperation.

  • Re: Creating Web Parts

    11-12-2008, 4:59 AM
    • All-Star
      91,768 point All-Star
    • vinz
    • Member since 10-05-2007, 3:47 PM
    • Cebu, Philippines
    • Posts 13,769
    • TrustedFriends-MVPs

    anukanasaha:

    Thank U Vinz

    I havent set WebPart Personalization as false. Now it works.

    Thanks for ur cooperation.


    Your Welcome!


    "Code,Beer and Music ~ my way of being a programmer"

  • Re: Creating Web Parts

    11-12-2008, 5:49 AM
    • Member
      23 point Member
    • anukanasaha
    • Member since 10-23-2008, 9:55 AM
    • Kolkata
    • Posts 36

    Now I have followed upto step 12 given in

    http://www.brainbell.com/tutorials/ASP/The_Web_Parts_Architecture.html

    But when I run my code it shows only browse mode.

    How can i resolve this?

  • Re: Creating Web Parts

    11-12-2008, 5:53 AM
    • Member
      23 point Member
    • anukanasaha
    • Member since 10-23-2008, 9:55 AM
    • Kolkata
    • Posts 36

    I m using SQL Server 2005

  • Re: Creating Web Parts

    11-12-2008, 5:56 AM
    Answer
    • All-Star
      91,768 point All-Star
    • vinz
    • Member since 10-05-2007, 3:47 PM
    • Cebu, Philippines
    • Posts 13,769
    • TrustedFriends-MVPs

    anukanasaha :

    Now I have followed upto step 12 given in

    http://www.brainbell.com/tutorials/ASP/The_Web_Parts_Architecture.html

    But when I run my code it shows only browse mode.

    How can i resolve this?

    That's an expected behavior since you are setting the WebPartManagers Personalization to false; Once you have set it to false then you can no longer use the Personalization and Customization of WebParts in the Zone including  the Display modes of WebPartManager..


    "Code,Beer and Music ~ my way of being a programmer"

  • Re: Creating Web Parts

    11-12-2008, 6:04 AM
    • Member
      23 point Member
    • anukanasaha
    • Member since 10-23-2008, 9:55 AM
    • Kolkata
    • Posts 36

    ya its true.But if set WebParts Personlization as true then get the error

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

    Then how can I use other personalization n Customization of web parts.

  • Re: Creating Web Parts

    11-12-2008, 7:10 PM
    • All-Star
      91,768 point All-Star
    • vinz
    • Member since 10-05-2007, 3:47 PM
    • Cebu, Philippines
    • Posts 13,769
    • TrustedFriends-MVPs

    Hi anukanasaha,

    Please create a new thread for your issues so that we can discuss the whole thing there.. That way anwsers on this thread will not get mixed up...

    Thanks

    "Code,Beer and Music ~ my way of being a programmer"

  • Re: Creating Web Parts

    07-22-2009, 12:39 AM
    • Member
      14 point Member
    • Taju
    • Member since 07-20-2009, 10:33 AM
    • Posts 8
Page 1 of 1 (13 items)