How can I get MemberGroupId (Here 135) of particular SPGroup programmatically (Sharepoint 2010, C#) if I have SPGroup Name/Title? I can get a group by ID as given below.
SPGroup group = web.SiteGroups.GetByID(135);
I want to get same by title or SPgroup Name. Is there any alternative method or any how if I can get ID from Group name as I can't hard code group ID as in production ID will not remain same for the same group. Any help will be highly appreciated.