I am currently using the site url to get the site to create Features. Below is the sample code:
string strUrl =
using (SPSite site =
using (SPWeb web = site.OpenWeb())
I would like to generalize the function. Currently, i am passing the server url and site name in the code as string variable. So when i activate the feature, the feature is activated for the site alone.
Is it possible to make the site as a generalised one. while activating feature through stsadm command, the site name is provided. Can the site name be taken from here for the code. That is in the site, i want to pass only the server url as site. when doing
the activation, either way the site name will
View Complete Post