round web page control

I am in the process of creating a web page report. Using vb.net visual studio 2012. There I have to show status of a job. It has to be rounded label or control and has to be able to change color depends on the status. Which way should I implement it. Need an example just for one status control. Thank you. Greg
LeopoledAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Prakash SamariyaIT ProfessionalCommented:
Please try below sort of codes

<style>
.roundBorder{
//User can change Radius as per need
-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;
}

.Red{background-color:red;}
.Green{background-color:green;}
</style>

<script>
function ChangeLabel(color)
{
	if(color=='Red'){
		$('#msgLabel').removeClass('Green');
		$('#msgLabel').addClass('Red');
	}else if(color=='Green'){
		$('#msgLabel').removeClass('Red');
		$('#msgLabel').addClass('Green');
	}
}

//Call function to change the label color
ChangeLabel('Red');
</script>

<label for="Textbox1" id="msgLabel" class="roundBorder">My Label</label>

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.