Skip to Content
0
Former Member
Aug 12, 2005 at 03:15 PM

Using Table Control in .NET iView

21 Views

Hi,

I am working on .NET iview.

i am retrieving values from database and assigning them to LinkToURL control's text property and making them into hyper link.

I am doing this in my code.

I am displaying the links by directly adding LinkToURL to the Controls collection.

Eg.

LinkToURL lnk = new LinkToURL();

lnk.Text = sName;

I want to use a SAP Table control to display these links.

Can anyone tell me how to do it.

Here is my present code :

LinkToURL lnk = new LinkToURL();

lnk.Text = sName;

lnk.Reference = sUrl;

lnk.Size=SAP.UI.LinkSize.SMALL;

lnk.Type=SAP.UI.LinkType.REPORTING;

lnk.ScriptingEvents.Add("LINKCLICK", "doSendEvent('" + sUrl + "','" + sName + "');return false;");

this.Controls.Add(new System.Web.UI.LiteralControl("<LI TYPE='square' size='-10'>"));

this.Controls.Add(lnk);

this.Controls.Add(new System.Web.UI.LiteralControl("</LI>"));

Regards

Saurabh saxena