|
Any tip how to make that "hook".
HttpHandler?
...and justice for all
APe
|
|
|
|
|
no its even simpler than that
all links are of the form:
my_logging_function(link)
the logger just logs and then redirects to the link
"there is no spoon" biz stuff about me
|
|
|
|
|
I have a problem it seems that when I try to send a file in the html format it doesnot send the saved html files i have saved based on the response. For instance I have four different html emails to choose from based on the customers request. Originaly I had no problems using this code in the CDONTS format where I could tell it what type of mail it was based on the body format.By the way I'm loking for independant web developers that Know asp.net or asp to develope and maintain web sites.
Email me at marco@chna.com
<br />
<!--METADATA TYPE="typelib" UUID="CD000000-8B95-11D1-82DB-00C04FB1625D" NAME="CDO for Windows Library" --><br />
<br />
<!--METADATA TYPE="typelib" UUID="00000205-0000-0010-8000-00AA006D2EA4" NAME="ADODB Type Library" --><br />
<!--#INCLUDE FILE="settings.asp" --><br />
<br />
<%<br />
function sendemail(cEmail,cName,cSubject,cBody,cBCC,lHTML)<br />
On Error Resume Next<br />
<br />
if gEmailComponent="CDO" then<br />
Dim objCDO<br />
Dim iConf<br />
Dim Flds<br />
<br />
'Const cdoSendUsingPort = 2<br />
<br />
Set objCDO = Server.CreateObject("CDO.Message")<br />
Set iConf = Server.CreateObject("CDO.Configuration")<br />
'cdoSendUsingPort<br />
Set Flds = iConf.Fields<br />
With Flds<br />
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2<br />
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail-fwd"<br />
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25<br />
.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 40<br />
.Update<br />
End With<br />
<br />
Set objCDO.Configuration = iConf<br />
<br />
objCDO.To = cEmail<br />
objCDO.BCC = cBCC<br />
'objCDO.Value("Reply-To") = gCompanyEmail<br />
objCDO.From = gCompanyEmail<br />
objCDO.Subject = cSubject<br />
'objCDO.importance = 1<br />
<br />
'Set body format for lHTML<br />
if lHTML then<br />
objCDO.HTMLBody = cBody<br />
else<br />
objCDO.TextBody = cBody<br />
end if<br />
objCDO.Send<br />
'set objCDO = closed<br />
'Set iConf = closed<br />
'Set Flds = closed<br />
'Response.redirect "confirmation.html"<br />
' Any existing page can be used for the response redirect method<br />
'END IF<br />
<br />
set objCDO = nothing<br />
Set iConf = Nothing<br />
Set Flds = Nothing<br />
end if<br />
Error=Err.description<br />
<br />
sendemail=Err=0<br />
<br />
end Function<br />
<br />
%>
Your help is greatly apprciated...........
|
|
|
|
|
Anyone know of message boards which are open source and powerful like CP? I need it in PHP however
I have tried the PHP version available with the message boards source for CP boards here on CP, but it totally sux...
So does anyone know of an alternate PHP message board? I'm not a real fan of those phpBB type forums...however if they integrate into the body of a web site easily (so they don't require a sepaerate page) I'd be interested.
Thanks
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
Probably one of the most popular PHP boards that I've seen is phpBB. I haven't used it too much, so I don't know how much is there; but, it should be worth checking out.
Michael Flanakin
Web Log
|
|
|
|
|
One of these days I will be releasing my port of the CP forums into the wild, but I don't have a time frame for you. Best not to rely on me if you can find a different solution.
http://www.sagara.org/cpforums/[^]
|
|
|
|
|
Hockey wrote:
those phpBB type forums
Those r really nice... I tried them once... and the skins etc are good
I was born intelligent Education ruined me!.
|
|
|
|
|
please i have troubles with the error The underlying connection was closed: An unexpected error occurred on a receive. in my web service somebody knows how to avoid it or resolve this error . thanks
|
|
|
|
|
KLJUCE wrote:
An unexpected error occurred
Ah! Yes.... You need to expect the unexpected.
Sorry, that this was absolutely no help - it just tickled my sense of humour.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
|
|
|
|
|
Hi,
I have a page that does a password change. It takes in parameters and updates it to the database.
Now, I want the main page to call this page in a modal window.
Problem is that when the user hits okay in the modal, a new window pops up. How do I avoid that?
I'm new .. so detailed examples or instructions would be appreciated.
|
|
|
|
|
Every time I try to call a web method, I get this error: System.Net.WebException...unerlying connection closed. cannot connect to remote server. I can successfully add a web reference, meaning I can see web service. When I tried compiling the project in a different machine, and running it there...it works.
|
|
|
|
|
I'm creating an installer for a web application, however I am a bit stumped on how to create the shortcuts to access the homepage. (The application is being installed on a stand-alone local machine)
I created a shortcut for the programs menu and the Fafourites folder however neither opens the home page properly. On my Development system it open the Home.aspx into Visual Studio. When I look at the shortcut the installer actually created it points to C:\inetpub\wwwroot\..... rather than http:\\localhost\....
Does anyone have any ideas on how to get the shortcut to work properly. (Or have pointers to documentation I may have missed)
Thanks,
Colin.
EuroCPian Spring 2004 Get Together[^]
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
|
|
|
|
|
Is this possible....?
function myEvent {
// raise event command //
}
------
Codebehind .aspx.vb page
------
Protected withevents myEvent as ???
sub myEvent_fired() handles myEvent
msgbox("Your event has fired!")
end sub
------
Maybe something completely different, but hopefully this spells out the problem!
|
|
|
|
|
I'm not sure I understand your meaning, myEvent is going to be a client-side function, and the CodeBehind of course runs on the server. You can always do the usual things from the Javascript function, like submit the form, or set the value of a hidden field, if that helps. If not, give us a bit more detail on what you're trying to do, and we can give you the best work-around.
Also, don't forget that we have a separate dedicated forum for ASP.NET now: http://www.codeproject.com/script/comments/forums.asp?forumid=12076[^]
Marcie
http://www.codeproject.com
|
|
|
|
|
Yes, your understanding was correct!
I have a client side js function that needs to raise an event when it has finished so that the codebehind can process either the contents of a hidden field on the page to store what has happened, or indeed just handle a passed data string.
In a perfect world I could raise an event thus.
window.external.raiseevent('myEventFinished','string data to send to server codebehind')
And consume this in the server codebehind code, although have not worked out how yet!
But maybe I cannot send a string of data this way, and need to store the data in a hidden control before calling the event.
Either way, I am stuck on consuming the event from the server codebehind file.
Thank you for the new link, I will also check this out!
Many thanks Marcie,
Mike.
|
|
|
|
|
Hi,
Wenn i have my database open(not mutation of tables) the website itself doesn't work anymore. I have to close Access and than it works. Does anyone have a sollution for this?
Thanx in advance,
Willem
|
|
|
|
|
By default, I believe Access opens in exclusive-mode, meaning only one user can have the database open at a time.
Marcie
http://www.codeproject.com
|
|
|
|
|
As Datagridgirl said, Access does tend to open in Exclusive mode. But another thing to check is the permissions of the directory where the database lives. When Access opens a database it creates a ".ldb" file used for locking. I have seen it where the security rights only grants access to the owner of a file, which in your case would be Access. If exclusive is not the problem, check security rights.
--
Joel Lucsy
|
|
|
|
|
Agree with Joel Lucsy. I connected access successfully in ODBC when access had be opened. Thus I think that is a problem of rights. When a web page is accessed IIS logins with IUSER_xxx that is not right for *.ldb file.
|
|
|
|
|
Hi
I just want to inquire if the Netscape browsers (any version, especially the updated one) as well as the Macintosh supports the opacity property? If it is supported what is the syntax or how it would be apply in the code especially in the CSS?
Thank You Very Much
|
|
|
|
|
If I remember well, the filter Opacity attribute in CSS, it's just support it in IE, I don't use Netscape, I use Mozilla FireFox and this don't support.
----
hxxbin
|
|
|
|
|
I Heard that the new netscape does support a large number of CSS style settings. But only versions 6 to 7.
|
|
|
|
|
I can't seem to get "Subscribe" in the code below to come up automatically in the subject line when the image is clicked. Can someone tell me what I'm doing wrong?
<p><a href="mailto:subscribe@holiday-lake-estates.com subject:Subscribe"><img src="images/subscribe.gif" width="233" height="21" border="0"></a>"
Thank you in advance!
jwoffmt
|
|
|
|
|
try:
mailto:erickrock@netscape.com?cc=bob@acme.com&subject=the subject
"there is no spoon" biz stuff about me
|
|
|
|
|
Hi again,
Many thanks for everyone who has helped me on this message board. I have a non-programming question this time.
I'm trying to convince our IT department to use SQL server, instead of MS Access, as the backend for an application form.* I need reasons why. In my experience in the past, SQL server can handle mutltiple users at once, the data is less likely to be corrupted, and it is more secure and stable. Is there anything else I'm missing? Please advise.
Thanks for chiming in,
Donna
*Background:
Right now, when students fill out the application, the data is sent via email. The email is printed and someone has to manually input the information into another system. It would be great if their efforts were streamlined by having the data in a database. That way, it can easily be uploaded into the other system. W/ SQL, queries could be written to extrapolate the data accordingly. The format could be in comma separated values or tab separated values to be easily uploaded into the other system.
|
|
|
|