or
Compilation
Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler
Error
Message: BC30201: Expression expected.
Source
Error
:
Line 258:
Line 259:
Private
Sub
Grid_ColumnCreated(
ByVal
sender
As
Object
,
ByVal
e
As
GridColumnCreatedEventArgs)
Line 260:
Dim
colSettings
As
ColumnSettings = Settings.AutoGeneratedColumnSettings.Find(
Function
(cs) cs.UniqueName = e.Column.UniqueName)
Line 261:
Dim
column
As
GridColumn = e.Column
Line 262:
Source File: C:\Documents and Settings\ddownie\My Documents\SasquatchV11\App_Code\GridSettingsPersister.vb Line: 260
Private Sub Grid_ColumnCreated(ByVal sender As Object, ByVal e As GridColumnCreatedEventArgs)
Dim colSettings As ColumnSettings = Settings.AutoGeneratedColumnSettings.Find(Function(cs) cs.UniqueName = e.Column.UniqueName)
Dim column As GridColumn = e.Column
If colSettings IsNot Nothing Then
SetColumnSettings(column, colSettings)
End If
End Sub
var
objLoadingPanel =
""
;
var
objPageRequestManager = Sys.WebForms.PageRequestManager.getInstance();
objPageRequestManager.add_initializeRequest(RequestInitializing);
objPageRequestManager.add_endRequest(RequestEnding);
function
RequestInitializing(sender, eventArgs) {
objLoadingPanel = $find(
"<%=lpLoadingPanel.ClientID%>"
);
if
(eventArgs.get_eventTarget() ==
"<%=btnRefresh_SpendingStatus.ClientID%>"
) objUpdatedControl =
"<%=lblChart_Status.ClientID%>"
;
//show the loading panel over the updated control
objLoadingPanel.show(objUpdatedControl);
//objLoadingPanel.show("<%=lblChart_Status.ClientID%>");
}
function
RequestEnding(sender, eventArgs) {
if
(objLoadingPanel) objLoadingPanel.hide(objUpdatedControl);
objUpdatedControl =
null
;
objLoadingPanel =
null
;
}
<
telerik:RadCalendar
runat
=
"server"
ID
=
"RadCalendar1"
ShowOtherMonthsDays
=
"false"
EnableMonthYearFastNavigation
=
"true"
AutoPostBack
=
"true"
>
</
telerik:RadCalendar
>
protected void Page_Load(object sender, EventArgs e)
{
RadCalendar1.SelectedDate = DateTime.Parse("2011-03-15 11:02:00.000");
//RadCalendar1.SelectedDate = DateTime.Parse("03/15/2011");
}
<
telerik:RadCodeBlock
ID
=
"RadCodeBlock1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function OnClientResized(pane, args) {
var context = new Object();
var paneIDandHeightandWidth = pane.get_id() + ',' + pane.get_height() + ',' + pane.get_width();
//Context is just thrown away.
CallSetDimensions(paneIDandHeightandWidth, context);
}
function CallbackOnSucceeded(result, context) {
//Logging
}
function CallbackOnFailed(result, context) {
//Logging
}
</
script
>
</
telerik:RadCodeBlock
>
protected
void
Page_Load(
object
sender, EventArgs e)
{
RegisterCallBackReference();
}
private
void
RegisterCallBackReference()
{
String callBack = Page.ClientScript.GetCallbackEventReference(
this
,
"arg"
,
"CallbackOnSucceeded"
,
"context"
,
"CallbackOnFailed"
,
true
);
String clientFunction =
"function CallSetDimensions(arg, context){ "
+ callBack +
"; }"
;
Page.ClientScript.RegisterClientScriptBlock(
this
.GetType(),
"Call To Server"
, clientFunction,
true
);
}
#region ICallbackEventHandler Members
String returnValue;
string
ICallbackEventHandler.GetCallbackResult()
{
return
returnValue;
}
void
ICallbackEventHandler.RaiseCallbackEvent(
string
eventArgument)
{
bool
result = SetDimensions(eventArgument);
if
(result)
{
returnValue =
"Success."
;
}
else
{
returnValue =
"Failure."
;
}
}
#endregion
private
bool
SetDimensions(
string
args)
{
bool
saveSuccessful =
false
;
string
[] paneIDandHeightandWidth = args.Split(
','
);
string
paneID = paneIDandHeightandWidth[0];
int
paneHeight = 0;
int
.TryParse(paneIDandHeightandWidth[1],
out
paneHeight);
int
paneWidth = 0;
int
.TryParse(paneIDandHeightandWidth[2],
out
paneWidth);
RadPane pane = Utilities.FindControlRecursive(Page, paneID)
as
RadPane;
if
(!
object
.Equals(pane,
null
))
{
saveSuccessful =
true
;
RadPaneSetting paneSetting = RadPaneSetting.GetSettings(pane);
pane.Height =
new
Unit(paneHeight, UnitType.Pixel);
pane.Width =
new
Unit(paneWidth, UnitType.Pixel);
controlSave.SavePane(pane);
}
return
saveSuccessful;
}