Search

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

Matching Posts

  • Re: viewstate does not presists during postback - dynamic controls

    http://pinkprogrammer.blogspot.com/2008/12/insert-new-row-into-gridview.html
    Posted to Web Forms (Forum) by asasa.mihai on 12/25/2008
  • Re: set Range color when creating Excel Document

    I use office 2007 and I think this is my problem. (with the Compatibility Checker) I get the exact message from this link: http://blogs.msdn.com/excel/archive/2006/08/11/694891.aspx but it's ok, I've tested it with office 2003 and it's working! Thank you both for your answers
  • Re: set Range color when creating Excel Document

    It gives me the error: Methods with System.Color parameters or return type cannot be invoked via IDispatch. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Methods with System.Color parameters or return type cannot be invoked via IDispatch. Source Error: Line 100: Color customColor = Color.FromArgb
  • Re: set Range color when creating Excel Document

    If I try System.Drawing.Color col = System.Drawing.ColorTranslator.FromHtml("#efefef"); range.Interior.Color = System.Drawing.ColorTranslator.ToOle(col); it gives me an error when the file is saving: Exception from HRESULT: 0x800A03EC xlsWorkBook.SaveAs(strCurrentDir + strFile, Excel.XlFileFormat.xlWorkbookNormal, ......... thanks
  • Re: set Range color when creating Excel Document

    Thank you very much, it worked! But how can I use a color like "#ddeeee" ? Thanks again.
  • set Range color when creating Excel Document

    Hi, I read a lot of posts where people were complaining about setting the color for an Excel.Range (using Excel = Microsoft.Office.Interop.Excel) Besides Excel.Range range = null; range = (Excel.Range)xlsWorkSheet.get_Range(xlsWorkSheet.Cells[1, 1], xlsWorkSheet.Cells[1, 4]); range.Interior.ColorIndex = 22; (meaning ColorIndex) does anybody know another solution? or how cand I know what index I should choose for #fefgghe for example? Thanks.
    Posted to Enterprise Services Integration (Forum) by asasa.mihai on 12/15/2008
    Filed under: Range Interior color
  • Re: Page refresh keeps triggering event

    http://bytes.com/forum/thread747934.html
    Posted to Web Forms (Forum) by asasa.mihai on 11/18/2008
  • Re: viewstate does not presists during postback - dynamic controls

    If you could tell us why is so important to you to recreate these controls exactly after the button's onclick event, maybe we could come with some ideeas. Like u said, "If I'm re-creating the controls in my OnLoad event, the newly created controls bind to the ViewState just fine, provided that I use the same IDs every time.". I had a problem like this once, but I solve it refreshing the page( making a redirect to the page after onclick, since I was checking the date from the database
    Posted to Web Forms (Forum) by asasa.mihai on 11/14/2008
  • Re: Page refresh keeps triggering event

    First of all, I think you're confusing 2 types of events: the command and the click event. The click event is a simple event that reacts to the click and in this case it's not appropriate to use the CommandName and CommandArgument Attributes. You add it to the button using OnClick="btn_Click". The function to handle this event has the signature: protected void btn_Click(object sender, EventArgs e) -ImageClickEventArgs e for ImageButton. The command event allows you to pass a command
    Posted to Web Forms (Forum) by asasa.mihai on 11/14/2008
  • Re: get delete action

    I don't understand exactly what are you asking for... <asp:button id="btnUpdate" CssClass="txt1" Text="Save" CommandArgument="1234" CommandName="Update" OnCommand="btnUpdate_Command" runat="server" > protected void btnUpdate_Command(object sender, EventArgs e) { string action = ((Button)sender).CommandName.ToString(); string id= ((Button)sender).CommandArgument.ToString(); // make an update considering the id ... }
    Posted to Web Forms (Forum) by asasa.mihai on 11/13/2008
Page 1 of 4 (38 items) 1 2 3 4 Next >