DLThumbnails_ItemDataBound
if
((e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem))
{
// imageRef.ImageUrl = "Handler.ashx?img_id=" + Eval("img_id") + "&" + "imagesize=F";
System.Web.UI.WebControls.
Image imageRef = (System.Web.UI.WebControls.Image)e.Item.FindControl("ImgThumbnails");
imageRef.Attributes.Add(
"onmouseover", "javascript:this.border=1;this.style.borderColor='red';");
imageRef.Attributes.Add(
"onmouseout", "javascript:this.border=0;");
}
I just don't see it in the panel bar
Hello!
We have created a simple web user control which contains a radrotator control that uses an XML file as its datasource. This works fine in IE but when we try to view the page in any other browse (Firefox, Chrome, Opera etc) the page just displays a blank section where the rotator should appear.
The user control is embedded within a page layout file using:
<%@ Register Src="/WebControls/NewsRotator.ascx" TagName="NewsRotator" TagPrefix="CCCControls" %>
<CCCControls:NewsRotator ID="NewsRotator1" runat="server"/>
The code for the user control is:
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="NewsRotator.ascx.vb" Inherits="NewsRotator" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<telerik:RadRotator width="100%" Height="180px" ItemHeight="200px" PauseOnMouseOver="false" ItemWidth="100%" FrameDuration="4000" ID="Rotator1" runat="server" ScrollDirection="Up">
<ItemTemplate>
<div class="NewsRotatorContainer">
<div class="NewsRotatorHeader"><h2><%# XPath("Title") %></h2></div>
<div class="NewsRotatorImages">
<img src="<%# XPath("Image") %>" height="127" width="200" alt="" title="" style="border: 0px" />
</div>
<div class="NewsRotatorContent">
<%# XPath("Content") %>
<br /><br />
<a href="<%# XPath("URL") %>" class="orderInfo">Read more »</a>
</div>
</div>
</ItemTemplate>
</telerik:RadRotator>
With a code behind file with the following code:
Partial Class NewsRotator
Inherits System.Web.UI.UserControl
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim newsSource As New XmlDataSource()
newsSource.DataFile = "/WebControls/Rotator.xml"
If InStr(UCase(Request.Url.ToString()), "CYMRAEG") > 0 Then
newsSource.XPath = "NewsItems/Language[@name ='cymraeg']/NewsItem"
Else
newsSource.XPath = "NewsItems/Language[@name ='english']/NewsItem"
End If
Me.Rotator1.DataSource = newsSource
Me.Rotator1.DataBind()
End Sub
End Class
Any ideas why the control is displaying blank in any other browser other that IE??
Cheers!

protected void Page_Init(object sender, EventArgs e)
{
for (Int32 j = 0; j < 2; j++)
{
TableRow tr = new TableRow();
for (Int32 i = 0; i < 2; i++)
{
HimaniTextBox txtbox = new HimaniTextBox();
txtbox.ID = "TextBox" + i;
txtbox.CssClass = "txtstyle1";
TableCell tc = new TableCell();
tc.Style.Add("Width", "50%");
tc.Controls.Add(txtbox);
tr.Controls.Add(tc);
}
Table1.Controls.Add(tr);
}
}
STYLE SHEET Is
.txtstyle1
{
width:99% !important;
}
when i enter text in this textbox its size increase according enter text...
for clear vision plz see attached file
| <telerik:RadWindowManager runat="server" ID="RadWindowManager1" VisibleStatusbar="false" Modal="true" DestroyOnClose="true" Behavior="Close,Reload,Move,Resize" > |
| <Windows> |
| <telerik:RadWindow runat="server" ID="RadWindow1" Height="800px" Width="700px" NavigateUrl='<%# Url.Action( "About", "Home" ) %>'></telerik:RadWindow> |
| </Windows> |
| </telerik:RadWindowManager> |
| ... |
| <a href="#" onclick="window.radopen('<%= Url.Action("Index", "Home") %>', 'RadWindow1'); return false">System Admin</a> |
| <telerik:RadGrid ID="RadGrid1" AllowFilteringByColumn="true" Skin="Vista" runat="server" EnableViewState="false" GridLines="None" |
| AllowPaging="true" AllowSorting="true" PageSize="6" OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged" > |
| <AlternatingItemStyle BackColor="#EEEEEE"></AlternatingItemStyle> |
| <ClientSettings EnablePostBackOnRowClick="true"> |
| <Selecting AllowRowSelect="True"></Selecting> |
| <ClientEvents OnCommand="RadGrid1_Command" /> |
| </ClientSettings> |
| <MasterTableView HierarchyLoadMode="Client" ClientDataKeyNames="DuplicateStatementID"> |
| <Columns> |
| <telerik:GridBoundColumn AllowFiltering="false" SortExpression="DuplicateStatementID" |
| DataField="DuplicateStatementID" HeaderText="ID" DataType="System.Int32" Visible="false" /> |
| <telerik:GridBoundColumn SortExpression="Year" DataField="Year" HeaderText="Year" UniqueName="RGYear"> |
| <ItemStyle Width="50px" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn SortExpression="MonthName" DataField="MonthName" HeaderText="Month"> |
| </Columns> |
| </MasterTableView> |
| <PagerStyle AlwaysVisible="true" /> |
| </telerik:RadGrid> |
| protected void RadGrid1_SelectedIndexChanged(object sender, System.EventArgs e) |
| { |
| GridDataItem item = RadGrid1.SelectedItems[0] as GridDataItem; |
| string s = item["RGYear"].Text; |
| } |
<
ClientEvents OnDateSelected="DateSelected" />
<
DateInput ... />
inside that handler I would like to change the color of DateInput text to red, indicating change was made
but I cannot. I've tried several ways and nothing works. Please help
function
DateSelected(sender, eventArgs) {
//change color of the DateInput
}