or
public
override
string
GetPath(
string
path)
{
// First add the '~/' signs in order to use the VirtualPathUtility.GetDirectory() method ;
/*string PathWithTilde = "~/" + path;
string virtualPath = VirtualPathUtility.GetDirectory(PathWithTilde);
virtualPath = virtualPath.Remove(0, 2);// remove the '~' signs
return virtualPath;*/
string
virtualPath =
""
;
if
(Path.GetFileName(path).Length > 0)
virtualPath = path.Replace(Path.GetFileName(path),
""
);
return
virtualPath;
}
Hi, I'm getting the following page error when selecting a row from RadGrid to display content in a separate pane using ajax manager. This error only appears when published to a a web server not on local development server.
----------------------------------------------------
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; BRI/1; InfoPath.2; .NET4.0C; .NET4.0E; MALC)
Timestamp: Sat, 15 Jan 2011 23:43:05 UTC
Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '
<!DOCTYPE html P'.
Line: 6
Char: 84093
Code: 0
URI: http://host/pro2/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3aaa801ad7-53c4-4f5c-9fd3-11d99e4b92f4%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc%3a11a04f7e%3a24ee1bba%3af46195d3%3a1e771326%3aa7e79140%3ae524c98b%3a874f8ea2%3a19620875%3a490a9d4e%3a407acb1c%3ae330518b%3ac8618e41%3ae4f8f289%3a58366029%3a7165f74%3a86526ba7%3abd8f85e4
<
telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="btnSearch" EventName="Click">
<UpdatedControls><telerik:AjaxUpdatedControl ControlID="tabGridview" /></UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="RadGrid1">
<UpdatedControls><telerik:AjaxUpdatedControl ControlID="RadGrid1" /></UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="RadGrid1" EventName="SlectedIndexChanged">
<UpdatedControls><telerik:AjaxUpdatedControl ControlID="mpuEditAddr" /></UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<
asp:Button
ID
=
"btnSearch"
runat
=
"server"
Text
=
"Search/ Refresh"
/>
<
asp:Button
ID
=
"btnEditAddr"
runat
=
"server"
Text
=
"Button"
Style
=
"display: none"
/>
<
asp:ModalPopupExtender
ID
=
"mpuEditAddr"
runat
=
"server"
OkControlID
=
"btnClose"
TargetControlID
=
"btnEditAddr"
PopupControlID
=
"panAddr"
BackgroundCssClass
=
"modalBackground"
>
</
asp:ModalPopupExtender
>
<
asp:Panel
ID
=
"panAddr"
runat
=
"server"
CssClass
=
"ModalWindow"
Style
=
"display: none"
>
<
asp:TabContainer
ID
=
"tabAddress"
runat
=
"server"
Width
=
"10%"
ActiveTabIndex
=
"1"
>
<
asp:TabPanel
ID
=
"tabPickupAddr"
runat
=
"server"
>
<
HeaderTemplate
>
Pickup Address
</
HeaderTemplate
>
<
ContentTemplate
>
<
uc1:uc_Address
ID
=
"uc_PickupAddr"
runat
=
"server"
/>
</
ContentTemplate
>
</
asp:TabPanel
>
<
asp:TabPanel
ID
=
"tabDpoffAddr"
runat
=
"server"
>
<
HeaderTemplate
>
Dropoff Address
</
HeaderTemplate
>
<
ContentTemplate
>
<
uc1:uc_Address
ID
=
"uc_DropoffAddr"
runat
=
"server"
/>
</
ContentTemplate
>
</
asp:TabPanel
>
</
asp:TabContainer
>
<
asp:Button
ID
=
"btnUpdateAddr"
runat
=
"server"
Text
=
"Update"
/>
<
asp:Button
ID
=
"btnClose"
runat
=
"server"
Text
=
"Close"
CausesValidation
=
"False"
/>
</
asp:Panel
>
<
asp:TabContainer
ID
=
"tabGridview"
runat
=
"server"
>
<
asp:TabPanel
ID
=
"tabEdit"
runat
=
"server"
HeaderText
=
"Edit Reservations"
>
<
HeaderTemplate
>
Edit Reservations</
HeaderTemplate
>
<
ContentTemplate
>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
AllowSorting
=
"True"
ShowGroupPanel
=
"True"
AllowFilteringByColumn
=
"true"
AutoGenerateColumns
=
"False"
AllowPaging
=
"True"
>
<
GroupingSettings
ShowUnGroupButton
=
"True"
/>
<
ClientSettings
AllowDragToGroup
=
"True"
AllowColumnsReorder
=
"True"
ColumnsReorderMethod
=
"Reorder"
ReorderColumnsOnClient
=
"True"
>
<
ClientEvents
OnRowContextMenu
=
"RowContextMenu"
></
ClientEvents
>
</
ClientSettings
>
<
MasterTableView
EditMode
=
"InPlace"
DataKeyNames
=
"Trip_ID"
GroupLoadMode
=
"Client"
AllowFilteringByColumn
=
"true"
>
<
PagerStyle
AlwaysVisible
=
"true"
/>
<
CommandItemSettings
ExportToPdfText
=
"Export to Pdf"
></
CommandItemSettings
>
<
Columns
>
<
telerik:GridEditCommandColumn
ButtonType
=
"ImageButton"
>
</
telerik:GridEditCommandColumn
>
<
telerik:GridButtonColumn
CommandName
=
"Select"
Text
=
"Edit Address"
ButtonType
=
"ImageButton"
UniqueName
=
"column"
ImageUrl
=
"Images/Home-Edit.gif"
>
</
telerik:GridButtonColumn
>
'
'
'
</
Columns
>
<
EditFormSettings
>
<
EditColumn
UniqueName
=
"EditCommandColumn1"
>
</
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
><
HeaderContextMenu
CssClass
=
"GridContextMenu GridContextMenu_Sunset"
EnableImageSprites
=
"True"
>
</
HeaderContextMenu
>
</
telerik:RadGrid
>
</
ContentTemplate
>
</
asp:TabPanel
>
<
asp:TabPanel
ID
=
"tabView"
runat
=
"server"
HeaderText
=
"View Reservations"
>
<
ContentTemplate
>
<%--Another RadGrid Here--%>
</
ContentTemplate
>
</
asp:TabPanel
>
</
asp:TabContainer
>