Search Results

Search found 4 results on 1 pages for 'jlech'.

Page 1/1 | 1 

  • How to get HTML of HtmlControl object in backend

    - by jlech
    I have a short snippet of C# code like this: HtmlGenericControl titleH3 = new HtmlGenericControl("h3"); titleH3.Attributes.Add("class", "accordion"); HtmlAnchor titleAnchor = new HtmlAnchor(); titleAnchor.HRef = "#"; titleAnchor.InnerText = "Foo Bar"; titleH3.Controls.Add(titleAnchor); What I want is a way to return a string that looks like this: <h3 class="accordion"><a href="#">Foo Bar</a></h3> Any thoughts or suggestions?

    Read the article

  • Nesting a SharePoint Webpart inside of a User Control

    - by jlech
    I know it's usually the other way around, but I have some extenuating requirements that must be met (read as "No one bothered to do the research and now I have to bail them out") I have a standard user control (ascx) that is to be imported into a SharePoint 2007 website. Due to a design constraint, a sharepoint web part that is also needed has to be nested inside of this user control. So in other words, the user control would have to look something like this: <%@ Control Language="C#" AutoEventWireup="true" CodeFile="foo.ascx.cs" Inherits="foo" %> <div id="container"> ...snipped... <!-- SharePoint web part goes here --> ...snipped... </div> Any help would be appreciated. Thanks!

    Read the article

  • How do I override the OK/Cancel button of new list item form in SharePoint?

    - by jlech
    I have a custom list in SharePoint, and I want to override the OK/Cancel buttons that are in the New Item form (The form displayed when you click "New" in the default view of the list). I want the saving logic to remain intact, but I just want to change the default page it redirects to, ideally, to a whole separate page on the site that's not a view of the list. Is there any way I can achieve this? Thanks in advance!

    Read the article

1