Hello,
I have a problem with displaying a specific website (www.oritajewellery.com) using the radwindow. All other websites are displayed well.
Please open the following web page in order to view the problem: http://www.israel-jewelry-center.com/Pages/Categories/Rings.aspx.
By hovering over the image which is displayed in the attached image (1.jpg), a radtooltip will be displayed, and then click the displayed big image in order to view the website in a radwindow control. Here is the problem, the above website is not displayed (view attached image 2.jpg).
My code:
I want to indicate again that just the above website is not displayed using the radwindow control.
Regards,
Bader
I have a problem with displaying a specific website (www.oritajewellery.com) using the radwindow. All other websites are displayed well.
Please open the following web page in order to view the problem: http://www.israel-jewelry-center.com/Pages/Categories/Rings.aspx.
By hovering over the image which is displayed in the attached image (1.jpg), a radtooltip will be displayed, and then click the displayed big image in order to view the website in a radwindow control. Here is the problem, the above website is not displayed (view attached image 2.jpg).
My code:
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
runat
=
"server"
>
<
Windows
>
<
telerik:RadWindow
runat
=
"server"
Width
=
"600px"
Height
=
"550px"
VisibleStatusbar
=
"false"
style
=
"z-index:10000;"
ID
=
"ExplorerWindow"
Modal
=
"true"
Behaviors
=
"Default"
>
</
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>
I want to indicate again that just the above website is not displayed using the radwindow control.
Regards,
Bader
8 Answers, 1 is accepted
0
Cori
Top achievements
Rank 2
answered on 09 Dec 2010, 02:16 PM
Hello Bader,
Can we see the code you use to set the url and show the RadWindow? I don't see why it would show the "Page Not Found" page if the url was not passed to it correctly.
Can we see the code you use to set the url and show the RadWindow? I don't see why it would show the "Page Not Found" page if the url was not passed to it correctly.
0
Bader
Top achievements
Rank 1
answered on 13 Dec 2010, 09:52 AM
Hello,
Thank you for your reply,
Here is my code:
And:
The above code is a usercontrol code. This usercontrol is displayed in a RadToolTipManager control by coming over a specific image in the radlistview control.
Please, I need your help,
It is apperecited to send me the modifed code.
Regards,
Bader
Thank you for your reply,
Here is my code:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductDetails.ascx.cs" Inherits="ProductDetails" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<
center
>
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
ReloadOnShow
=
"true"
runat
=
"server"
>
<
Windows
>
<
telerik:RadWindow
runat
=
"server"
Width
=
"600px"
Height
=
"550px"
VisibleStatusbar
=
"false"
style
=
"z-index:10000;"
ID
=
"ExplorerWindow"
Modal
=
"true"
Behaviors
=
"Default"
>
</
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>
<
asp:Panel
ID
=
"ProductDetailsPanel"
style
=
"margin-top:1px;"
runat
=
"server"
>
<
table
runat
=
"server"
style
=
"border-color:#7b7b7b;"
id
=
"ProductWrapper"
border
=
"1"
cellpadding
=
"0"
cellspacing
=
"0"
>
<
tr
>
<
td
align
=
"left"
valign
=
"top"
>
<
asp:FormView
ID
=
"ProductsImgFormView"
Width
=
"240px"
DataSourceID
=
"CstmrItmsDataSource"
DataKeyNames
=
"CItemID"
runat
=
"server"
OnDataBound
=
"ProductsView_DataBound"
>
<
ItemTemplate
>
<
div
id
=
"smallImage"
style
=
"cursor:pointer;"
runat
=
"server"
>
<
asp:Label
ID
=
"cstmrSiteLabel"
runat
=
"server"
Visible
=
"false"
Text='<%# string.Format("http://{0}", Eval("UWebSite")) %>'></
asp:Label
>
<
asp:Label
ID
=
"Label1"
Visible
=
"false"
runat
=
"server"
Text='<%# Eval("CItemID") %>'></
asp:Label
>
<
asp:ImageButton
ID
=
"ImageButton1"
Visible
=
"true"
ImageUrl='<%# string.Format("~/Pages/Categories/Imgs/CreateBImg.aspx?itmId={0}", Eval("CItemID")) %>' onclick="ImageButton1_Click" runat="server" />
</
div
>
</
ItemTemplate
>
</
asp:FormView
>
</
td
>
<
td
align
=
"left"
valign
=
"top"
>
<
asp:FormView
ID
=
"ProductsDetailsFormView"
Width
=
"250px"
DataSourceID
=
"CstmrItmsDataSource"
DataKeyNames
=
"CItemID"
runat
=
"server"
OnDataBound
=
"ProductsView_DataBound"
>
<
ItemTemplate
>
<
asp:Panel
ID
=
"ItmDetailsPanel"
style
=
"margin:5px;"
runat
=
"server"
>
<
asp:Label
ID
=
"CmpNameLabel"
SkinID
=
"ProductDetailsDataLabelText"
runat
=
"server"
Text='<%# Eval("UCmpName") + "<br /><
br
/>" %>'></
asp:Label
>
<
asp:Label
ID
=
"CodeNameLabel"
SkinID
=
"ProductDetailsLabelText"
runat
=
"server"
Text
=
"Code name: "
></
asp:Label
>
<
asp:Label
ID
=
"CodeNameDataLabel"
SkinID
=
"ProductDetailsDataLabelText"
runat
=
"server"
Text='<%# Eval("CItmName") + "<br /><
br
/>" %>'></
asp:Label
>
<
asp:Label
ID
=
"ItmPriceLabel"
SkinID
=
"ProductDetailsLabelText"
Visible='<%# (Convert.ToInt32(Eval("CItemPrice")) == 0) ? false : true %>' runat="server" Text="Price: "></
asp:Label
>
<
asp:Label
ID
=
"ItmPriceDataLabel"
SkinID
=
"ProductDetailsDataLabelText"
Visible='<%# (Convert.ToInt32(Eval("CItemPrice")) == 0) ? false : true %>' runat="server" Text='<%# Eval("CItemPrice") + " NIS<
br
/><
br
/>" %>'></
asp:Label
>
<
asp:Label
ID
=
"ItmDescLabel"
SkinID
=
"ProductDetailsLabelText"
Visible='<%# (Eval("CItmDesc") == string.Empty) ? false : true %>' runat="server" Text="Description: "></
asp:Label
>
<
asp:Label
ID
=
"ItmDescDataLabel"
SkinID
=
"ProductDetailsDataLabelText"
Visible='<%# (Eval("CItmDesc") == string.Empty) ? false : true %>' runat="server" Text='<%# Eval("CItmDesc") + "<
br
/>" %>'></
asp:Label
>
</
asp:Panel
>
</
ItemTemplate
>
</
asp:FormView
>
</
td
>
</
tr
>
</
table
>
</
asp:Panel
>
<
asp:Label
runat
=
"server"
ID
=
"CheckoutInformation"
Style="display: block; margin-top: 10px;
color: #4f4236; margin-left: 11px;"></
asp:Label
>
<
asp:SqlDataSource
ID
=
"CstmrItmsDataSource"
runat
=
"server"
ConnectionString="<%$ ConnectionStrings:IsraelJewelryCenterConnectionString %>"
ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM [AllItems_View] WHERE ([CItemID] = @ItemID)">
<
SelectParameters
>
<
asp:Parameter
Name
=
"ItemID"
Type
=
"Int64"
/>
</
SelectParameters
>
</
asp:SqlDataSource
>
</
center
>
And:
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;
using System.IO;
public partial class ProductDetails : System.Web.UI.UserControl
{
private bool _resetQuantity = true;
public string ItemID
{
get
{
if (ViewState["CItemID"] == null)
{
return "";
}
return (string)ViewState["CItemID"];
}
set
{
if (this.ItemID != value)
{
Reset();
}
ViewState["CItemID"] = value;
ConfigureView();
}
}
protected void Page_Load(object sender, EventArgs e)
{
//ItemIDLabel.Text = ItemID;
ExplorerWindow.VisibleOnPageLoad = false;
this.ConfigureView();
}
protected void Page_PreRender(object sender, EventArgs e)
{
}
private void Reset()
{
}
private void ConfigureView()
{
this.CstmrItmsDataSource.SelectParameters["ItemID"].DefaultValue = this.ItemID;
this.DataBind();
//Make sure the panel is visible
this.ProductWrapper.Visible = true;
this.ProductsImgFormView.Visible = true;
this.ProductsDetailsFormView.Visible = true;
this.CheckoutInformation.Visible = false;
this._resetQuantity = true;
}
private void ShowCurrentDetails()
{
}
private void SelectButton(LinkButton button, bool toSelect)
{
if (toSelect)
{
button.BorderColor = Color.Green;
button.BorderWidth = Unit.Pixel(2);
button.BorderStyle = BorderStyle.Dotted;
}
else
{
button.BorderWidth = Unit.Pixel(0);
}
}
protected void Button_Command(object sender, CommandEventArgs e)
{
}
protected void QuantityChanged(object sender, EventArgs e)
{
this._resetQuantity = false;
ShowCurrentDetails();
}
protected void ProductsView_DataBound(object sender, EventArgs e)
{
System.Web.UI.WebControls.Image image = (System.Web.UI.WebControls.Image) ProductsImgFormView.FindControl("image");
if (image == null) return;
if (!File.Exists(MapPath(image.ImageUrl)))
{
image.ImageUrl = "../../Img/Northwind/Products/noimage.jpg";
}
}
protected override void OnPreRender(EventArgs e)
{
this.ConfigureView();
base.OnPreRender(e);
}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
ImageButton _imageButton1 = (ImageButton)sender;
Label cstmrSiteLabel = (Label)_imageButton1.FindControl("cstmrSiteLabel");
string _cstmrSiteLabel = cstmrSiteLabel.Text.ToString();
ExplorerWindow.NavigateUrl = _cstmrSiteLabel;
ExplorerWindow.VisibleOnPageLoad = true;
}
}
The above code is a usercontrol code. This usercontrol is displayed in a RadToolTipManager control by coming over a specific image in the radlistview control.
Please, I need your help,
It is apperecited to send me the modifed code.
Regards,
Bader
0
Bader
Top achievements
Rank 1
answered on 13 Dec 2010, 09:53 AM
Hello,
Thank you for your reply,
Here is my code:
And:
The above code is a usercontrol code. This usercontrol is displayed in a RadToolTipManager control by coming over a specific image in the radlistview control.
Please, I need your help,
It is apperecited to send me the modifed code.
Regards,
Bader
Thank you for your reply,
Here is my code:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductDetails.ascx.cs" Inherits="ProductDetails" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<
center
>
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
ReloadOnShow
=
"true"
runat
=
"server"
>
<
Windows
>
<
telerik:RadWindow
runat
=
"server"
Width
=
"600px"
Height
=
"550px"
VisibleStatusbar
=
"false"
style
=
"z-index:10000;"
ID
=
"ExplorerWindow"
Modal
=
"true"
Behaviors
=
"Default"
>
</
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>
<
asp:Panel
ID
=
"ProductDetailsPanel"
style
=
"margin-top:1px;"
runat
=
"server"
>
<
table
runat
=
"server"
style
=
"border-color:#7b7b7b;"
id
=
"ProductWrapper"
border
=
"1"
cellpadding
=
"0"
cellspacing
=
"0"
>
<
tr
>
<
td
align
=
"left"
valign
=
"top"
>
<
asp:FormView
ID
=
"ProductsImgFormView"
Width
=
"240px"
DataSourceID
=
"CstmrItmsDataSource"
DataKeyNames
=
"CItemID"
runat
=
"server"
OnDataBound
=
"ProductsView_DataBound"
>
<
ItemTemplate
>
<
div
id
=
"smallImage"
style
=
"cursor:pointer;"
runat
=
"server"
>
<
asp:Label
ID
=
"cstmrSiteLabel"
runat
=
"server"
Visible
=
"false"
Text='<%# string.Format("http://{0}", Eval("UWebSite")) %>'></
asp:Label
>
<
asp:Label
ID
=
"Label1"
Visible
=
"false"
runat
=
"server"
Text='<%# Eval("CItemID") %>'></
asp:Label
>
<
asp:ImageButton
ID
=
"ImageButton1"
Visible
=
"true"
ImageUrl='<%# string.Format("~/Pages/Categories/Imgs/CreateBImg.aspx?itmId={0}", Eval("CItemID")) %>' onclick="ImageButton1_Click" runat="server" />
</
div
>
</
ItemTemplate
>
</
asp:FormView
>
</
td
>
<
td
align
=
"left"
valign
=
"top"
>
<
asp:FormView
ID
=
"ProductsDetailsFormView"
Width
=
"250px"
DataSourceID
=
"CstmrItmsDataSource"
DataKeyNames
=
"CItemID"
runat
=
"server"
OnDataBound
=
"ProductsView_DataBound"
>
<
ItemTemplate
>
<
asp:Panel
ID
=
"ItmDetailsPanel"
style
=
"margin:5px;"
runat
=
"server"
>
<
asp:Label
ID
=
"CmpNameLabel"
SkinID
=
"ProductDetailsDataLabelText"
runat
=
"server"
Text='<%# Eval("UCmpName") + "<br /><
br
/>" %>'></
asp:Label
>
<
asp:Label
ID
=
"CodeNameLabel"
SkinID
=
"ProductDetailsLabelText"
runat
=
"server"
Text
=
"Code name: "
></
asp:Label
>
<
asp:Label
ID
=
"CodeNameDataLabel"
SkinID
=
"ProductDetailsDataLabelText"
runat
=
"server"
Text='<%# Eval("CItmName") + "<br /><
br
/>" %>'></
asp:Label
>
<
asp:Label
ID
=
"ItmPriceLabel"
SkinID
=
"ProductDetailsLabelText"
Visible='<%# (Convert.ToInt32(Eval("CItemPrice")) == 0) ? false : true %>' runat="server" Text="Price: "></
asp:Label
>
<
asp:Label
ID
=
"ItmPriceDataLabel"
SkinID
=
"ProductDetailsDataLabelText"
Visible='<%# (Convert.ToInt32(Eval("CItemPrice")) == 0) ? false : true %>' runat="server" Text='<%# Eval("CItemPrice") + " NIS<
br
/><
br
/>" %>'></
asp:Label
>
<
asp:Label
ID
=
"ItmDescLabel"
SkinID
=
"ProductDetailsLabelText"
Visible='<%# (Eval("CItmDesc") == string.Empty) ? false : true %>' runat="server" Text="Description: "></
asp:Label
>
<
asp:Label
ID
=
"ItmDescDataLabel"
SkinID
=
"ProductDetailsDataLabelText"
Visible='<%# (Eval("CItmDesc") == string.Empty) ? false : true %>' runat="server" Text='<%# Eval("CItmDesc") + "<
br
/>" %>'></
asp:Label
>
</
asp:Panel
>
</
ItemTemplate
>
</
asp:FormView
>
</
td
>
</
tr
>
</
table
>
</
asp:Panel
>
<
asp:Label
runat
=
"server"
ID
=
"CheckoutInformation"
Style="display: block; margin-top: 10px;
color: #4f4236; margin-left: 11px;"></
asp:Label
>
<
asp:SqlDataSource
ID
=
"CstmrItmsDataSource"
runat
=
"server"
ConnectionString="<%$ ConnectionStrings:IsraelJewelryCenterConnectionString %>"
ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM [AllItems_View] WHERE ([CItemID] = @ItemID)">
<
SelectParameters
>
<
asp:Parameter
Name
=
"ItemID"
Type
=
"Int64"
/>
</
SelectParameters
>
</
asp:SqlDataSource
>
</
center
>
And:
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;
using System.IO;
public partial class ProductDetails : System.Web.UI.UserControl
{
private bool _resetQuantity = true;
public string ItemID
{
get
{
if (ViewState["CItemID"] == null)
{
return "";
}
return (string)ViewState["CItemID"];
}
set
{
if (this.ItemID != value)
{
Reset();
}
ViewState["CItemID"] = value;
ConfigureView();
}
}
protected void Page_Load(object sender, EventArgs e)
{
//ItemIDLabel.Text = ItemID;
ExplorerWindow.VisibleOnPageLoad = false;
this.ConfigureView();
}
protected void Page_PreRender(object sender, EventArgs e)
{
}
private void Reset()
{
}
private void ConfigureView()
{
this.CstmrItmsDataSource.SelectParameters["ItemID"].DefaultValue = this.ItemID;
this.DataBind();
//Make sure the panel is visible
this.ProductWrapper.Visible = true;
this.ProductsImgFormView.Visible = true;
this.ProductsDetailsFormView.Visible = true;
this.CheckoutInformation.Visible = false;
this._resetQuantity = true;
}
private void ShowCurrentDetails()
{
}
private void SelectButton(LinkButton button, bool toSelect)
{
if (toSelect)
{
button.BorderColor = Color.Green;
button.BorderWidth = Unit.Pixel(2);
button.BorderStyle = BorderStyle.Dotted;
}
else
{
button.BorderWidth = Unit.Pixel(0);
}
}
protected void Button_Command(object sender, CommandEventArgs e)
{
}
protected void QuantityChanged(object sender, EventArgs e)
{
this._resetQuantity = false;
ShowCurrentDetails();
}
protected void ProductsView_DataBound(object sender, EventArgs e)
{
System.Web.UI.WebControls.Image image = (System.Web.UI.WebControls.Image) ProductsImgFormView.FindControl("image");
if (image == null) return;
if (!File.Exists(MapPath(image.ImageUrl)))
{
image.ImageUrl = "../../Img/Northwind/Products/noimage.jpg";
}
}
protected override void OnPreRender(EventArgs e)
{
this.ConfigureView();
base.OnPreRender(e);
}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
ImageButton _imageButton1 = (ImageButton)sender;
Label cstmrSiteLabel = (Label)_imageButton1.FindControl("cstmrSiteLabel");
string _cstmrSiteLabel = cstmrSiteLabel.Text.ToString();
ExplorerWindow.NavigateUrl = _cstmrSiteLabel;
ExplorerWindow.VisibleOnPageLoad = true;
}
}
The above code is a usercontrol code. This usercontrol is displayed in a RadToolTipManager control by coming over a specific image in the radlistview control.
Please, I need your help,
It is apperecited to send me the modifed code.
Regards,
Bader
0
Hello Bader,
I checked your site and I see that when the site is not opened in the RadWindow, its Url is like this:
http://www.oritajewellery.com/?rwndrnd=0.8061625900947207
This query string comes from the ReloadOnShow property which, when set to true, forces the window to add a random query string to its NavigateUrl every time it is opened (so the browser would not use a cached version of that page). It seems however, that the site's (oritajewellery.com) logic, does not allow such query string - even if you load the Url above directly in the browser window, it still won't open.
If you are developing oritajewellery.com too, I would suggest to consider allowing such query string. If not, just set ReloadOnShow=false and the random query string will not be added anymore. If you want to load the RadWindow every time it is shown with a new content, you could use the OnClientClose client event and in the JavaScript function set there, to set the Url of the RadWindow to some temp page.
e.g.
OnClientClose="OnClientClose"
function OnClientClose(sender, args)
{
sender.setUrl("tempPage.aspx");
}
All the best,
Georgi Tunev
the Telerik team
I checked your site and I see that when the site is not opened in the RadWindow, its Url is like this:
http://www.oritajewellery.com/?rwndrnd=0.8061625900947207
This query string comes from the ReloadOnShow property which, when set to true, forces the window to add a random query string to its NavigateUrl every time it is opened (so the browser would not use a cached version of that page). It seems however, that the site's (oritajewellery.com) logic, does not allow such query string - even if you load the Url above directly in the browser window, it still won't open.
If you are developing oritajewellery.com too, I would suggest to consider allowing such query string. If not, just set ReloadOnShow=false and the random query string will not be added anymore. If you want to load the RadWindow every time it is shown with a new content, you could use the OnClientClose client event and in the JavaScript function set there, to set the Url of the RadWindow to some temp page.
e.g.
OnClientClose="OnClientClose"
function OnClientClose(sender, args)
{
sender.setUrl("tempPage.aspx");
}
All the best,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Bader
Top achievements
Rank 1
answered on 15 Dec 2010, 06:09 PM
Hello,
Thank you for your reply,
I still have the problem. I added ReloadOnShow=false , but is is not solving the problem.
Any way I dont understand what do you mean with tempPage.aspx please explain.
This website is displayed using the radwindow control in another page (http://www.israel-jewelry-center.com/Pages/Fm/Links.aspx - look for www.oritajewellery.com ), can you expalin why is that happening? so what is the problem in the first page?
Here is the code of the page http://www.israel-jewelry-center.com/Pages/Fm/Links.aspx:
and
Please, my client is already very upset of this problem, I need an immediate help.
Regards,
Bader
Thank you for your reply,
I still have the problem. I added ReloadOnShow=false , but is is not solving the problem.
Any way I dont understand what do you mean with tempPage.aspx please explain.
This website is displayed using the radwindow control in another page (http://www.israel-jewelry-center.com/Pages/Fm/Links.aspx - look for www.oritajewellery.com ), can you expalin why is that happening? so what is the problem in the first page?
Here is the code of the page http://www.israel-jewelry-center.com/Pages/Fm/Links.aspx:
<%@ Page Title="Contributors Websites" Language="C#" MasterPageFile="~/Pages/MasterPages/FullMasterPage.master" AutoEventWireup="true" CodeFile="Links.aspx.cs" Inherits="Pages_Fm_Links" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<
asp:Content
ID
=
"Content1"
ContentPlaceHolderID
=
"head"
Runat
=
"Server"
>
<
meta
name
=
"keywords"
content
=
"Israel Jewelry Center, Israel-Jewelry-Center, Designer"
/>
</
asp:Content
>
<
asp:Content
ID
=
"Content2"
ContentPlaceHolderID
=
"Content4"
Runat
=
"Server"
>
<
br
/><
br
/>
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
runat
=
"server"
>
<
Windows
>
<
telerik:RadWindow
runat
=
"server"
Width
=
"600px"
Height
=
"550px"
VisibleStatusbar
=
"false"
style
=
"z-index:10000;"
ID
=
"ExplorerWindow"
Modal
=
"true"
Behaviors
=
"Default"
>
</
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>
<
asp:Label
ID
=
"HeaderLabel"
runat
=
"server"
SkinID
=
"HeaderText"
Text
=
"Contributors Websites"
></
asp:Label
>
<
br
/><
br
/><
br
/>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
DataSourceID
=
"SqlDataSource1"
Skin
=
"Office2007"
GridLines
=
"None"
>
<
MasterTableView
AutoGenerateColumns
=
"False"
DataSourceID
=
"SqlDataSource1"
>
<
RowIndicatorColumn
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
ExpandCollapseColumn
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"CmpName"
HeaderText
=
"Contributor Name"
SortExpression
=
"CmpName"
UniqueName
=
"CmpName"
>
</
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"WebSite"
HeaderText
=
"WebSite"
DataField
=
"WebSite"
DataType
=
"System.String"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"cstmrSiteLabel"
runat
=
"server"
Visible
=
"false"
Text='<%# string.Format("http://{0}", Eval("WebSite")) %>'></
asp:Label
>
<
asp:LinkButton
ID
=
"LinkButton1"
runat
=
"server"
Text='<%#String.Format("{0}", Eval("WebSite").ToString()) %>' OnClick="LinkButton1_Click"></
asp:LinkButton
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
<
asp:SqlDataSource
ID
=
"SqlDataSource1"
runat
=
"server"
ConnectionString="<%$ ConnectionStrings:IsraelJewelryCenterConnectionString %>"
SelectCommand="SELECT [WebSite], [CmpName] FROM [Users] where Roles='User' ORDER BY [CmpName]"></
asp:SqlDataSource
>
</
asp:Content
>
and
using System;
using System.Web.UI.WebControls;
using IsraelJewelryCenterControlLibrary;
public partial class Pages_Fm_Links : BasePage
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Session["PreferedCulture"] = "en-us";
}
}
protected void LinkButton1_Click(Object sender, EventArgs e)
{
LinkButton _linkButton = (LinkButton)sender;
Label cstmrSiteLabel = (Label)_linkButton.FindControl("cstmrSiteLabel");
string _cstmrSiteLabel = cstmrSiteLabel.Text.ToString();
ExplorerWindow.NavigateUrl = _cstmrSiteLabel;
ExplorerWindow.VisibleOnPageLoad = true;
}
}
Please, my client is already very upset of this problem, I need an immediate help.
Regards,
Bader
0
Hello Bader,
I checked your site again and the Url with which you open the RadWindow still contained the rwndrnd query parameter (see attached movie) . The problem does not occur in the other (Links.aspx) page, because the query string there does not contain that parameter - try repeating the steps that I show in my movie to check the Url of the content page.
I still believe that the reason for this issue is that somewhere in your code, ReloadOnShow is set to true - I would suggest to do a global search in your application for this property. To be able to help further however, I need a sample project that reproduces your exact setup and the problem itself - please try isolating the problem in a separate project and send it to us in a support ticket. We will check it right away.
All the best,
Georgi Tunev
the Telerik team
I checked your site again and the Url with which you open the RadWindow still contained the rwndrnd query parameter (see attached movie) . The problem does not occur in the other (Links.aspx) page, because the query string there does not contain that parameter - try repeating the steps that I show in my movie to check the Url of the content page.
I still believe that the reason for this issue is that somewhere in your code, ReloadOnShow is set to true - I would suggest to do a global search in your application for this property. To be able to help further however, I need a sample project that reproduces your exact setup and the problem itself - please try isolating the problem in a separate project and send it to us in a support ticket. We will check it right away.
All the best,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Bader
Top achievements
Rank 1
answered on 01 Jan 2011, 04:09 PM
Hello,
Thank you for your reply,
I built a sample application in order to show you the problem. Plaese download the application from: www.thestarweb.com/RadWindow.rar and run the page Rings.aspx
Please, I need an immediate help,
It is apprecited to send me the modified code.
Regards,
Bader
Thank you for your reply,
I built a sample application in order to show you the problem. Plaese download the application from: www.thestarweb.com/RadWindow.rar and run the page Rings.aspx
Please, I need an immediate help,
It is apprecited to send me the modified code.
Regards,
Bader
0
Accepted
Hello Bader,
Thank you for the project - now I was able to reproduce the problem and located the reason for it. In your ProductDetails.ascx control, you have a RadWindowManager with ReloadOnShow set to true - remove that property from there and you will not experience this problem anymore.
Best wishes,
Georgi Tunev
the Telerik team
Thank you for the project - now I was able to reproduce the problem and located the reason for it. In your ProductDetails.ascx control, you have a RadWindowManager with ReloadOnShow set to true - remove that property from there and you will not experience this problem anymore.
Best wishes,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.