|
Hi,
I have a website that's running from several months. Most of the web pages contain a common marquee tag. I want to put the tag in a html file and embed the html file wherever needed so that when ever a change is made to the marquee tag it affects all the web pages.
Thanks in advance
|
|
|
|
|
The easiest way is probably with Server Side Includes[^]
You put a tag like this in your main html page
<!--#include virtual="../TheOtherFile.html" --> which points to the other html file that contains the html you want to insert. The server (either IIS or Apache) will insert this file when the page is served.
This is something that I believe is turned on by default on IIS and Apache, but you may have to rename your main html to myfile.shtml to indicate that you want to process SSIs in the file. (This means that you may also have the change the default pages for your directories if you rely on default pages being default.html or something like that). Some of this may vary between providers though, so if in doubt check with your web host.
Simon
|
|
|
|
|
Didn't even know you could turn off server side includes. You definitely do not need to rename the file though. However aspx pages may not process server side includes. Not much point considering what they do.
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
www.JacksonSoft.co.uk
|
|
|
|
|
The Man from U.N.C.L.E. wrote: Didn't even know you could turn off server side includes. You definitely do not need to rename the file though.
You can[^], and you can also configure them to only be executed for specific file extensions, so it does depend on what your web host has got setup. My web host only processes SSIs on files named .shtml and .shtm. By default I think it's just on for all files, but you can't rely on that when you didn't do the IIS install yourself.
The Man from U.N.C.L.E. wrote: aspx pages may not process server side includes. Not much point considering what they do.
Yup, SSIs are not processed on aspx pages. You could probably hack up an alternative using something like Response.Write() , but like you say, not much point for asp. You'd probably just use something like master pages instead.
Simon
|
|
|
|
|
First, this would probably be better asked in the Web Development or ASP.NET forum since it has nothing to do with .NET Framework.
Have you considered using an asp.net master page?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Is it possible to write excel UDF with the help of build-in Visual Studio project type "Excel 2007 Add-In"?
|
|
|
|
|
Not that I know of... could be wrong though.
|
|
|
|
|
Google[^] says you can create an Automation Add-in that does the job.
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
www.JacksonSoft.co.uk
|
|
|
|
|
check this:
http://blogs.msdn.com/eric_carter/archive/2004/12/01/writing-user-defined-functions-for-excel-in-net.aspx
richta
|
|
|
|
|
my first dll is
using System;
namespace myfirst
{
public class demo
{
public string getmessage()
{
return "Hi!How Are You";
}
}
}
in folder e:\prac
and more dll is
using System;
using myfirst;
namespace mysecond
{
public class demo1
{
public string getmessage1()
{
demo d=new demo();
string str1=d.getmessage();
Console.WriteLine(str1);
}
}
}
and now i am using csc /t:library mysecond.cs
then i have following error and problem was same.please help me
mysecond.cs(2,7): error CS0246: The type or namespace name 'myfirst' could not
be found (are you missing a using directive or an assembly reference?)
|
|
|
|
|
vikas shukla wrote: are you missing a using directive or an assembly reference?
that tells you what is missing.
csc.exe has a lot of switches, try "csc /?" to get its help, and discover what "/r" does for you.
FYI: csc is part of .NET, hence look in a folder such as C:\Windows\Microsoft.NET\Framework\v2.0.50727
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
Just because you have the assemblies in the same folder, C# compiler does not automatically resolve referenced assemblies for you. You have to specify the referenced assemblies using the '/r' switch.
|
|
|
|
|
Hi,
I am using the connected Socket communication to send and receive messages from one application to another application. i will send or receive the messages by serializing the objects.
how can i differentiate the different messages received.
Thank you.
|
|
|
|
|
k3rkiran wrote: how can i differentiate the different messages received.
The obvious way is to put an identifier at the beginning of each message.
|
|
|
|
|
I think the absolute simplest way is to lead each message with
a message size field of a known size. Receive that field then use
that count to know how many bytes of message to receive. When you've
received the message bytes, you're ready to read the next message
length field....and so on.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi
Is it possible to hook the events of a WebBrowser navigation events further than just Navigating? I want to intercept certain types of events, like clicking on a webpages form-control (textarea or submit button)?
Seems to me that I can only hook the rather generic Navigating event which apparently does not allow for me to know the type of event.
Thanks in advance!
|
|
|
|
|
Hi all,
In VB.NET project, I'm trying to add an attachment to MailItem. Visual Studio 2008 timeout after around 60 seconds
A fatal error has occured.....please see Microsoft.....HRESULT=0x80131C8 ErrorCode=0x0
My code is failing at myMailItem.Attachments.Add line. it seems that i cannot add any attachment.
Failing SUB
Sub AddAttachment(ByVal MailId As String)
Dim myOlApp As Olk.Application
Dim myOlkNS As Olk.NameSpace
Dim myMailItem As Olk.MailItem
Dim myAttachments As Olk.Attachments
Dim myAttachment As Olk.Attachment
Const OlkCatExt As String = ".OlkCat"
myOlApp = New Olk.Application
myOlkNS = myOlApp.GetNamespace("MAPI")
myMailItem = myOlkNS.GetItemFromID(MailId, PSTStoreID)
Debug.WriteLine(myMailItem.Subject)
Debug.WriteLine(myMailItem.ReceivedTime)
Dim MyOlCat() As String = Split(myMailItem.Categories, ";")
If MyOlCat Is Nothing Then
'
'
'
Else
For Each OlkCat In MyOlCat
myAttachment = myMailItem.Attachments.Add((OlkCat + OlkCatExt), Olk.OlAttachmentType.olByValue)
myAttachment.DisplayName = OlkCat
'myMailItem.Save()
Next
End If
End Sub
All ideas are welcome
Best
Jean
|
|
|
|
|
Does anyone have any idea how to take a PDF and set this property using iTextSharp or any other free open source tool? Basically the idea is that we have a program generating PDF's and we want to be able to have someone in the office sign the document and then pass it down the line to the next person. Everything I have found has pointed to buying one tool or another, but we would really like to be able to do this without buying any tools.
Thanks in advance for any help!
--
"Keyboard not found. Press < F1 > to RESUME. "
Source unknown (appears in many common BIOSes as a real error message)
|
|
|
|
|
I know its a bit late, but here is a very nice article i found about signing of PDFs using iTextsharp and hence stopping others from tempering it. I hope its helpful for you.
|
|
|
|
|
Salve Michela,
grazie in partenza per l'attenzione. Ho un problema da risolvere abbastana urgentemente.
Premetto che sono una programmatrice .NET autodidatta, per cui presumo che il mio problema dipenda da un'ignoranza di fondo, cmq proverò a spiegarmi nel modo più chiaro possibile.
Sto sviluppando un'applicazione desktop in .NET 2005 (C#) che crea dei report in Word e li memorizza sul disco del client. L'esigenza è che l'applicativo funzioni su pc che abbiano un O.S. che va da Windows 98 a Vista, e di conseguenza che funzioni con tutte le versioni di Office.
Sul pc di sviluppo (XP) è installata la versione di Office 2007, per cui nell'applicazione punto alle seguenti librerie (v. 12.0.0.0)
- Microsoft.Office.Interop.Word
- Microsoft.Vbe.Interop
- office.dll
e per creare i report mi baso su dei modelli (.dot) creati sempre con word 2007, ma salvati con formato Word 97-2003.
Aggiungo che per puntare alla directory su cui vengono salvati i .doc, utilizzo la variabile Application.StartupPath + "percorso relativo all'interno della dir di installazione".
Ovviamente sul pc di installazione va tutto bene, ma se mi sposto su un altro pc, anche sempre con XP ma con una versione differente di Office, le cose nn quadrano più.
Trattandosi di oggetti COM, nel progetto di setup ho aggiunto la registrazione delle librerie (opzione VsdraCOM) e la registrazione nel Registry Key delle dll. Ho creato i file reg appositi con l'utility RegAsm delle dll su menzionate.
Fatto sta che la situazione è la seguente:
Nel GAC sono registrate le versioni 11.0.0.0 e 12.0.0.0 delle librerie suddette
Nel Registry Key ho un errore dovuto al caricamento dei tipi dll.
E non ho impostato nulla di particolare riguardo i diritti di lettura/scrittura su disco.
Dovrei forse creare una zona "trusted" con AppDomain o sbaglio qualcosa nella registrazione delle COM??? o altro!??!??!
Ho le idee un po' confuse su quanto ci sia da fare per risolvere questo problema, ma mi chiedo (e giro la domanda): è possibile raggiungere l'obiettivo prefisso senza l'ausilio di librerie ad hoc, come ad es CrystalReport? Cioè, possibile creare dei report validi per tutte le versioni di word, ceh giri su pc che hanno anche OS datati?
Nel caso in cui si possa fare, ti sarei grata se almeno potessi indicarmi degli articoli di riferimento.
Purtroppo sono arrivata ad avere davvero poco tempo a disposizione per risolvere questo problema.
Grazie ancora e buon lavoro,
Daniela.
|
|
|
|
|
This is an English speaking board.
|
|
|
|
|
Signor Pallini can probably deal with it.
|
|
|
|
|
Cara Daniela,
perché non scrivi la tua richiesta in inglese?
---
Dear Daniela,
why don't you write your request in English?
Michela
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Daniela - if you turn the gromit sideways, and lubricate your flange, you should have no problems.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Cara Daniela,
interfacing with different versions of Word on different Windows version isn't easy.
I normally try and avoid it by creating RTF files by code inside my app; RTF files can be opened by WordPad and, when available, by all versions of MS Word. RTF is a tricky language, it cannot do everything Word can, it can however do more than WordPad allows you to create, e.g. you can create tables in RTF which you can look at in WordPad, but WordPad would not let you create them.
I have no particular references on this; all I did is based on a "Rich Text Format (RTF) Specification" document (huge Word document) I've once found through Google, and some experiments.
Hope this helps.
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|