Click here to Skip to main content
15,909,193 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Question"asp to asp.net" Pin
ravikiranreddydharmannagari19-Jun-06 22:16
ravikiranreddydharmannagari19-Jun-06 22:16 
AnswerRe: "asp to asp.net" Pin
Vasudevan Deepak Kumar19-Jun-06 23:15
Vasudevan Deepak Kumar19-Jun-06 23:15 
QuestionDropDownList(Urgent) Pin
Zuhair Rizvi19-Jun-06 21:59
Zuhair Rizvi19-Jun-06 21:59 
AnswerRe: DropDownList(Urgent) Pin
Mohammed Amine19-Jun-06 23:36
Mohammed Amine19-Jun-06 23:36 
AnswerRe: DropDownList(Urgent) Pin
sandeep_thakur20-Jun-06 1:03
sandeep_thakur20-Jun-06 1:03 
QuestionFile Upload and Postback Pin
Sirisha Pandrangi19-Jun-06 20:57
Sirisha Pandrangi19-Jun-06 20:57 
Questionlong names to be displayed in dropdownlist as Items Pin
sishya19-Jun-06 20:33
sishya19-Jun-06 20:33 
AnswerRe: long names to be displayed in dropdownlist as Items [modified] Pin
sarah_chandran20-Jun-06 0:37
sarah_chandran20-Jun-06 0:37 
I am not sure if this is the best solution but just try it.
Use javascript to display the name on mouse over,steps are as follows

1.try to add a div tag in html file:
<div id="tooltip" style="POSITION: absolute;" noWrap></div>

2.add this in code behind - ddl is name of your drop down list
ddl.Attributes.Add("onmouseover", "showTooltip();");
ddl.Attributes.Add("onmouseout", "showTooltip();");
i.e on mouseover you can see the name on mouse out the name disappears
3.Add the following javascript function

showTooltip = function ()
{
var obj = document.getElementById("ddl");

if(event.type == "mouseout")

{

document.getElementById("tooltip").style.display = "none";


}
else
{


document.getElementById("tooltip").innerHTML =obj.options[obj.selectedIndex].text;
document.getElementById("tooltip").style.display = "inline";
document.getElementById("tooltip").style.backgroundColor="#ffffcc";
document.getElementById("tooltip").style.paddingTop="1px";
document.getElementById("tooltip").style.paddingBottom ="1px";
document.getElementById("tooltip").style.paddingLeft ="1px";
document.getElementById("tooltip").style.paddingRight ="1px";
document.getElementById("tooltip").style.borderColor="black";
document.getElementById("tooltip").style.color="black";
document.getElementById("tooltip").style.borderWidth="1px";
document.getElementById("tooltip").style.borderStyle="solid";
document.getElementById("tooltip").style.top = screen.height;
document.getElementById("tooltip").style.left = screen.height ;


}
note: you have to change the top and left values by adding some constant number by trial and error method eg:
document.getElementById("tooltip").style.top = screen.height+500;
document.getElementById("tooltip").style.left = screen.height+20 ;

also check how the page looks at different resolutions.

-- modified at 6:39 Tuesday 20th June, 2006
QuestionHow to get solution for sqldatasource Pin
ChennaiBabu19-Jun-06 20:32
ChennaiBabu19-Jun-06 20:32 
AnswerRe: How to get solution for sqldatasource Pin
RichardGrimmer20-Jun-06 5:37
RichardGrimmer20-Jun-06 5:37 
QuestiontreevieW in asp.net 1.1 Pin
amaneet19-Jun-06 19:59
amaneet19-Jun-06 19:59 
AnswerRe: treevieW in asp.net 1.1 Pin
Vasudevan Deepak Kumar19-Jun-06 23:20
Vasudevan Deepak Kumar19-Jun-06 23:20 
QuestionUpdate a Resource File Pin
smita_roy19-Jun-06 19:24
smita_roy19-Jun-06 19:24 
QuestionPrinting the grid........ Pin
Nagraj Naik19-Jun-06 18:41
Nagraj Naik19-Jun-06 18:41 
QuestionCookie Authentication Pin
munjalpandya19-Jun-06 18:38
munjalpandya19-Jun-06 18:38 
QuestionSingle sign on Pin
ranjuforum19-Jun-06 17:48
ranjuforum19-Jun-06 17:48 
AnswerRe: Single sign on Pin
Vasudevan Deepak Kumar19-Jun-06 23:22
Vasudevan Deepak Kumar19-Jun-06 23:22 
QuestionEvaluate string as object name Pin
brnwdrng19-Jun-06 12:40
brnwdrng19-Jun-06 12:40 
AnswerRe: Evaluate string as object name Pin
Alsvha19-Jun-06 21:20
Alsvha19-Jun-06 21:20 
GeneralRe: Evaluate string as object name Pin
brnwdrng20-Jun-06 4:28
brnwdrng20-Jun-06 4:28 
Questionwhat is viewstate ? Pin
Mohammed Amine19-Jun-06 11:50
Mohammed Amine19-Jun-06 11:50 
AnswerRe: what is viewstate ? Pin
varshavmane19-Jun-06 20:17
varshavmane19-Jun-06 20:17 
GeneralRe: what is viewstate ? Pin
Mohammed Amine19-Jun-06 23:34
Mohammed Amine19-Jun-06 23:34 
GeneralRe: what is viewstate ? Pin
varshavmane19-Jun-06 23:43
varshavmane19-Jun-06 23:43 
GeneralRe: what is viewstate ? Pin
Mohammed Amine19-Jun-06 23:46
Mohammed Amine19-Jun-06 23:46 

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.