Search

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

Matching Posts

  • Re: using tokens for email template

    currently I have this code: public class Token : IEnumerable { private string[] elements; public Token(string source, string firstname, string lastname, string email, string customer) { // Parse the string into tokens: Dictionary<string, string> token = new Dictionary<string, string>(); token["{{FirstName}}"] = firstname; token["{{LastName}}"] = lastname; token["{{email}}"] = email; token["{{customer}}"] = customer; elements = source.Replace("This", "Hello"); //(t, token[t]); } // IEnumerable
    Posted to C# (Forum) by mmeenagh31 on 1/6/2006
  • using tokens for email template

    I'm looking for some help to develope an email module which allows a user to specify an email template upto 5 templates and use delimiters to specify username, address details and passwords. eg To {{name}} {{Address}} - like mail merge. the name and addresses are stored in database. I have this code "private string[] elements; Tokens(string source, char[] delimiters) { // Parse the string into tokens: elements = source.Split(delimiters); } // IEnumerable Interface Implementation: // Declaration of
    Posted to C# (Forum) by mmeenagh31 on 1/5/2006
  • Re: Dropdown list box - limiting number of items displayed

    I want to show all the rows but limit the number displayed at a time to 5. Marty
    Posted to Data Presentation Controls (Forum) by mmeenagh31 on 9/28/2005
  • Dropdown list box - limiting number of items displayed

    I'm trying to create a drop down listbox which shows all the states in the US but the dropdown listbox shows to many of them at once i want to limit the number to 5 and not 30 which it shows now. I think this is a simple questions but can't find the solution anywhere. Regards, Marty
    Posted to Data Presentation Controls (Forum) by mmeenagh31 on 9/28/2005
  • Re: Creating an email mock system

    Got no feedback, maybe was a bit to much to ask Marty
    Posted to Web Forms (Forum) by mmeenagh31 on 9/28/2005
  • Re: Downloading file from DB and Response.Redirect problem in C#

    Any help would be great, even how i could do the download function differently so i don't get this problem
    Posted to Data Presentation Controls (Forum) by mmeenagh31 on 9/27/2005
  • Downloading file from DB and Response.Redirect problem in C#

    I've written this code to download a file from the database : protected void __Files_SelectedIndexChanged(Object sender, EventArgs e) { int fileid = Convert.ToInt32(__Files.SelectedDataKey.Value); VendorItemFileEntity file = new VendorItemFileEntity(fileid); byte[] Buffer = file.Content; string filename = file.Filename; Response.ContentType = "application/octet-stream"; Response.Clear(); Response.AddHeader("Content-Disposition", "attachment;filename=" + filename); Response.OutputStream.Write(Buffer
    Posted to Data Presentation Controls (Forum) by mmeenagh31 on 9/26/2005
  • Re: gridview and binding with middle tier

    So how do i implement sorting in gridview?
    Posted to Data Presentation Controls (Forum) by mmeenagh31 on 8/18/2005
  • Re: gridview and binding with middle tier

    Got it figured out used this code: public delegate void GridViewDeleteEventHandler ( Object sender, GridViewDeleteEventArgs e); void __Dependencies_RowDeleting( Object sender, GridViewDeleteEventArgs e) { GridViewRow i = __Dependencies.Rows[e.RowIndex]; int dependancyid = Convert .ToInt32((( Label )i.FindControl( "__DependancyId" )).Text.ToString()); Vendor .deleteDependancy(dependancyid); BindData(); } had to declare delegate first before i could specify rowdeleting code. so all i had to do in gridview
    Posted to Data Presentation Controls (Forum) by mmeenagh31 on 8/17/2005
  • Re: gridview and binding with middle tier

    This is my HTML code not much to it: < asp : GridView ID ="__Dependencies" runat ="server" AutoGenerateColumns ="False" AllowPaging ="True" PageSize ="5" OnRowDeleting ="Delete" < Columns > < asp : TemplateField HeaderText ="Vendor Item"> < ItemTemplate > < asp : Label ID ="__vendorItem" runat ="server" Text =' <%# Bind("itemNumber") %> '></ asp : Label > </ ItemTemplate > < EditItemTemplate > < asp : TextBox ID ="TextBox1" runat ="server" Text
    Posted to Data Presentation Controls (Forum) by mmeenagh31 on 8/17/2005
Page 1 of 3 (22 items) 1 2 3 Next >