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

.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) ...
Who is Participating?
mirmansoorConnect With a Mentor Commented:
try this

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

TransBindAuthor Commented:
my my loosing my mind here
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.