|
could u please give me some example i am not good in java script.
Thanks a lot
|
|
|
|
|
Any hints on how to debug this scenario:
I inherited code which uses Jquery hoverIntent to swap images on left nav mouseover.
I open an .aspx page in IE7. The mouseover on the left nav changes the image showing in the center of the screen. Click on menu navigates to appropriate page.
I open the same page in IE7. The mouseover on the left nav changes nothing. Click on menu does nothing.
About 1 time in 15 the mouseover/navigation works.
View source in both situations reveals identical html.
Closest I could find is there is a bug in the jquery hoverIntent plug-in for IE7 on mouseout. The mouseout callback is an empty function.
Everything works fine in FF3
|
|
|
|
|
It turned out to be a race condition type problem.
The masterpage had script includes that performed set up functions in onready.
The aspx page needed to add a class to the body tag in the masterpage, also onready.
FF3 handled it. IE7 didn't.
I took the onready wrapper off the addclass code in the .aspx page and it works (so far)
|
|
|
|
|
Hi to All,
I am Using AutoGenerate Column in GridView.
Can I define the Datatype and Column with for a Column ?
|
|
|
|
|
OF course not. You auto generated them, remember ? You can define a template, but your template gets ADDED, you can't remove the autogenerated columns.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Thanks for your Reply. Using template how to do it.
|
|
|
|
|
Just the standard way. Define a templated column and it will be added to the list.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
|
hi
i want to dopdown list like that----when i press ,suppose "a" it will display all item starting with "a----" etc.
thanks in advance
|
|
|
|
|
Try ASP.NET auto completion texbox.
Check this link[^]
|
|
|
|
|
thanks.
if u able to tell me that facility in dropdown list than it will be better for me
|
|
|
|
|
Well, the control obviously does not do that. If you want someone to write you a control that does, I suggest you head on over to the jobs section and pay someone to do it.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
hello,
I'm using "asp:Login" control it's very nice except that I'm not quite sure now toadd "onmousedown" javascript handler?
Any suggestion?
Thanks
dev
|
|
|
|
|
You may have to make a layout template for it and add the attribute to the login button.
|
|
|
|
|
thanks but not sure if i understand what you mean exactly...
dev
|
|
|
|
|
If you want to onmousedown event to the User Name and Password textboxes in the login control, then
((TextBox)Page.FindControl("Login1$UserName")).Attributes.Add("onmousedown", "alert('User name event')");
((TextBox)Page.FindControl("Login1$Password")).Attributes.Add("onmousedown", "alert('Password event')");
Here Login1 is the Id of the asp:Login control.
|
|
|
|
|
thanks it worked - my UserName textbox is embedded *inside* an <asp:login> control. Rendered on client side this became:
<br />
<input name="ctrlLogin$UserName" type="text" id="ctrlLogin_UserName" /><br />
I checked javascript the following DID add the "onmousedown" javascript handler to it:
<br />
((TextBox)Page.FindControl("ctrlLogin$UserName")).Attributes.Add("onmousedown", "alert('User name onmousedown event')");<br />
dev
|
|
|
|
|
I use the following to add javascript functionality to a Textbox when I do not want the page to postback, but need an action to take place. SetBlur is the name of my javascript routine, try replacing the 'onchange' with 'onmousedown'? You just need the existing/appropriate event name.
txtTextbox.Attributes.Add("onchange", "SetBlur();")
|
|
|
|
|
thanks i know how to add attribute but how to find the login textbox WITHIN ASP:Login control?
dev
|
|
|
|
|
oh see Ramesh post, problem solved thanks!
dev
|
|
|
|
|
I created a table to display an image with a caption as header. I am using a user
control for the purpose.
one use of user control is in an ordinary web page and the other use is in a page that only
an administrator can access.
Following is the rendered code seen in the view source of both web forms.
<table id="table1" border="0" width="613px" cellspacing = "0px" cellpadding="0px">
<tr style="height:20px">
<td style="height:20px; background-image:url(Images/abcd.gif); width:100%; font-size:small; color:White;
font-weight:bold" valign = "middle" > Recent logs</td></tr></table>
In one web form (ordinary web form), the image appears while in the other (admin related web page)the image
does not appear. I do not see any reason why there should be a difference in behaviour.
Please provide me a pointer as to why this could be happenning.
Thanks,
NetQuestions
modified on Wednesday, May 13, 2009 1:18 PM
|
|
|
|
|
Do the webforms have different paths... i.e. are they in different directories?
What I would recommend is that you look at the source of the final pages to see what url is outputted for the image on the rendered page.
modified on Wednesday, May 13, 2009 2:03 PM
|
|
|
|
|
yes Ian, both webforms are in different directories.
and image is present in Image folder.
one web form is under the root and the other is inside the 'admin folder' and i have not placed any restrictions under the admin folder.
still image is not appearing! ... the text on top of the image appears but not the image!!!
|
|
|
|
|
The problem is when a user control is rendered images are relative to the page it is hosted in. So with your scenario since the first webform is in the root I am assuming that is where the Image folder is as well, and that is why the admin page cant find it because I am betting there is no Image folder where it is. What I would recommend is move that background style setter in the user control into a css file and link the image relative to that. css files are handled differently and an image linked in it is relative to it not that page that is linking the css file.
|
|
|
|
|
thanks Ian ... it worked.
|
|
|
|