Click here to Skip to main content
15,888,286 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Dynamic controls [modified] Pin
Yusuf28-Feb-09 18:57
Yusuf28-Feb-09 18:57 
GeneralRe: Dynamic controls Pin
rehal28-Feb-09 19:01
rehal28-Feb-09 19:01 
Questioncookie Pin
vaibhav08728-Feb-09 18:39
vaibhav08728-Feb-09 18:39 
AnswerRe: cookie Pin
Yusuf28-Feb-09 18:56
Yusuf28-Feb-09 18:56 
Questionhow to use "tab control"?? Pin
lsh486love28-Feb-09 17:53
lsh486love28-Feb-09 17:53 
AnswerRe: how to use "tab control"?? Pin
Yusuf28-Feb-09 21:31
Yusuf28-Feb-09 21:31 
GeneralRe: how to use "tab control"?? Pin
lsh486love1-Mar-09 14:35
lsh486love1-Mar-09 14:35 
Questionpassing function arguments on a onmouseover event [modified] Pin
alvarog0128-Feb-09 9:28
alvarog0128-Feb-09 9:28 
Hi all,

i am trying to use the following on asp.net / C# application:

On server side:

public static void AyudaContextual(System.Web.UI.WebControls.WebControl vControl, string Texto)
{
     vControl.Attributes.Add("onmouseover", "OnMouseOver(txtInfo, " + Texto + ")");
}


On client side: (in-aspx page code):

<head runat="server">
    <script type="text/javascript">
        function OnMouseOver(TextBox, string) {
            TextBox.style.backgroundColor = "#DEDFDE"; 
            TextBox.style.color = "#006666";
            TextBox.style.fontWeight = "normal";
            TextBox.innerHTML = string;
        }        
        
    </script>
</head>


as you can see, all i want is that when i hover my mouse on vControl control, its onmouseover event changes TexBox "txtInfo" appearence and puts some text ("Texto") inside it. But i have no idea how to specify the second argument (Texto), the other code seems to work.

I am new to asp.net so this question maybe is too simple.... thanks for helping me.

modified on Saturday, February 28, 2009 3:59 PM

AnswerRe: passing function arguments on a onmouseover event Pin
Calin Tatar28-Feb-09 13:08
Calin Tatar28-Feb-09 13:08 
GeneralRe: passing function arguments on a onmouseover event Pin
alvarog012-Mar-09 1:17
alvarog012-Mar-09 1:17 
Questionhandle sql error to stop user reputation Pin
netsooz (Amir Hamidi)28-Feb-09 9:19
netsooz (Amir Hamidi)28-Feb-09 9:19 
AnswerRe: handle sql error to stop user reputation Pin
Curtis Schlak.28-Feb-09 12:45
Curtis Schlak.28-Feb-09 12:45 
GeneralRe: handle sql error to stop user reputation Pin
netsooz (Amir Hamidi)28-Feb-09 19:44
netsooz (Amir Hamidi)28-Feb-09 19:44 
GeneralRe: handle sql error to stop user reputation Pin
Curtis Schlak.1-Mar-09 1:27
Curtis Schlak.1-Mar-09 1:27 
AnswerRe: handle sql error to stop user reputation Pin
Sam Horne1-Mar-09 14:58
Sam Horne1-Mar-09 14:58 
QuestionUrgent help Pin
dream_liner_7e728-Feb-09 8:28
dream_liner_7e728-Feb-09 8:28 
QuestionDatalist Master - Detail page Pin
bruce32128-Feb-09 5:19
bruce32128-Feb-09 5:19 
QuestionDynamic controls in ASP.Net Pin
Jas 00728-Feb-09 4:31
Jas 00728-Feb-09 4:31 
AnswerRe: Dynamic controls in ASP.Net Pin
Calin Tatar28-Feb-09 7:27
Calin Tatar28-Feb-09 7:27 
Questionbarcode program Pin
bonaokolo28-Feb-09 3:39
bonaokolo28-Feb-09 3:39 
AnswerRe: barcode program Pin
Calin Tatar28-Feb-09 4:26
Calin Tatar28-Feb-09 4:26 
Questionxsl/xslt in .net Pin
SWETHASACHDEVA28-Feb-09 2:31
SWETHASACHDEVA28-Feb-09 2:31 
AnswerRe: xsl/xslt in .net Pin
Curtis Schlak.28-Feb-09 3:01
Curtis Schlak.28-Feb-09 3:01 
QuestionTreeView Sort Pin
mehrdadc4828-Feb-09 2:20
mehrdadc4828-Feb-09 2:20 
AnswerRe: TreeView Sort Pin
Curtis Schlak.28-Feb-09 3:06
Curtis Schlak.28-Feb-09 3:06 

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.