Asp.net Usercontrols on Sharepoint with the help of Smart parts - continued
Hello everyone,
I did try to install and run the sample provided with the setup for smart parts for Ajax, every thing worked fine as expected, and i have drop down box in the provider and on selecting any of the values in the drop down (provider) and the same moves to the label placed in the consumer web part.
declaration for consumer web part
<%@ Assembly Name=”ReturnOfSmartPart, Version=1.3.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5″ %>
<%@ Assembly Name=”TestSmartParts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e3fff8ef64d0b354″ %> ( name of the assembly where the TstConsumer and TstProvider resides)
<%@ Control Language=”C#” CodeBehind=”TstConsumer.ascx.cs” Inherits=”TestSmartParts.TstConsumer” %>
when you GAC the TestSmartParts you will be able to get the properties Name,Version,Culture,PublicKeyToken
create a web application
sign the assembly
GAC the assembly
change the output of the assembly to the C:\Inetpub\wwwroot\wss\VirtualDirectories\yourportname\bin
create a folder named Usercontrols
place the ascx files in the folder from your webapplication
for the code you can refer to the samples
When you remove the assembly from the GAC, it doesn’t throw the error but when you delete the assembly from the bin folder it will throw the error,
for testing purpose, delete the assembly from bin folder and then make the changes in your web app, if .ascx files have been modified, move the same in the Usercontrols folder, and then again build the assembly, while doing this you will be able to see the assembly in the bin folder.
refresh the page..it works..
Posted: July 9th, 2008 under BizTalk.
Tags: MOSS, Sharepoint, smartparts
Comment from Psychic Advice
Time July 13, 2008 at 1:16 pm
Great blog, subscribed to your rss feed. Thanks.