Web Forms :: How To Make This Effect: That Hyper Link(HOME) Is On That Dark Blue Background
May 9, 2010
Please check this website: [URL]My question is that how can I make this effect: that hyper link(HOME) is on that dark blue background. How can I do it?
I want to put five buttons: introduction, product, history, feedback, contact. And when I click any one button, that button became dark blue, and others remain, no changes. So I write the following code:
Protected Sub ImageButton1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click ImageButton1.ImageUrl = "~/image/CHOICE INTRODUCTION BLUE.jpg" ImageButton2.ImageUrl = "~/image/CHOICE PRODUCTS.jpg" ImageButton3.ImageUrl = "~/image/CHOICE HISTORY.jpg" ImageButton4.ImageUrl = "~/image/CHOICE FEEDBACK.jpg" ImageButton5.ImageUrl = "~/image/CHOICE CONTACT.jpg" End Sub Protected Sub ImageButton2_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton2.Click ImageButton1.ImageUrl = "~/image/CHOICE INTRODUCTION.jpg" ImageButton2.ImageUrl = "~/image/CHOICE PRODUCTS BLUE.jpg" ImageButton3.ImageUrl = "~/image/CHOICE HISTORY.jpg" ImageButton4.ImageUrl = "~/image/CHOICE FEEDBACK.jpg" ImageButton5.ImageUrl = "~/image/CHOICE CONTACT.jpg" End Sub Protected Sub ImageButton3_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton3.Click ImageButton1.ImageUrl = "~/image/CHOICE INTRODUCTION.jpg" ImageButton2.ImageUrl = "~/image/CHOICE PRODUCTS.jpg" ImageButton3.ImageUrl = "~/image/CHOICE HISTORY BLUE.jpg" ImageButton4.ImageUrl = "~/image/CHOICE FEEDBACK.jpg" ImageButton5.ImageUrl = "~/image/CHOICE CONTACT.jpg" End Sub Protected Sub ImageButton4_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton4.Click ImageButton1.ImageUrl = "~/image/CHOICE INTRODUCTION.jpg" ImageButton2.ImageUrl = "~/image/CHOICE PRODUCTS.jpg" ImageButton3.ImageUrl = "~/image/CHOICE HISTORY.jpg" ImageButton4.ImageUrl = "~/image/CHOICE FEEDBACK BLUE.jpg" ImageButton5.ImageUrl = "~/image/CHOICE CONTACT.jpg" End Sub Protected Sub ImageButton5_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton5.Click ImageButton1.ImageUrl = "~/image/CHOICE INTRODUCTION.jpg" ImageButton2.ImageUrl = "~/image/CHOICE PRODUCTS.jpg" ImageButton3.ImageUrl = "~/image/CHOICE HISTORY.jpg" ImageButton4.ImageUrl = "~/image/CHOICE FEEDBACK.jpg" ImageButton5.ImageUrl = "~/image/CHOICE CONTACT BLUE.jpg" End Sub
It is workable, however there is only one problem: when i debug it some times it is ok, but some few times the button suddenly became small.
if a cell background colour is dark (not just black, could be many shades of grey) and then change the cell font to a lighter colour so as to contrast the background colour and make the text easier to read?
I have a asp.net gridview , with a column as Hyperlink.I have employee id in this column.When I click this employeeid, I want to go to another page, and load data based on the employee id.How can I know, which employee id, I clicked so that I can load data based on this employee id.Can I use event bubbling for this?
Is there any way of using ajax confirm button for dynamically created hyper link control?
I am using data in table and each row has dynamically created link control, so if the user click on the link then it will delete the row from database. Is there any way if i can use ajax confirm button for hyper link?
I have used the AnimationExtender to display a panel when I hover over a hyperlink. I want it to automatically close the panel when I move off of the hyperlink.
In the code below I thought I could add an OnHoverOut to the Animations, but only one animation is allowed.
I have relatively little experience. I suspect this is a simple problem but I couldn't find the answer. At the top of each page I have a Home link which was working fine as long as all my ".aspx" files were in the root directory.
But after reading a little bit about authorization, I moved all the files dealing with the membership database into a Membership folder with its separate web.config to restrict access to anonymous users.
My anchor is: <a href="default.aspx">. Now if I am on a membership page it is looking for SITENAME/Membership/default.aspx. I have tried many different specifications, e.g., ~/, ../, /, etc. The "~/default.aspx" results it looking for SITENAME/Membership/~/default.aspx.
They all fail except an absolute complete path specification. However, this causes the logged on user to be logged off!
I have seen in so many sites on the home page there is a search option and after searching any word of the website it displays and in w3schools it navates to goolge with his reference.
How to write a code for the same and which control we should use.
I want to know how I can make website available in my private home network? I know I am supposed to make my IP address static but I still do not know the complete steps to accomplish what I want to do. Is this even possible? If it is can someone please explain to me what I have to do?
How to make your home page shows a small part of your post with the title and "read more.." button, so once you click on the "read more.." button you will be taken into page with the entire post.
I have taken background-image of a Table and Panel, that image's corner is rectangula. How can i make its corners Rounded ?I searched some online resources, images were made rounded, how to make make background-image rounded on the fly ?
I spent the better part of today hunting down an elusive error. I was getting a message saying that it couldn't find the Index view for the Home controller, and it gave a list of locations it searched, e.g., ~/Views/Home/Index.aspx. This was really confusing as the file definitely existing and was at ~/Views/Home/Index.aspx, the first place in the list of locations it searched for the view!
What I eventually discovered was that there was a file that did not get published when I used Visual Studio's "Publish" feature (this is on the "Build" menu). That file was Views/Home/Home.master, and (as you can probably guess) is the master file used by Views/Home/Index.aspx. Once I copied that file into place manually, it started working. But I am left wondering--why??? Why does this file not get published? It's a part of my project, I can see it in the solution explorer, and it's obviously a critical file that's necessary for the MVC app to run. It has the same permissions as every other file in my project. So why wouldn't it get copied? And how can I fix it so it does get copied?