js =
"var BAN = $find('" + BAN.ClientID + "'); ";
ScriptManager.RegisterStartupScript(this, this.GetType(), "InitControls", js, true);
| string js = "var BAN, CompanyName, Contact, Address1, Address2, City, State, Zip, LocalBAN, Phone, Email; "; |
| ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "DeclareControls", js, true); |
| js = "BAN = $find('" + BAN.ClientID + "'); "; |
| js += "CompanyName = $find('" + CompanyName.ClientID + "'); "; |
| js += "Contact = $find('" + Contact.ClientID + "'); "; |
| js += "Address1 = $find('" + Address1.ClientID + "'); "; |
| js += "Address2 = $find('" + Address2.ClientID + "'); "; |
| js += "City = $find('" + City.ClientID + "'); "; |
| js += "State = $find('" + State.ClientID + "'); "; |
| js += "Zip = $find('" + Zip.ClientID + "'); "; |
| js += "LocalBAN = $find('" + LocalBAN.ClientID + "'); "; |
| js += "Phone = $find('" + Phone.ClientID + "'); "; |
| js += "Email = $find('" + Email.ClientID + "'); "; |
| ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "InitControls", "function InitControls() {" + js + "}", true); |
| ScriptManager.RegisterStartupScript(this, this.GetType(), "InitControlsCall", "Sys.Application.remove_load(InitControls); Sys.Application.add_load(InitControls);", true); |
Heres's the ref. in assemblyinfo.vb:
<Assembly: WebResource(
"[AssemblyName].FullToolsFile.xml", "text/xml")>
I've tried creating the toolsfile.xml with and without the XML declaration. There is no difference in the error.
| Server Error in '/Support.SyscomGM.com' Application. |
| -------------------------------------------------------------------------------- |
| '~/WebResource.axd?d=aaW8Z0muXD8UCgD1F5rh6NrswGUH-n32h7QL8r5EKe4JkUGyDvia1dpgWW9Lmj2o0&t=633909254677368497' is not a valid virtual path. |
| Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. |
| Exception Details: System.Web.HttpException: '~/WebResource.axd?d=aaW8Z0muXD8UCgD1F5rh6NrswGUH-n32h7QL8r5EKe4JkUGyDvia1dpgWW9Lmj2o0&t=633909254677368497' is not a valid virtual path. |
| Source Error: |
| Line 470: |
| Line 471: If Not String.IsNullOrEmpty(EditorToolsFile) Then |
| Line 472: HtmlEditor.ToolsFile = EditorToolsFile |
| Line 473: Else |
| Line 474: |
Guys,
I need to style content area so it looks like a page in a Word document (gray padding outside with white page in a middle). White space in middle needs to have a specific size. Let’s say 400X600. To accomplish this I created css for ContentAreaCssFile as follows
| body {background-color: #a5a5a5!important;} .PagePlaceholder
{background-image: url(images/pageBG.png); background-repeat:no-repeat;background-position: center top;
padding: 20px; margin:20px; }
|
The problem is that as soon as I set a height on PagePlaceholder class and click on that region in the editor It gets selected ( borders around it appear ) in IE 7 and 8. Work fine in FF. that selection makes it difficult to edit content that’s inside of PagePlaceholder div. can you please help me out here.
Thank you!
<
asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<telerik:RadUpload ID="RadUploadLogo" runat="server" EnableAjaxSkinRendering="False"
EnableEmbeddedBaseStylesheet="False" EnableEmbeddedSkins="False"
TargetPhysicalFolder="C:\Test"
EnableFileInputSkinning="False" CssClass="formfields" AllowedFileExtensions=".gif"
ControlObjectsVisibility="None" onfileexists="RadUploadLogo_FileExists">
</telerik:RadUpload></ContentTemplate></asp:UpdatePanel>
protected
void RadUploadLogo_FileExists(object sender, Telerik.Web.UI.Upload.UploadedFileEventArgs e)
{
lblUploadFileName.Text =
String.Format("C:\\Test\\{0}", e.UploadedFile.GetName());
}
[/code]
Is there a way to make the FileExists event fire again?