?
Solved

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

Posted on 2006-05-22
2
Medium Priority
?
454 Views
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:
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) ...
0
Comment
Question by:TransBind
2 Comments
 
LVL 5

Accepted Solution

by:
mirmansoor earned 2000 total points
ID: 16737796
try this

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


0
 
LVL 7

Author Comment

by:TransBind
ID: 16737936
my my loosing my mind here
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Loops Section Overview
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month17 days, 5 hours left to enroll

862 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