S
SubZane
I've quite new to C# and asp.net and have been following a tutorial in
an e book on how to make a simple component. However the website
cannot find my component.
The component compiles without any errors
I've added reference to the component in the website
The DLL is in the Bin folder
I'm not misspelling it, I've checked several times.
Component Source:
-----------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
namespace Components {
public class SimpleTest1 {
public string GetInfo(string param) {
return "Value sent: "+param;
}
}
}
-----------------------------------------------------
Website Source:
-----------------------------------------------------
....
using Components;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e) {
SimpleTest1 test = new SimpleTest1();
string message = test.GetInfo("coolare!");
Response.Write(message);
}
}
an e book on how to make a simple component. However the website
cannot find my component.
The component compiles without any errors
I've added reference to the component in the website
The DLL is in the Bin folder
I'm not misspelling it, I've checked several times.
Component Source:
-----------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
namespace Components {
public class SimpleTest1 {
public string GetInfo(string param) {
return "Value sent: "+param;
}
}
}
-----------------------------------------------------
Website Source:
-----------------------------------------------------
....
using Components;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e) {
SimpleTest1 test = new SimpleTest1();
string message = test.GetInfo("coolare!");
Response.Write(message);
}
}