Search

You searched for the word(s): userid:502122

Matching Posts

  • Re: Problem with controls registered in web.config

    Yes, there is a reference to the library. Everything works fine if the control is registered with <%@ Register tag instead of web.config.
  • Problem with controls registered in web.config

    I recently tried converting a medium sized web site to a web application but ran into a problem with custom controls registered in web.config: When I initially converted the web site all the .designer.aspx.cs files were generated correctly, but now whenever I want to add a new instance of one of these custom controls in a page or user control I receive the following error: Generation of designer file failed: Unknown server tag 'SHCL:PrettyLinkButton' I tried just about anything including recreating
    Posted to VS 2005 Web Application Projects (Forum) by CISCBrain on 5/2/2007
    Filed under: WAP
  • Re: Generation of designer file failed with composite control's item collection

    Hello acl123 , Can you please better describe the solution? I have encountered a similar problem but wasn't able to fix it. I tried deleting the Temporary ASP.NET Cache but the error persists.
    Posted to Custom Server Controls (Forum) by CISCBrain on 4/30/2007
  • Re: GridViewEx

    It's a little hackish, but should work just fine. Instead of initializing emptyRow like this: GridViewRow emptyRow ; emptyRow = new GridViewRow(- 1 , - 1 , DataControlRowType.EmptyDataRow, DataControlRowState.Normal) ; TableCell cell = new TableCell() ; cell.ColumnSpan = this .Columns.Count ; cell.Width = Unit.Percentage( 100 ) ; if (!String.IsNullOrEmpty(EmptyDataText)) cell.Controls.Add( new LiteralControl(EmptyDataText)) ; if ( this .EmptyDataTemplate ! = null ) EmptyDataTemplate.InstantiateIn
    Posted to Tips & Tricks (Forum) by CISCBrain on 8/17/2006
  • Re: Response.Write

    If you gentlemen would have bothered to open msdn or at least read the warnings you would have surely seen that the Page.RegisterStartupScript method is marked with the Obsolete attribute: [Obsolete("The recommended alternative is ClientScript.RegisterStartupScript(Type type, string key, string script). http: //go.microsoft.com/fwlink/?linkid=14202")]
    Posted to Client Side Web Development (Forum) by CISCBrain on 8/3/2006
  • Re: Response.Write

    Almost wherever you want. Page_Load is fine and so is OnPreRender, to give two examples. In 1.x you should use Page.RegisterStartUpScript and Page. RegisterClientScriptBlock, but these are obsolete in 2.0. The ClientScriptManager class is new in whidbey and is the recommended way of registering snippets of js code.
    Posted to Client Side Web Development (Forum) by CISCBrain on 7/31/2006
  • Re: Solution: Show Header/Footer of Gridview with Empty Data Source

    If you can't translate the code to VB.net, why not compile the C# code into a separate assembly and use it in your vb apps ? This is where .net really shines :D Also, you can check this out: http://forums.asp.net/thread/1354195.aspx It has more features than just show header/footer when datasource is empty.
    Posted to Tips & Tricks (Forum) by CISCBrain on 7/30/2006
  • GridViewEx

    Here's a class that extends the standard GridView. The code is not entirely made by me. It's basicaly a lot snippets from other posts/articles/blogs polished and combined into a single class: #region Using directives using System; using System.ComponentModel; using System.Web.UI; using System.Web.UI.WebControls; #endregion namespace MyWebControls { public class GridViewEx : GridView { #region Properties /// <summary> /// When true and the GridView is inside a container with overflow this will
    Posted to Tips & Tricks (Forum) by CISCBrain on 7/28/2006
  • Re: Solution: Show Header/Footer of Gridview with Empty Data Source

    I think I fixed the header/footer rows being null. Just add these to the class: protected GridViewRow _footerRow2; public override GridViewRow FooterRow { get { GridViewRow f = base .FooterRow; if (f != null ) return f; else return _footerRow2; } } protected GridViewRow _headerRow2; public override GridViewRow HeaderRow { get { GridViewRow h = base .HeaderRow; if (h != null ) return h; else return this ._headerRow2; } } and modify CreateChildControls like so: . . //create a new header row _headerRow2
    Posted to Tips & Tricks (Forum) by CISCBrain on 7/28/2006
  • Re: Solution: Show Header/Footer of Gridview with Empty Data Source

    Do you have something in the footer and header ?
    Posted to Tips & Tricks (Forum) by CISCBrain on 7/27/2006
Page 1 of 3 (22 items) 1 2 3 Next >