im trying to develop custom server control 4 the first time.
i opened new project name "moreshetGrid"
this is the myGrid.cs class:
using System;
using System.Web;
using System.Web.UI;
namespace moreshetGrid
{
/// <summary>
/// Summary description for myGrid.
/// </summary>
public class myGrid : Control
{
protected override void Render(HtmlTextWriter writer)
{
writer.Write("<h1>hellow control</h1>");
}
}
}
now what is my next steps to test it on aspx file?
i know i should write in the top:
<%@ Register TagPrefix="moreshetControls" namespace="moreshetGrid"
Assembly="moreshetGrid" %>
what should be written in the namespace and what in the Assenbly ?