Develop ASP.NET Code That Will 1.)Change the Rendering of a Single Quote and Also 2.) To Create Rollover Effects on an ASP.NET Image Button Control

Completed Posted Jun 10, 2011 Paid on delivery
Completed Paid on delivery

Develop ASP.NET Code That Will 1.)Change the Rendering of a Single Quote and Also 2.) To Create Rollover Effects on an ASP.NET Image Button Control

## Deliverables

Develop ASP.NET Code That Will 1.)Change the Rendering of a Single Quote and Also 2.) To Create Rollover Effects on an ASP.NET Image Button Control

1.)

Develop code that will render the following c# code as is in HTML when the page is rendered

[url removed, login to view] = "javascript:displayDocuemnt('[url removed, login to view]',2,0,0)";

In the .NET framework the rendering replaces the single quotes with ' which does not work. The href should look just like this javascript:displayDocuemnt('[url removed, login to view]',2,0,0) when the control is rendered.

I tried adding the controlRenderinigCompatibilityVersion setting in the config file but did not correct the problem.

I need code that I can put in my code behind so I can programically set the navigationurl property of am asp.net control that will work in asp.net 4.0

2.)

Develop code that will add attributes to an Image Button control as follows:

[url removed, login to view]("onmouseover", "changeImages('" + [url removed, login to view] + "', " + "'" + imagesPath + "[url removed, login to view]'); return true;");

[url removed, login to view]("onmouseout", "changeImages('" + [url removed, login to view] + "', " + "'" + imagesPath + "[url removed, login to view]'); return true;");

[url removed, login to view]("name", [url removed, login to view]);

or

[url removed, login to view]("onmouseover", "changeImages('" + "button1" + "', " + "'" + imagesPath + "[url removed, login to view]'); return true;");

[url removed, login to view]("onmouseout", "changeImages('" + "button1" + "', " + "'" + imagesPath + "[url removed, login to view]'); return true;");

[url removed, login to view]("name", "button1");

the code above works if I apply it to a asp.net hyperlink but does not seem to work when I apply this same code to a asp.net image button. I need the above code to work with an asp.net image control in asp.net 4.0 accordingly.

The javacript works correctly but when applying this code to an image button it does not work. The javascript fails. No changes need to be made to the javascript.

The javascript that the code calls is as follows:

function changeImages() {

//Get current page

var path = [url removed, login to view]

//var url = [url removed, login to view] + "//" + [url removed, login to view] + [url removed, login to view](0, [url removed, login to view]('/') + 1);

var url = ""

if ([url removed, login to view] == "localhost")

{

url = [url removed, login to view] + "//" + [url removed, login to view] + "/laundryladycleaners/";

}

else

{

url = [url removed, login to view] + "//" + [url removed, login to view] + "/";

}

//alert(url);

var pageName = [url removed, login to view]([url removed, login to view]('/') + 1);

var pageID = [url removed, login to view](0,[url removed, login to view]('.'));

//alert(pageID);

//alert(arguments[0]);

if (pageID == arguments[0]) {

//return true;

}

if ([url removed, login to view] && (preloadFlag == true)) {

for (var i=0; i<[url removed, login to view]; i+=2) {

//document[[url removed, login to view][i]].src = [url removed, login to view][i+1];

//alert(document[[url removed, login to view][i]].src);

//document[[url removed, login to view][i]].src = "images/common/menu02/"+[url removed, login to view][i+1];

//document[[url removed, login to view][i]].src = url + "images/common/menu02/"+[url removed, login to view][i+1];

document[[url removed, login to view][i]].src = [url removed, login to view][i+1];

//alert([url removed, login to view][i+1]);

//alert(document[[url removed, login to view][i]].src);

}

}

}

**All coding must be done in c# in the .NET 4.0 framework using VS2010.**

**No 3rd party controls to be used in the source code**

**All coding to be done in the code behind of the webpage**

** **

.NET ASP C# Programming Engineering MySQL PHP Project Management Software Architecture Software Testing Web Hosting Website Management Website Testing

Project ID: #3372235

About the project

2 proposals Remote project Active Jun 11, 2011

Awarded to:

xuanchien

See private message.

$12 USD in 2 days
(14 Reviews)
3.3

2 freelancers are bidding on average $15 for this job

mazms

See private message.

$17 USD in 2 days
(23 Reviews)
3.9