evaluate parameter .Attributes.Add("onchange"  ....

Posted on 2006-05-22
Last Modified: 2008-03-17
.Attributes.Add("onchange" , "return(IFrameReload(this,'function_offices_details.aspx',Service));");

in my code when I run above statement it should evaluate Service parameter as a value and it evaluates as a string ... how can pass it as an actual value

This is what HTML Looks like:
<select name="OfficeList:LeftBox" onchange="return(IFrameReload(this,'function_offices_details.aspx',Service));">

This is what it should look like:

Service is dynamic parameter ... I tried to do Convert.ToInt32(Service) but it will actually pass Convert.ToInt32(Service) ...
Question by:TransBind
    LVL 5

    Accepted Solution

    try this

    "return(IFrameReload(this,'function_offices_details.aspx'," & Service & "));");

    LVL 7

    Author Comment

    my my loosing my mind here

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
    This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now