|
Well,... almost. I've updated that last link again, but I am getting to issues that I can't figure out how to overcome.
The bottom footer: I have left it tucked inside the ContentContainer division, because if I don't, I can't get it even close to being below the ContentContainer material if the page becomes so long that the right scrollbar appears.
Also, my best efforts (the way I left it) resulted in the page working beautifully in Firefox, but the bottom scrollbar activates itself in IE, even though there is _nothing_ to the right of the screen! I believe this is because the ContentContainer's left margin is 120px, combined with a width of 100%. This also makes it so that the screen content doesn't wrap properly in IE (but it works wonderfully in Firefox, as I said).
Any ideas how to place the footer below the ContentContainer? Any idea how to get rid of the bottom scrollbar in IE without blowing everything else up?
I would love to have my site as clean as possible, but I'm beginning to suspect that it is just too much work to get this complicated of a style going.
Thanks,
David
(ps - The more I look at your JavaScript, the more I like it. Thanks.)
(pps - Even though Firefox renders it nicely, it does strange things when you highlight text by dragging the mouse over it. IE is much more predictable in that regard.)
|
|
|
|
|
12:32 am, CST: I'm giving up? Reposted best code so far in order to accomplish footer. Used a table. (Attempted it using only divs many, many times.) Gnnn. In addition, the solution appears different between Firefox and IE. In this case, I believe IE is correct for once.
David
|
|
|
|
|
hi, I am too tired to understand your first problem now, but I understand second one perfectly - I've run exactly to same problem. I've solved it with full path. And yes, it's ASP.NET solution, so I have base URI in config file. I think that best solution would be if HTML base tag could be applied localy. That's not the case, and convince W3C would take some time Nah.. I've just looked at your JS - basicaly same idea as mine.
btw you can use some ideas from http://dnhsoftware.org/[^], if you like the layout. Not a single misused table there!
David
|
|
|
|
|
i have uploaled my exe on the web server of our private net. now i want that whenever someone tries to download my exe, a pop-up box should come up which will ask for the license key. once the licence key is validated, only then the download should start. how do i implement it?
Secondly since the exe will be hosted on intranet, so whenever someone tries to download my exe, i need to know the IP address of the system which is trying to download it, check whether its a valid internal address and only then ask for licence input. how do i implement it?
|
|
|
|
|
Hi:
Regarding your first query, you can implement a login like script and only after validation of license, you can Response.Redirect to the EXE or Stream the EXE with appropriate content-type set.
Regarding your second query, you can configure at the server level instead of validation of network IPs in ASP since it would be processor intensive operation.
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
i think i can handle the first part of the query.
now, let me re-phrase my second requirement. i want that everytime my EXE starts it should first validate with the server. how do i do? any sample code?
|
|
|
|
|
Basically in the client workstation, each time the EXE is launched you want to check with the server.
Cool. You can have a Web Service exposed through your webserver and your application can contact the same.
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
You have written:
You can have a Web Service exposed through your webserver and your application can contact the same
But how do i do? please help out. some sample code? or just some idea how will my application contact the server? what sort of communication is needed?
|
|
|
|
|
well, i tried to put an executable on a web page so that it can be downloaded.
the code was CLICK HERE TO DOWNLOAD THE EXE FILE
The code worked when i put the web page on apache web server. but its simply not working for IIS. can anyone point me out where the problem is?
|
|
|
|
|
Have you tried putting it in a zip ? That way it will be smaller, for a start.
Why is it not working ( that is, what is it not doing ) ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
ya, its in zipped format.
by not working i mean that the code < a href ="myexe/Setup.exe" > < b > CLICK HERE TO
DOWNLOAD CAIR PERSONAL FIREWALL < /b >< /a > is working fine when i put this web page on a apache web server.(its downloading the file). but when i put this web page on IIS server, it does not download. its tries and finally times out
|
|
|
|
|
Regarding the timeout, ensure that the IIS does not try executing it. Execute permissions should be turned off otherwise, IIS will try to execute the DLL/EXE and similar types.
I think as goes the previous discussion, try with a zipped version, to save bandwidth over the network pipe.
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
thanks.. i had given execute permission for EXE. i have configured it properly and its running now
|
|
|
|
|
Go to the MIME headers in the IIS Manager of the website and add .exe files to be downloaded. This should do the trick
|
|
|
|
|
HELP!! I need a HTML code that I can use on Yahoo Email for putting a Picture(.gif) in the Signature. Any Help would be GREATLY Appreciated
|
|
|
|
|
If a standard img tag won't work, then nothing will.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
<img src="Your Path"/>
|
|
|
|
|
Ensure that Yahoo Email supports HTML Email Signatures and then paste the img tag
BTW, you need to upload that IMG file somewhere out on hosting servers. Is'nt it? Did you check whether your host supports remote loading of files?
If not, you may need to check out some Image Hosting servers?
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
I originally posted this on the C++ forum here, but didn't get any response, so I'm trying here ... BTW, I'm using Visual C++ 7 with MFC, which seems to be part of my problem:
A project I'm working on has me updating some app generated e-mail code (that used Simple MAPI) so that it can send image attachments that show up inline as part of an html message instead of simply as attachments. I used CDO for this, which worked great once I could finally figure out how it all worked (worst part is most of the MSDN samples were usually missing one key component to get it to work ... grr). I'm almost done, except for one little problem. What I want to do is open the generated e-mail up with the default e-mail program, to allow the user to change the message as they want and put in recipients. But, using the IMessage's Send function, the call will fail unless there is a recipient specified ... in other words, it will only send the message silently, without user interaction.
With simple MAPI, I can simply call SendMail with the MAPI_LOGON_UI|MAPI_DIALOG flags, and it opens up the e-mail in the e-mail client. This works great, and is what the old code used to do. Too bad I can't use this function with the IMessage message.
From what I can see from sample source and other documentation, with pretty much any other language supported by Microsoft, the Send function I'm calling has a ShowDialog parameter that allows you to pop-up the dialog like I want it to (I'm so sick of seeing VB examples like this I could just puke). Unfortunately, this function is not available with C++, it only has the one version that takes no parameters.
One line of thought I had was to save the email out as a temporary file, then send open it with a shell command .. but that won't work quite right either, the generated e-mail can be saved as a .eml file, which opens up in Outlook Express ... not the default e-mail program, and even that doesn't quite work the way I intend either.
I've been searching through MSDN and the web for over a day now, and because the functionality is there for other languages, I know there has to be a setting or field I can set to allow this ... but I can't find anything. Anyone go through something similar, or have some other place I can look?
-----
In the land of the blind, the one eyed man is king.
|
|
|
|
|
<%<br />
<br />
'Dimension variables<br />
Dim adoCon26w 'Holds the Database Connection Object<br />
Dim rsUser26w 'Holds the recordset for the record to be updated<br />
Dim strSQL26w 'Holds the SQL query for the database<br />
Dim lngRecordNo26w 'Holds the record number to be updated<br />
<br />
'Read in the record number to be updated<br />
lngRecordNo26w = Request.QueryString("d")<br />
strDate = lngRecordNo26w<br />
<br />
<br />
times = DateAdd("d",14,strDate)<br />
<br />
<br />
'Create an ADO connection odject<br />
Set adoCon26w = Server.CreateObject("ADODB.Connection")<br />
<br />
'Set an active connection to the Connection object using a DSN-less connection<br />
adoCon26w.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("admin/***********.mdb")<br />
<br />
'Create an ADO recordset object<br />
Set rsUser26w = Server.CreateObject("ADODB.Recordset")<br />
<br />
'Initialise the strSQL variable with an SQL statement to query the database<br />
strSQL26w = "SELECT * FROM tb_news Where n_date BETWEEN ("&strDate&") AND ("×&")"<br />
<br />
'Open the recordset with the SQL query <br />
rsUser26w.Open strSQL26w, adoCon26w<br />
<br />
%><br />
<br />
<br />
<% do while not rsUser26w.EOF %><br />
<% = rsUser26w("n_title") %> <% = rsUser26w("n_date") %><br /><br /><br />
<% = rsUser26w("n_desc") %><br /><br /><br />
<br />
<% <br />
rsUser26w.MoveNext <br />
Loop <br />
%><br />
<%<br />
'Reset server objects<br />
rsUser26w.Close<br />
Set rsUser26w = Nothing<br />
Set adoCon26w = Nothing<br />
%>
Heres my asp code but i can't get the records to come out my database any ideas? thx
|
|
|
|
|
Hi everyone,
I have a problem of sending email by using ASP code.
Because my pages host on a public host server, so I can't send email by simplely creating a CDO and send it. Here is the code that I used:
Dim msg
Set Msg = CreateObject("CDO.Message")
set msg.Configuration=objConfig
With Msg
.To = "to@hotmail.com"
.From = "from@yahoo.ca"
.Subject = "test"
.Body = "asdfas"
.Send
End With
set Msg=nothing
And also I know the smtp server address like: smtp.hostserver.com.
Does any know how to solve the problem? Please help me, it is really urgent!!
Thank a lot in advance!!!
Alan Shen
MCAD for .NET Version
^~^~^~^~^~^~^~^~^~^~^
Great idea is the beginging of success!
|
|
|
|
|
This is far too little information to work with, but I'll take a stab at it.
For one, you say you're using a public server - do you have a valid account on that server? If so, does the From property of your message object exactly match the account address? Most SMTP servers are set to reject any email that is from anyone who does not have a valid local account. This helps to keep spammers and other subhuman slime-molds under control.
Does your SMTP server require authentication? If so, the code you've provided doesn't include any provisions for it.
It would be very helpful if you would post the actual error messages that you're seeing - general descriptions of problems almost never lead to solutions. You might also consider posting the actual code for your solution - all of it - as these things can often be subtle, and no one can help you if you don't provide adequate information.
"...putting all your eggs in one basket along with your bowling ball and gym clothes only gets you scrambled eggs and an extra laundry day... " - Jeffry J. Brickley
|
|
|
|
|
Thanks a lot Roger!
I can't access the server directly, because I write the code for sb. The information I gave to you is what I knew.
I will put all the server and authentication information into the configuration, then give it a try.
Thanks again!
Alan Shen
MCAD for .NET Version
^~^~^~^~^~^~^~^~^~^~^
Great idea is the beginging of success!
|
|
|
|
|
Hi Alan:
I think you have'nt given the error messages that you are encountering whilst attempting to send the message.
Furthermore, try the following too:
(1) Any messages on EventLog or your application logger regarding this page that have been logged?
(2) Do you an On Error Resume Next. Do you have a On Error Resume Next somewhere on top but you are not checking the Error OBject after sending the mail.
(3) Regarding SMTP Server
(1)Is it accessible from your workstation?
(2)Is the SMTP service running?
(3)Does it support some type of authentication and if yes, are you authenticated to it?
Did this help you?
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
I'm developing a web application where a client registers himself and after that i want to create a database by using an existing template database from the server on the same server or another but with a differnt database name for example :Template db name - prodb
then new database name will be if the user name is "ng" then the database name will be
"ng_prodb"
i'm using c# as server side script, and SQL server 2000 is the database,please sugges me how can i achieve this..
Thanking you in advance
Regards
Nitin P.
|
|
|
|