HtmlAnchor mainPhotoAnchor = new HtmlAnchor(); mainPhotoAnchor.InnerHtml = "<img src=\"" + arrPhotoUrls[0] + "\" class=\"mainPhotoImage\" />"; mainPhotoAnchor.HRef = "javascript:CB_Open('gallery=" + displayAddress + ",,href=" + arrPhotoUrls[0] + "');";
// ... else if (RowType == DataControlRowType.DataRow || RowType == DataControlRowType.Footer) { _expCell = new TableCell(); _ctlExpand = new HtmlAnchor(); //_ctlExpand.HRef = "#"; -- Commenting this out worked! _ctlExpand.Attributes["onclick"] = "TglRow(this);"; _ihExp = new HtmlInputHidden(); _ihExp.ID = "e" + this.DataItemIndex.ToString(); _expCell.Controls.Add(_ctlExpand); _expCell.Controls.Add(_ihExp); } if (_expCell != null) { _expCell.Width = Unit.Pixel(20); Cells.AddAt(0, _expCell); }
element = new HtmlAnchor(namespaceURI, qualifiedName, page, attributeMap);
element = new HtmlAnchor(namespaceURI, qualifiedName, page, attributeMap);
element = new HtmlAnchor(namespaceURI, qualifiedName, page, attributeMap);
element = new HtmlAnchor(qualifiedName, page, attributeMap); break;
element = new HtmlAnchor(qualifiedName, page, attributeMap); break;