or
Microsoft JScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll. |
I am trying to use the ModalPopupExtender in the ASP.Net Ajax 3.5 controls. I have the following registered on my page.
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager> |
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
</telerik:RadAjaxManager> |
<
telerik:GridCheckBoxColumn
DataField
=
"isadmin"
DataType
=
"System.Boolean"
HeaderText
=
"Admin"
>
</
telerik:GridCheckBoxColumn
>
For
Each
uploaditem
As
Telerik.Web.UI.UploadedFile
In
rupUploadFile1.UploadedFiles
Dim
objUploadStruct
As
New
Structures.CommonStructures.UploadStruct
objUploadStruct.originalfilepath = uploaditem.FileName
objUploadStruct.CustomerID = userinfo.ActiveCustomerID(
False
)
objUploadStruct.CategoryID = GetCategoryID()
objUploadStruct.OrganizationID = GetOrganizationID()
objUploadStruct.MessageTrackingid = GetMessageTrackingID
objUploadStruct.imageusageid = enuImageUsageID
objUploadStruct.RequestPoint = enuUploadTriggerPoint
objUploadStruct.UserID = userinfo.UserID
objUploadStruct.LinkedContent = LinkedContent
objUploadStruct.FileName = uploaditem.GetName
objUploadStruct.LanguageID = userinfo.DefaultLanguage
objUploadStruct.Display_Name = Left(uploaditem.GetName, uploaditem.GetName.LastIndexOf(
"."
))
objUploadStruct.Description = Left(uploaditem.GetName, uploaditem.GetName.LastIndexOf(
"."
)) +
" from upload"
'objUploadStruct.EntryTypeID = GetEntryTypeID(uploaditem.GetExtension)
Try
uploadedid = SaveUploadedFile(objUploadStruct, rupUploadFile1.TargetPhysicalFolder +
"\"
+ uploaditem.GetName)
If
uploadedid = 0
Then
bolIsError =
True
strErrorMessage.AppendLine(uploaditem.GetName &
": "
& Global.Castnet.App.Language.CastnetInterpreter.InternationalizeString(
"UnspecifiedError"
, intLanguageCode) &
"<br />"
)
End
If
Catch
ex
As
Exception
strErrorMessage.AppendLine(uploaditem.GetName &
": "
& Global.Castnet.App.Language.CastnetInterpreter.InternationalizeString(ex.Message.Replace(
" "
,
""
).Replace(
"."
,
""
), intLanguageCode) &
"<br />"
)
bolIsError =
True
End
Try
Next
Thanks
Carlin
Protected
Sub
grdDocumentList_ItemCommand(
ByVal
source
As
Object
,
ByVal
e
As
Telerik.Web.UI.GridCommandEventArgs)
Handles
grdDocumentList.ItemCommand
If
e.CommandName =
"Download"
Then
Dim
item
As
GridDataItem =
DirectCast
(e.Item, GridDataItem)
Dim
FileName
As
String
= item(
"FileDownload"
).Text
Dim
MeetingTopicSid
As
Integer
= item(
"Meeting_TOPIC_SID"
).Text
Dim
TargetFile
As
String
= FileName
Dim
file
As
System.IO.FileInfo =
New
System.IO.FileInfo(TargetFile)
'-- if the file exists on the server
If
file.Exists
Then
'set appropriate headers
Dim
liveStream
As
FileStream =
New
FileStream(TargetFile, FileMode.Open, FileAccess.Read)
Dim
buffer(
CType
(liveStream.Length,
Integer
))
As
Byte
liveStream.Read(buffer, 0,
CType
(liveStream.Length,
Integer
))
liveStream.Close()
Response.ClearHeaders()
Response.ClearContent()
Response.Clear()
Response.ContentType =
"application/octet-stream"
Response.AddHeader(
"Content-Length"
, buffer.Length.ToString)
Response.AddHeader(
"Content-Disposition"
,
"attachment; filename="
+ file.Name)
Response.BinaryWrite(buffer)
'Log User Download
SqlHelper.ExecuteNonQuery(ConfigurationManager.ConnectionStrings(
"ASPNETDBConnectionString"
).ConnectionString,
"usp_InsertMEETING_TOPIC_DOWNLOAD_LOG"
, Session.Item(
"gbUserSid"
), MeetingTopicSid, DateTime.Now)
'Rebind Grid
Me
.grdMeetingList.DataBind()
End
If
End
If
End
Sub