Browse by Tags

Related Posts

  • Load user control inside class - can't access methods or properties

    I'm trying to load a user control inside a class. The idea is to format an email using the user control and have this function render the control using HTMLTextWriter - the function returns the rendered control as a string. This is not a page class, so I can't register the user control inside...
    Posted to Web Forms (Forum) by markatwilliams on 04-12-2009, 12:00 AM
    Filed under: HTMLTextWriter, User Controls
  • Modify the HTML Markup Before Rendering to Client Browser

    Modify the HTML Markup Before Rendering to Client Browser Hi. I have the following problem. I need to modify the markup being rendered to the browser before it is actually rendered. For example, in one of my controls, initially, the markup (source) of page after rendering has the following attributes...
    Posted to Web Forms (Forum) by BatutaBunsing on 11-17-2008, 12:00 AM
    Filed under: Rendering Issue, HTML Markup, HTMLTextWriter, image path
  • Re: email the contents of the contentplaceholder(report) in a masterpage

    Thank you for the suggestion. I tried this code and it's equally working public partial class MasterPage : System.Web.UI.MasterPage { string str; int i = 0; protected StringBuilder sb = new StringBuilder(); protected override void Render(HtmlTextWriter writer) { StringWriter sw = new StringWriter...
    Posted to Master Pages, Themes and Navigation Controls (Forum) by ManjunathMR on 08-04-2008, 12:00 AM
    Filed under: stringbuilder, stringwriter, htmltextwriter
  • HtmlTextWriter

    Using HtmlTextWriter to display 2 hyperlink controls. Need to add 4 tab spacings in between these hyperlinks. I tried using: xwriter.WriteEncodedText(" "); AND xwriter.WriteLine(); Both these inserts only single spacing. Any help how can i create multiple spacing between two hyperlinks.
    Posted to Getting Started (Forum) by newasp.netdevelopor on 06-16-2008, 12:00 AM
    Filed under: htmltextwriter
  • Subclassing HTMLTextWriter results in NPE when making ajax calls

    I found a nice sample ( http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx ) on how to set the action attribute of a form HTML element. However when an ajax request is made the code throws a NPE: 1 public class FormControlAdapter : ControlAdapter 2 { 3 protected...
    Posted to Web Forms (Forum) by JC Denton on 05-23-2008, 12:00 AM
    Filed under: ControlAdapter, HTMLTextWriter
  • retriving data from Excel sheets to .aspx page grid view

    i am getting an error that in the connection strings i hve added the reference to the com library. my code file as follows .xls file contains in the App_Data Directory. 2) The search button is disabled when i run the application but the visible property is set to TRUE Error: Error 1 'System.Configuration...
    Posted to Data Presentation Controls (Forum) by rajuonline_531 on 10-12-2007, 12:00 AM
    Filed under: reflection, selectedindex gridview, "gridview" edit select eventhandling, .Net 2.0, .NET Gridview Problems, AccessDataSource, ADO.NET, advanced, asp, asp .net 2.0, asp net 2.0 gridview objectdatasource dynamic runtime, asp net datalist, asp net grid view error, ASP.NET 2.0 DataBinding DefaultView, asp.net 2.0 DataBinding javasript, ASP.NET 2.0 GridView databound, asp.net 2.0 GridView databound codebehind ItemTemplate Zimmergren :), ASP.NET 2.0 GridView databound error data, ASP.NET 2.0 GridView SelectedValue, ASP.net 2.0 GridView with checkboxs, ASP.NET 2.0 webform, C# 2005 Gridview, C# SQL Server Photo Gallery Images, Databind(), datagrid property, dropdownDownList in grid view, dropdownList gridview, Dropdownlist SQL Dynamic, Excel import ssl, executereader, export csv, export excel, export excel gridview images image jpg jpeg save as, Export GridView to Excel, export to excel, Export to Excel not working with 2007, gridview dropDownList selected listitem, GridView selected Item, gridview selectedIndexChanged problem solution, gridview selectedvalue, HTML, HTML tags grid gridview, HtmlTextWriter, Detailsview dropdown problem, detailsView edit textbox width, DetailsView InsertItemTemplate textbox identity user, gridView update sqldatasource, grid view details view, asp .net ... c# ... SQL javascrpt, Excel, excel C#, Excel Datagrid
  • Re: Render a custom user control to htmlTextWriter from Class

    This is what I needed: 1 Dim p as Page = CType (HttpContext.Current.Handler, Page) Then I could poplate the templatefield with the same code from my first post: 1 Dim tf1 as New TemplateField 2 tf1.ItemTemplate = p.LoadTemplate( "Template.ascx" ) 3 gridview.Columns.Add(tf1) I have only tested...
    Posted to Data Presentation Controls (Forum) by etbramble on 08-28-2007, 12:00 AM
    Filed under: Page Class, template field, AJAX, Custom Class, HtmlTextWriter, GridView
  • Replacing Response.Output

    Is it possible to replace Response.Output with a custom TextWriter? (Yes, I found out the answer as I was writing this.) I recently tuned in .NET rocks and they talked about some optimization in .NET Nuke/ASP.NET notably, compression and how to strip whitespace formatting. I’m thinking of replacing the...
    Posted to Architecture (Forum) by leidegre on 06-13-2007, 12:00 AM
    Filed under: HtmlTextWriter
  • Text alignment with HyperLinks and images

    Hello, I have created a custom control based on the HyperLink control. My addition is to add an image that displays next to the link. The issue is that I can't seem to control the vertical alignment of the image in relation to the text. I have tried a number of different changes including surrounding...
    Posted to Custom Server Controls (Forum) by rboarman on 04-26-2007, 12:00 AM
    Filed under: asp.net 2.0, HtmlTextWriter, "custom control"
  • FCK Editor, enable source view on page load

    I am using a simple format of FCK editor to display HTML text grabbed from the Database. However when the page loads I want the source view to be enabled instead of the HTML view. In other words I would like to see the HTML tags in the textarea for the FCK editor. Thanks
    Posted to Component Discussions (Forum) by mayuresh_s on 02-16-2007, 12:00 AM
    Filed under: user control, user control content, UserControl, asp.net 2.0, control, ControlDesigner, Create Custom DataSource Control, custom control, HtmlTextWriter, user control property, user control show hide enable disable roles
Page 1 of 2 (15 items) 1 2 Next >