Active Social Groups can be loaded in several different ways. In some cases, the groupid may not always be present in the url. This means that integration should not depend completely upon the "asg" key being available from the ASP.NET Request.QueryString and Request.Params Objects. The proper group id will always be available to you from the Current HTTPContext. The code samples below provide examples of different ways that you can access the groupid for the current group.
Server Side - Without reference to Active Social
<br />
<br />
<strong>Sever Side - With reference to Active Social and inheriting from SocialBase</strong> <br />
[CODE]
Dim mygroupid as Integer = -1
mygroupid = GroupId
Client Side
var groupid =-1;
groupid = asClient.GroupId();