D
Dan Sikorsky
I've included a .cs file in my project that has all .aspx.vb and .vb files,
but can't dim a variable in a .vb file as a .c# class.
Dim objCard as DotNetNuke.CreditCardPurchase
this fails because CreditCardPurchase is not seen in namespace DotNetNuke
Here's the c# file:
namespace DotNetNuke
{
using System;
public class CreditCardPurchase
{
public string host;
public string store_id;
public string api_token;
public string order_id;
public string amount;
public string card;
public string exp;
public string crypt;
public void DoPurchase()
{
HttpsPostRequest mpgReq =
new HttpsPostRequest(host, store_id, api_token,
new Purchase(order_id, amount, card, exp,
crypt));
}
}
}
Where am I going wrong? How do you mix vb and c# files in the same project?
but can't dim a variable in a .vb file as a .c# class.
Dim objCard as DotNetNuke.CreditCardPurchase
this fails because CreditCardPurchase is not seen in namespace DotNetNuke
Here's the c# file:
namespace DotNetNuke
{
using System;
public class CreditCardPurchase
{
public string host;
public string store_id;
public string api_token;
public string order_id;
public string amount;
public string card;
public string exp;
public string crypt;
public void DoPurchase()
{
HttpsPostRequest mpgReq =
new HttpsPostRequest(host, store_id, api_token,
new Purchase(order_id, amount, card, exp,
crypt));
}
}
}
Where am I going wrong? How do you mix vb and c# files in the same project?