|
You can create a Web Application, which puts your code in an assembly. You might need to get an update for Visual Studio to support this.
Then when you publish select "Only files needed to run this application".
Regardless, IIS will not serve .VB files unless you manually configure the MIME type.
|
|
|
|
|
help me in asp code
i wants to create a voice forum and wants to count how many reply is posted and how much time it is read and how many user logon.
so plz help me what is the logic and code we have to use.
other work is i have two table and one table has one primary key and other have two foriegn key when i am inserting data by one post then only one reply is submited if next reply is submitted in child table then error is parrent key not found. if one more record is inserted in parent table then child table also fetch next record but one record .
i.e no of parent table record is equal to child table record .
where is the problems plz any body help me soon as possible.
sanjeev
|
|
|
|
|
idsanjeevjha wrote: where is the problems plz any body help me soon as possible.
You won't find out until you try for yourself.
Your question is of too general a nature to be answered - read the forum guidelines. The programming forums are intended for questions relating to a specific technical problem. If, during the course of developing this piece of software you do encounter some specific issues, by all means post another question.
Paul Marfleet
|
|
|
|
|
Hi,
help me..i want to change the visibility of a div control through javascript...
what i did
var c=document.getElementById(ctl00_divErrorMessageContainer);
c.style.display = 'none';
please anybody help me
|
|
|
|
|
Malayil alex wrote: var c=document.getElementById(ctl00_divErrorMessageContainer);
c.style.display = 'none';
var c=document.getElementById("ctl00_divErrorMessageContainer");
c.style.display = 'none'; also make sure this id exist in the page
|
|
|
|
|
|
Hello,
lately I looked at the Snap Shots preview widget (www.snap.com) and wondered how a specific feature has been implemented:
If you select the options (top right corner) and select something (f.e. a longer delay until the window pops up) the information is stored in a cookie belonging to the snap.com domain. This is no problem, because the options panel shown in the widget is an iframe which is loaded from the snap.com domain.
My question is now, how they get the information in the cookie belonging to the domain snap.com, if the javascript runs in the contex of a completely different domain??
It works, you can try... but how is this done? All I know is, that it is prohibited to access cookies of other domains.
Thanks! I am very interested in any ideas!
Constantin
|
|
|
|
|
I don't remember the specifics of how to accomplish this but it is probably similar to how whenever you go to any Microsoft website you first go to the passport website to get credentials.
Try Google for a writeup of how Microsoft accomplishes this. It was written up and spread on the internet a few years ago.
|
|
|
|
|
Hi Jimmy!
Thanks for your reply! I guess this may be a way to accomplish this effect.
Although the Snap widget doesn't use any redirects...
Best,
Constantin
|
|
|
|
|
Hey - Iam not sure if this is even possible with the limited API in classic ASP, but I need to find a way to forward a HTTP post request to a given URL. I need to do this to avoid a cross domain scripting issue where I cant get the target users to change their security settings. The client server is using IIS5 on windows2000 server so iam assuming I have no .net. The only other way of achieve this task instead of using classic ASP or .net is to use a console style CGI maybe - but id rather not rely on this!
Thanks for any help in advance - Mike
|
|
|
|
|
You can propagate the post parameters into some hidden form fields (using server side scripting) of a form with an action specifying the target URL and submit the form in an onload event.
|
|
|
|
|
If you are talking about having the server forward a post request, you may be able to do something like this. My VBScript is kinda rusty, so expect a bug or two:
<br />
<%<br />
Dim postData<br />
Dim xmlhttp <br />
<br />
'sample form-POST data<br />
postData = "data=100"<br />
<br />
'setup form post object<br />
'we use the XML HTTP object<br />
Set xmlhttp = server.CreateObject("MSXML2.ServerXMLHTTP")<br />
<br />
'replace with the server you would like to post to<br />
'make sure "POST" is capitalized<br />
xmlhttp.Open "POST","http://my.target.server/target.asp",false<br />
<br />
'set header with Content-Type rule for a typical form post<br />
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"<br />
<br />
'send data in key=value pairs<br />
xmlhttp.send(dataToSend)<br />
<br />
'write out return response from POST<br />
Response.Write xmlhttp.responseXml.xml<br />
<br />
'destroy the http object<br />
Set xmlhttp = nothing<br />
%><br />
If you are talking about just taking the browser post point to a differant location, if it's the same server, just use:
<br />
Server.Transfer ("newlocation.asp", true)<br />
-------------------------
Spiffdog Design
It's ok.. he's no ordinary dog...
|
|
|
|
|
Does anyone have experience, good or bad, with phpBB.
I have a client who wants for me to look into this product to see if it is suitable for his web site.
If you could relay your experiences with it I would be interested in hearing about them.
Thank you.
|
|
|
|
|
JimmyRopes wrote: Does anyone have experience, good or bad, with phpBB.
I have kind of a pretty nice experience with it because once uploaded it for some client using MySQL and implemented many forums and tested it. It was kind of a reliable thing for me.
AliAmjad(MCP)
|
|
|
|
|
Thank you for your reply Ali. Glad to hear you had a good experience with it.
|
|
|
|
|
http://acsource.net/acforum/viewforum.php?f=1&sid=770d21a72edd773153898ec359d84e0e
I like it but I like some others better. phpBB, a little simple
http://www.driveaccord.net/forums/index.php?s=94f76578d5359d487102da5889d7eacd
vBulletin, pretty. This may be my new favorite.
http://www.honda-tech.com/zerosearch?cmd=activethreads
zeroforum, not as pretty, the best for me for all around use. Might fall back to second.
This is from a user stand point.
|
|
|
|
|
Thank you for the links. I'll look into them.
|
|
|
|
|
Yeah. phpBB is nice one.. but you have to careful in choosing the anti-spam plug-ins... because a lot of spambot knows so well about phpbb. one of my friends run the forum by using phpBB once.. he was not able to flight the spam then he shut down the site finally.
everything has good points and weak points.. so, if you wanna know about the bad point, you may google it. phpbb sucks[^]
|
|
|
|
|
Thank you for the information Michael. I will pass it along to my client.
|
|
|
|
|
Hello, this seemed easy at first but now I think it's more complicated then my knowledge. I am trying to send a form to an email message. I do not want to use CDONTS because i need to include an attachment and I am not able to upload attahcments to my server. Basically there is a form that has some fields prefilled from a database and then I want to send those fields (including the TO, Cc and Bcc) to an outlook email message using mailto. It is a SQL server and I am using FrontPage 2003. here is some javascript I found but does not fill in after the TO (eve though I did test the Cc). Any ideas? Thanks
<code><a href="" onclick="javascript:this.href='mailto:' + document.emailForm.emailAddress.value +
'?SUBJECT=' + document.emailForm.[''].value + '\n\n';">Email This</a></code>
|
|
|
|
|
How to find out the installed version of MS Power Point from registry? I am going to build an app in which i have to check out the installed version of the MS power point onthe client machine. How can I do this?
Regards, Qaiser Nadeem
|
|
|
|
|
Look in HKEY_CURRENT_USER/Software/Microsoft/Office and you will see keys something like 10.0, 11.0, etc., along with possibly some others, depending on the Office bundled products you have installed like MS Project, etc.
Enumerate the keys and find the version of office that is installed.
Note - this is not 100% foolproof because there can be more than one Office release installed on the machine.
In that case you don't know which version the user will be using at the time they are using you're application, but it will work most of the time and you can program for the least common denominator or give them an option if there are more than one version of Office installed.
|
|
|
|
|
Hey Friends
I have a setup.exe file which can be downloaded from n number of sites.
Now when i run the setup.exe , i need to take different installation procedure depending on from where it was downloaded.
So is it possible to depict a way by which the setup.exe can know from where it was downloaded?
eg
if setup.exe was downloaded from www.abc.com
setup.exe needs to display a message hello abc.com
i can display a message but do not know from where it was downloaded.
programs accept command line parameters , may be something like this
or may be something on similar lines?
Regards
|
|
|
|
|
It sounds like you're looking for some type of branded (or co-branded) installer. One option would be to create a different installer for each branding. You would use the same installer project and either include different graphics or other resources based on a parameter read by the installer compiler.
|
|
|
|
|
yeah but the program is going to be deployed on many sites & hence looking for automation
|
|
|
|