or
<telerik:RadWindowManager ID="RadWinMngr" runat="server"> |
<Windows> |
<telerik:RadWindow ID="RadWindowAddUser" runat="server" NavigateUrl="http://www.google.com" VisibleOnPageLoad="true" Visible="false" /> |
</Windows> |
</telerik:RadWindowManager> |
Private Sub Button1_click(...) |
RadWindowAddUser.Visible = True |
End Sub |
Private Sub AddUser() |
RadWindowAddUser.Visible = True |
End Sub |
Eth_Rel ethernet_1 =
new
Eth_Rel();
protected
void
Ethernet_Load(
object
sender, EventArgs e)
{
RadTreeNode aParent =
new
RadTreeNode();
aParent.Text =
"Ethernet Connection"
;
using
(MapTest.Model.Computer_InventoryEntities context =
new
Computer_InventoryEntities())
{
int
_roomID = 10;
var list = (from c
in
context.Eth_Rel where c.rm_id == _roomID select c).ToList();
string
temp=
null
;
int
id=999999;
// string etherName = null;
foreach
( Eth_Rel eth
in
list)
{
RadTreeNode ethernet =
new
RadTreeNode();
RadTreeNode ethernet1 =
new
RadTreeNode();
RadTreeNode panel =
new
RadTreeNode();
RadTreeNode panel1 =
new
RadTreeNode();
if
((temp != eth.SocketReference.Value.sck_pnl))
{
ethernet.Text = eth.Room.rm_code +
" - "
+ eth.SocketReference.Value.sck_pnl;
panel.Text =
"0"
+ eth.pnl_id.ToString();
RadTreeNode speed =
new
RadTreeNode();
speed.Text =
"Speed: "
+ eth.SpeedReference.Value.spd_type;
panel.Nodes.Add(speed);
RadTreeNode connects =
new
RadTreeNode();
connects.Text =
"Connects to: "
+ eth.ComputerReference.Value.comp_name;
panel.Nodes.Add(connects);
RadTreeNode location =
new
RadTreeNode();
location.Text =
"Location: "
+ eth.LocationReference.Value.loc_name;
panel.Nodes.Add(location);
}
if
((temp == eth.SocketReference.Value.sck_pnl && id != eth.pnl_id))
{
panel1.Text =
"0"
+ eth.pnl_id.ToString();
RadTreeNode speed =
new
RadTreeNode();
speed.Text =
"Speed: "
+ eth.SpeedReference.Value.spd_type;
panel1.Nodes.Add(speed);
RadTreeNode connects =
new
RadTreeNode();
connects.Text =
"Connects to: "
+ eth.ComputerReference.Value.comp_name;
panel1.Nodes.Add(connects);
RadTreeNode location =
new
RadTreeNode();
location.Text =
"Location: "
+ eth.LocationReference.Value.loc_name;
panel1.Nodes.Add(location);
}
else
{
}
ethernet.Nodes.Add(panel);
aParent.Nodes.Add(ethernet);
ethernet.Nodes.Add(panel1);
aParent.Nodes.Add(ethernet);
temp = eth.SocketReference.Value.sck_pnl;
id = eth.pnl_id;
}
}
RadTreeView3.Nodes.Add(aParent);
}
I am using ReadScriptManager and RadAjaxManager with Navigate event for the back and forward button browser where I add the historypoint within the method that fire the event.
RadScriptManager.AddHistoryPoint("","");
it works fine locally but once I moved the application to development web server. it generates error where the history points are not configured and returned empty values
the navigate event fires but the history state e.State["mid"] is empty with no value.
Now is there any IE requirements for navigate event? Do I have to restart IIS? ...Etc
I appreciate your help
Protected
Sub
ReportGrid_ItemCommand(
ByVal
source
As
Object
,
ByVal
e
As
Telerik.Web.UI.GridCommandEventArgs)
Handles
ReportGrid.ItemCommand
If
e.CommandName =
"Delete"
Then
Dim
filepath
As
String
= (
CType
(e.Item, GridDataItem)).OwnerTableView.DataKeyValues(e.Item.ItemIndex)(
"Doc_Path"
).ToString
If
System.IO.File.Exists(Server.MapPath(
"/Files/"
& filepath))
Then
System.IO.File.Delete(Server.MapPath(
"/Files/"
& filepath))
End
If
End
If
End
Sub