Click here to Skip to main content
15,905,682 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Question about the URL string? Can a website be aware of what the user enters by hand in the URL string... Pin
basilmir11-Mar-10 23:34
basilmir11-Mar-10 23:34 
QuestionDisable a hyperlink Pin
MacIntyre3-Dec-09 21:45
MacIntyre3-Dec-09 21:45 
AnswerRe: Disable a hyperlink Pin
Abhishek Sur3-Dec-09 22:04
professionalAbhishek Sur3-Dec-09 22:04 
It could be done easily using this :

.disabledLink
{
color: #333;
text-decoration : none;
cursor: default;
}


Use this Javascript to do this in client side.
function disablelink(linkID)
{
var hlink = document.getElementById(linkID);
if(!hlink)
return;

hlink.href = "#";
hlink.className = "disableLink";
}


or in ItemDataBound use :
ctrl.CssClass = "disabledLink";
ctrl.Href = "#";



It will be disabled. Cool | :cool:

Why do you require to create ID. If you place the server side ID, you might use ClientId to get what id is generated in the client. Wink | ;)

Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->

Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript

AnswerRe: Disable a hyperlink Pin
bhavnvyas3-Dec-09 22:06
bhavnvyas3-Dec-09 22:06 
GeneralRe: Disable a hyperlink Pin
MacIntyre3-Dec-09 22:19
MacIntyre3-Dec-09 22:19 
GeneralRe: Disable a hyperlink Pin
bhavnvyas3-Dec-09 22:35
bhavnvyas3-Dec-09 22:35 
GeneralRe: Disable a hyperlink Pin
MacIntyre3-Dec-09 22:49
MacIntyre3-Dec-09 22:49 
GeneralRe: Disable a hyperlink Pin
bhavnvyas3-Dec-09 23:17
bhavnvyas3-Dec-09 23:17 
GeneralRe: Disable a hyperlink Pin
MacIntyre3-Dec-09 22:52
MacIntyre3-Dec-09 22:52 
GeneralRe: Disable a hyperlink Pin
MacIntyre3-Dec-09 23:03
MacIntyre3-Dec-09 23:03 
GeneralRe: Disable a hyperlink Pin
bhavnvyas3-Dec-09 23:19
bhavnvyas3-Dec-09 23:19 
QuestionJavascript Errors Pin
Johndas3-Dec-09 19:37
Johndas3-Dec-09 19:37 
AnswerRe: Javascript Errors Pin
keyur satyadev3-Dec-09 19:44
keyur satyadev3-Dec-09 19:44 
AnswerRe: Javascript Errors Pin
nainakarri3-Dec-09 19:47
nainakarri3-Dec-09 19:47 
AnswerRe: Javascript Errors Pin
rakeshs3123-Dec-09 20:03
rakeshs3123-Dec-09 20:03 
AnswerRe: Javascript Errors Pin
Abhijit Jana3-Dec-09 21:20
professionalAbhijit Jana3-Dec-09 21:20 
QuestionAjax Update Panel Pin
Amit Patel19853-Dec-09 19:36
Amit Patel19853-Dec-09 19:36 
AnswerRe: Ajax Update Panel Pin
keyur satyadev3-Dec-09 19:41
keyur satyadev3-Dec-09 19:41 
AnswerRe: Ajax Update Panel Pin
Jagz W3-Dec-09 19:42
professionalJagz W3-Dec-09 19:42 
QuestionChange a web appl. from Visual Studio 2005 to Visual Studio 2008 Pin
Ravindra Bisen3-Dec-09 19:33
Ravindra Bisen3-Dec-09 19:33 
AnswerRe: Change a web appl. from Visual Studio 2005 to Visual Studio 2008 Pin
Jagz W3-Dec-09 19:40
professionalJagz W3-Dec-09 19:40 
QuestionExport Crystal report to Pdf using parameters Pin
rhtbhegade3-Dec-09 19:20
rhtbhegade3-Dec-09 19:20 
QuestionRegular Expression or strin manipulation Pin
CoderOnline3-Dec-09 18:22
CoderOnline3-Dec-09 18:22 
AnswerCross Post Pin
dan!sh 3-Dec-09 18:43
professional dan!sh 3-Dec-09 18:43 
GeneralRe: Cross Post Pin
CoderOnline3-Dec-09 19:44
CoderOnline3-Dec-09 19:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.