2
Answers

Mr. Koirala Plz check it and help me out

Photo of Arshad

Arshad

16y
3.1k
1
Hi Shiv, I need one favor, once i was going through the Article [Implement Code Behind in Share Point] on share Point by you in Code Project. it was really nice and i Implemented the same thing in my Share Point Application, it was nice even i was easily able to Connect to my Line of Business Database instead of BDC and all. I just wanted to know that in the same article you had added the Class Library and Inherit that Particular class[_default] by LayoutsPageBase and after that in the Layouts you added the Custom Asp.Net Page and Inherit that page from the Class[_default] of Library. but what i need actually, i don't want to use the Layouts Feature and the Layout Master page. i just wanted to use the Default master page of website through Share Point Designer, Actually i tried this but it was giving the Issue like
Parser Error Message: The base type 'ServicePointLibrary.Classes._Default' is not allowed for this page. The type is not registered as safe.

<%@ Page Language="C#" MasterPageFile="~masterurl/default.master" Inherits="ServicePointLibrary.Classes._Default" EnableViewState="false" EnableViewStateMac="false" %>

Even i Registerd the DLL in the SafeControl Also. but it was not happening.

First I created the ClassLibrary then I inherit that Class by Microsoft.SharePoint.WebPartPages.WebPartPage and Installed in GAC
After that Created one Asp.Net page from Share Point Designer and Inherit that Page from the Class of Library that is there in GAC, After that I got the Above Issue, i hope you got what i am trying to do. I think its Possible, am i doing right, Please Help me out.

With Regrards
Arshad Khan.

Answers (2)

0
Photo of Arshad
NA 1.3k 42.7k 16y
Hi, All i fixed it, i was just thinking one day that is it possible, yes its Possible, and i did it.

Regards
Arsha Khan.
Accepted
0
Photo of Arshad
NA 1.3k 42.7k 16y
Hi, All
I was able to do what ever i mension above like i dont want to use the LayoutsPageBase, that i am ale to do that, First i Created the ClassLibrary, Inherit that class by the SharePointPage class then Installed that DLL in the GAC, After that Added that Library Reference in the SafeControl then I fixed that Issue what i mension above but again i got stuck some where, what every code i had writen in the Class, its not wrking at all, its not giving any Issue also,but i am not getting that what to do. any one plz help me out.

Regards
Arshad Khan.