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:
onchange="return(IFrameReload(this,'function_offices_details.aspx',37));"

Service is dynamic parameter ... I tried to do Convert.ToInt32(Service) but it will actually pass Convert.ToInt32(Service) ...
LVL 7
TransBindAsked:
Who is Participating?
 
mirmansoorConnect With a Mentor Commented:
try this

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


0
 
TransBindAuthor Commented:
my my loosing my mind here
0
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.