Logo 
Search:

Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

custom server control

  Asked By: Ashan    Date: Dec 22    Category: Asp.net    Views: 805
  

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 ?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Omar Walker     Answered On: Dec 22

namespace you have correct.

assembly = name of the DLL - the dll extension

 
Didn't find what you were looking for? Find more on custom server control Or get search suggestion and latest updates.




Tagged: