Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Edited Unassigned: a question about WatermarkCssClass [27862]

$
0
0
Hi,
I'm using Ajaxcontroltoolkit using VS2010 C#.
for the control 'TextBoxWatermarkExtender', it works very well at my own computer. I mean F5 or ctrl+F5, run from my computer.
but the problem is if i publish my project to sever then access the server, the watermark function works but looks like only the 'css' for the watermark does not work. but except the css for watermark, all other css applied to whole page works well from server.

first pic show what the watermark should be (run from my computer)
second pic show what it is when access from server.

this is pic show what it should be (access from my computer)
![should be](https://scontent.xx.fbcdn.net/hphotos-xap1/v/t1.0-9/11227381_10206929606509452_2128665837633936052_n.jpg?oh=0950e32fd91d27dfc53a4bff3c46186e&oe=55ED8693)

this is pic if access from server
![access from server](https://scontent.xx.fbcdn.net/hphotos-xaf1/v/t1.0-9/11350608_10206929606389449_1217137042069569426_n.jpg?oh=b27ba25f5fa944d9c100dab400131dd0&oe=560B773F)


And I would paste my code here.
```


<asp:TextBox ID="TB_desp" runat="server" Width="166px"></asp:TextBox><br />
<cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" TargetControlID="TB_desp"
WatermarkText="Group description" WatermarkCssClass="watermarked" />
```
the css:
```


.watermarked
{
height: 20px;
width: 150px;
padding: 2px 0 0 2px;
border: 1px solid #BEBEBE;
background-color: #F0F8FF;
color: gray;
}
```
and my 'site.Master' head
```


<head runat="server">
<title>Instrument Management System</title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
<asp:ContentPlaceHolder ID="HeadContent" runat="server" >
</asp:ContentPlaceHolder>
</head>
```
I need your help. thank you :)

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>