Wednesday, 15 February 2012

c# - ASP.NET events not firing in Tag -


I have a tag when you hover over the second device tag with login and password form. But for some reasons the event is not going on. I keep the same control out of the hover and it can be removed.

At first I thought it was due to a drag-and-drop problem because my device can be dragged and it can be placed in the text box for the website link so I drag it on my page -And-Drop is disabled but the problem does not go away.

When I hover on the div, the mouse cursor also turns into a human cursor.

Here the code is provided on the main page, where the reason for the Navy-item is:

  & lt; Div class = "brick1" style = "width: 33%" & gt; & Lt; A href = "" class = "nav-item" & gt; & Lt; Div class = "nav-hover" & gt; & Lt; Div class = "loginbrick" & gt; & Lt; Asp: ContentPlaceHolder ID = "Loginplaceholder" runat = "server" & gt; & Lt; / ASP: ContentPlaceHolder & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; I class = "li_bulb" & gt; & Lt; / I & gt; & Lt; Span & gt; Hover, hover for login & lt; / Span & gt; & Lt; / A & gt; & Lt; / Div & gt;   

Content placeholder of Default.aspx:

  & lt; Asp: Content ID = "Content4" content placeholder ID = "login wordholder" runat = "server" & gt; & Lt; Form id = "benami form" run = "server" & gt; & Lt; ASP: Label ID = "Label1" runat = "server" text = "username:" CssClass = "aspTextView" & gt; & Lt; / ASP: Labels & gt; & Lt; ASP: Text Box ID = "TBUserName" Runat = "Server" CssClass = "aspTextBox "Onitex Changed =" TBUserNum_Which Changes "& gt; & Lt; / Asp: text box & gt; & Lt; Br / & gt; & Lt; Asp: Label ID = "Label2" runat = "server" text = "password:" CssClass = "aspTextView" & gt; & Lt; / Asp: label & gt; & Lt; Asp: text box id = "tb_Password" runat = "server" CssClass = "aspTextBox" & gt; & Lt; / Asp: text box & gt; & Lt; Br / & gt; & Lt; ASP: Button ID = "Button 1" Runat = "Server" Text = "Login" OnClick = "Button 1_Click" /> & Lt; / Form & gt; & Lt; / ASP: Content & gt;    

You are closing the div.nav-hover and div.loginbrick in the hyperlink . Try what happens when you remove it.

No comments:

Post a Comment