I'm currently working on the VB Version of the Classifieds Starter Kit and want to integrate Peter Kellners 'Membership Editor With Profile Information' Kit.
Becasue my site is in VB and the kit is in C my only choice is to simly create a class library project out of the
.cs files that would normally live in the app_code directory.
Then, include the dll it creates in my bin directory of your project and
it should work. Here is a copy of the project.
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42 for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727 Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
MembershipUserODS.cs(68,13): error CS0246: The type or namespace name 'ProfileCommon' could not be found (are you missing a using directive or an assembly reference?)
So did anyone translate the code to vb.net?? I'm new to vb.net and c#... so can someone help please.. The part that is hard for me is membershipuserODS.cs... how do i convert the following code..to vb??
switch (sortDataBase)
{
case "UserName":
comparison =
new
Comparison<MembershipUserWrapper>(
delegate(MembershipUserWrapper lhs, MembershipUserWrapper rhs)
tonsai
Member
417 Points
89 Posts
Integrating C# proj into into VB version of Classifieds
Oct 03, 2006 10:21 AM|LINK
I'm currently working on the VB Version of the Classifieds Starter Kit and want to integrate Peter Kellners 'Membership Editor With Profile Information' Kit.
Becasue my site is in VB and the kit is in C my only choice is to simly create a class library project out of the .cs files that would normally live in the app_code directory.
Then, include the dll it creates in my bin directory of your project and it should work. Here is a copy of the project.
http://www.g3-is.com/mike/filestore/MembershipEditorWithProfile.zip
When I try to compile the files using the following command I get the following error message:
D:\MembershipEditorWithProfile\> csc /t:library /out:membershipwithprofiles.dll /r:System.dll /r:System.Web.dll *.cs
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42 for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727 Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
MembershipUserODS.cs(68,13): error CS0246: The type or namespace name 'ProfileCommon' could not be found (are you missing a using directive or an assembly reference?)
Can anyone help!?!?
paggy4u
Contributor
3017 Points
774 Posts
Re: Integrating C# proj into into VB version of Classifieds
Oct 04, 2006 03:31 AM|LINK
I am also looking for this solution
Thanks
-----------------------------------------
Working with Dynamic Languages
voodoo9055
Participant
1873 Points
438 Posts
Re: Integrating C# proj into into VB version of Classifieds
Oct 04, 2006 01:32 PM|LINK
VB.Net....C# same difference.
Wouldn't it be easier to convert the C# to VB.Net using one of the online converters?
voodoo9055
Participant
1873 Points
438 Posts
Re: Integrating C# proj into into VB version of Classifieds
Oct 04, 2006 01:44 PM|LINK
Do you have Profile enabled in your web.config?
tonsai
Member
417 Points
89 Posts
Re: Integrating C# proj into into VB version of Classifieds
Oct 04, 2006 01:54 PM|LINK
tonsai
Member
417 Points
89 Posts
Re: Integrating C# proj into into VB version of Classifieds
Oct 04, 2006 01:56 PM|LINK
yep, as follows:
<profile enabled="true">
<properties>
<add name="FirstName" type="System.String"/>
<add name="LastName" type="System.String"/>
<add name="Telephone" type="System.String"/>
<group name="Address">
<add name="Street" type="string"/>
<add name="City" type="string"/>
<add name="County" type="string"/>
<add name="PostCode" type="string"/>
</group>
<add name="MemberId" defaultValue="0" type="System.Int32"/>
<group name="Core"/>
</properties>
</profile>
voodoo9055
Participant
1873 Points
438 Posts
Re: Integrating C# proj into into VB version of Classifieds
Oct 04, 2006 02:04 PM|LINK
chon
Member
84 Points
17 Posts
Re: Integrating C# proj into into VB version of Classifieds
Nov 29, 2006 08:15 PM|LINK
So did anyone translate the code to vb.net?? I'm new to vb.net and c#... so can someone help please.. The part that is hard for me is membershipuserODS.cs... how do i convert the following code..to vb??
switch (sortDataBase){
case "UserName":comparison =
new Comparison<MembershipUserWrapper>( delegate(MembershipUserWrapper lhs, MembershipUserWrapper rhs){
return lhs.UserName.CompareTo(rhs.UserName);}
);
break;..........
thanks
voodoo9055
Participant
1873 Points
438 Posts
Re: Integrating C# proj into into VB version of Classifieds
Nov 29, 2006 09:46 PM|LINK
Select Case sortDataBase
Case "Username"
comparison = New Comparison(Of MembershipUserWrapper)
End Select
That delegate part is throwing me off as well. Why don't you ask the owner of the product to send you a VB.Net version?
chon
Member
84 Points
17 Posts
Re: Integrating C# proj into into VB version of Classifieds
Dec 01, 2006 02:39 PM|LINK