|
Paul Watson wrote:
I am trying to make The Wizard of Oz more accessible to todays youth by setting it in Harlem and using ghetto gangsetr-beeetch language.
Oh, ok Paul... [Hey Toto.. I think he's taking some of those new "Yello Brick" bangers.. lets get outta here... ]
Regards,
Brian Dela
Níl aon tintéan mar do thintéan féin.
Is fear rith maith ná droch sheasamh.
Irish Sayings
|
|
|
|
|
Hello,
I'm trying to do the following,
I need to exchange some data from a database stored on a IIS server.
I thought I would use XML for the data format.
Note: ASP.NET is not available on this server.
Note: .NET framework is not availble on the client
The client app is in C++ and the server is ASP.
The client has made a tcp connection to the server and I can send HTTP headers
and get a response.
My question is how can I send the XML data to the server on a HTTP connection and have the ASP code read this data?
Not sure what the HTTP headers or method is to send large chunks of data to a webserver.
Receiving is fine, request a page and use ASP Response.Write to output the XML Data.
Cheers
John
|
|
|
|
|
johnb wrote:
My question is how can I send the XML data to the server on a HTTP connection and have the ASP code read this data?
Just an idea, but could you not use the upload features of HTML? Not sure how you do it in C++, but maybe have a look at how it is done with HTML and ASP and then watch the header files (where I assume the uploaded file is stored.) Then you could mimmick it. AFAIK it MIME encodes files for uploading.
You could also just use FTP to FTP up the XML file and then alert the ASP code to get the file.
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
Hello Paul,
I found a way by using POST on the client side and BinaryRead on the ASP side.
Thanks for info
Cheers
John
|
|
|
|
|
I'm using ActiveXObject function of JavaScript in order to instantiate a COM in the head section of a HTML. Unfortunately, the browser shows up a message box every time i load the page, saying
An ActiveX control on this page might be unsafe to interact with other part of the page.
Do you want to allow this interaction? (Yes, No) Do you know how could i disable it?
rechi
|
|
|
|
|
Try adding the site to the trusted zone in IE.
|
|
|
|
|
You'll be able to turn it off for yourself (put the site in the trusted zone, as Ray said), but you won't be able to prevent the warning appearing for everyone else who visits the page
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
Hi all
What is the best font size? I like 10pt, but I have a 17" running 1024x768. It seems also to be the default size font for ASP.NET controls. Just wondering...
Any suggestions?
"I dont have a life, I have a program."
|
|
|
|
|
leppie wrote:
Any suggestions?
Yes, don't use absolute font-sizes, use relative font-sizing. Everyone has differnet monitor sizes, resolutions and eye sight, so 10pt may be nice to you but it will be unreadable for Joe Schmoe in Timbuktu with his 50foot screen.
Absolute font-sizes are pt and px . Rather use % (percentage) or em .
I have a simple article on it here: http://codeproject.com/html/relativefontsize.asp[^]
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
Hi All:
I have a peculiar Challenge and need a work around.There is a form that my application uses which has a drop down list being populated at run time.And there can be a case when there is no data to populate it.
Apart from the data being populated i want the dropdownlist to have the option "Select one by clicking" as the default selected option in this listbox.I have managed to do it by the commands txt_listbox.items.add and then selected It using txt_listbox.items.findbytext("---").selected=true
but then the challenge is this option though gets selected is the last item on my dropdown listbox after all the data from the datatbase..But i want it to be the first..How do i do that.
If i try adding this entry and then populating from the database the database entries wipe out this entry or i get some nasty errors.
Any help is greatly appreciated..
Regards
Pradhip.S
If a Building is Completed then why do they call it BUILDING ??
|
|
|
|
|
Pradhip wrote:
If i try adding this entry and then populating from the database the database entries wipe out this entry or i get some nasty errors.
(I assume you are doing this in ASP because you are in the web dev forum, not the ASP.NET forum. I also assume this is not a Windows app you are talking about...)
Ok I do not have access to your code so I am just going to give you a sample of how we do it:
<select name="selSample" id="selSample">
<option value="na" selected="true">Select one by clicking</option>
<%
Do Until rs.EOF
Response.Write("<option value=""" & rs("id") & """>" & rs("Title") & "</option>")
rs.MoveNext
Loop
%>
</select>
As you can see first the <select> is created, then the default/selected item created. Then it loops through all the items in the recordset outputting the neccesary <option> elements.
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
Hi,
I'd like to host two intranet sites on one IIS server, without using subdirectories. They don't necessarily need meaningful names, but it would be nice anyway.
I know it's possible - but how?? :puzzled:
TIA
Peter
skulls don't kiss for an explanation - wait for the vacation photos! [sighist]
|
|
|
|
|
peterchen wrote:
without using subdirectories
Do you mean you want it so that you will have two intranets where the URLs contain no sub-directiors? e.g. http://intranet1 and http://intranet2 as opposed to http://intranet/1 and http://intranet/2 .
Either way, this article seems quite helpful: How to Create Multiple Websites with one IP address [^]
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
This one leaves me a bit puzzled (although it seems to do what I want to).
Where do I specify the location of the second sites's files?
(The "different port" solution would be ok with me )
skulls don't kiss for an explanation - wait for the vacation photos! [sighist]
|
|
|
|
|
If I remember correct from NT4 days, you will need to setup host headers, quite easy via the IIS manager, but only works on the server versions of IIS, else you can use some cheap scripts that doesnt really qualify as virtual hosting.
Hope this helps
"I dont have a life, I have a program."
|
|
|
|
|
Hi,
In my form, I have two text fields called txt1 and txt2. I am using javascript pop up calender and creating date value for txt1 and calling a function onchange="popVal()" in txt1.
function popVal(){
window.document.form1.txt2.value = window.document.form1.txt1.value
}
this does not insert the txt1 date value into txt2. I tried onblur, onfocus as well. can any body help?!
I will be most greatful. Thank you.
Bravo Two Zero
A pen is mighter then a sword.
|
|
|
|
|
BravoTwoZero wrote:
and calling a function onchange="popVal()" in txt1.
function popVal(){
window.document.form1.txt2.value = window.document.form1.txt1.value
}
This won't work as you have noted when you are setting the values programmtically. No "event" has taken place for that function to be called. I would assume that you are either loading the pop up calendar either with the onLoad event or by clicking a button. I would suggest that you add an additional function call to check the value of txt1 after the function has returned, then populate txt2. Hope this helps.
Nick Parker
May your glass be ever full.
May the roof over your head be always strong.
And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing
|
|
|
|
|
I try to get a 1 pixel size border at the bottom of my cell in a table:
style="border-bottom-style: solid"
This will give me a bold border...
I tried this but it didn't worked:
style="border-bottom-style: 1 solid"
This gave me nothing... huh? okay.. can you suggest something?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
style="border-bottom-width : 1; border-bottom-style: solid"
Back to real work : D-20.
|
|
|
|
|
Rickard Andersson wrote:
style="border-bottom-style: 1 solid"
You cannot do that. Basically there are many ways of specifing the border.
One is like so: border: solid 1px #000000
Or you can break that up into:
border-width: 1px;
border-style: solid;
border-color: #000000;
Now that can be done for border-top , border-right , border-bottom and border-left
e.g. border-bottom: solid 1px #000000 or
border-botton-width: 1px;
border-botton-style: solid;
border-botton-color: #000000;
CSS gives you quite a few options to suite your coding style. I prefer the "all on one line" option and it is naturally lighter on bandwidth (which matters when a CSS file is downloaded hundreds of thousands of times a day.)
What you were trying to do is set the style of the border-bottom to a width of 1 .
Also remember to put in the units for widths, e.g. px, em, % or pt. If you leave it out then different browers default to different things, which is bad
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
Paul Watson wrote:
Also remember to put in the units for widths, e.g. px, em, % or pt. If you leave it out then different browers default to different things, which is bad
Ought... I think I have much work to do!
Thank you for all that!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
I've finally gotten around to playing with ASP (yeah only a few years behind everyone else - I've been busy!) and I love it! I had an ADO data access page working great this week until I tried to get cutesy and put the connection object in an include page. Theoretically this would allow me to use the same connection across many pages. In practice, it crashes IIS 5.0 with the message "exception 'Runtime Error'" whenever I try to access the calling page.
I tried enabling all verbs for .asp extensions on the virtual direcory that contains the files, but that didn't help. I tried restarting IIS after making that change, but after stopping it I found that I can no longer start IIS - it reports a duplicate address in use. The MS Knowledge Base offered a few clues, all wrong as usual, and using two different port scanners I confirmed that no other program is using port 80. Rebooting the machine solved the problem of being unable to start IIS, but it didn't help the problem of using SSI scripts - it still doesn't work, providing the helpful meesage that an Object was expected in the calling script. The object in question is a connection created by the included file.
Is there a switch in IIS that I need to set to allow SSIs to work? It's not a big deal, as I can create connections on every page and make it work nicely. But it's a pain to do so, and I suspect that it's a poor practice, as well. I'd really like to make SSI work - any thoughts?
"When in danger, fear, or doubt, run in circles, scream and shout!" - Lorelei and Lapis Lazuli Long
|
|
|
|
|
Hi,
I have once seen this problem. I tried re-installing MDAC -- Microsoft Data Access Component and a reboot after that solved the problems associated with
Server.CreateObject("ADODB.Connection")
Perhaps you can try reinstalling MDAC 2.7 (which is the latest one now)
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|
|
That's a good thought, but the problem isn't with creating the connection. When I put the connection code in the main page it works fine. The errors occur when I try to put the connection code in an include file. The main page then acts as if the #include never happenned, and the object was never created. I copied and pasted working code from the main page to the include file, then added the include directive to the top of the main page, saved everything, and it all stopped working. That led me to suspect that my installation of IIS may be corrupted, so I reinstalled it tonight. I haven't played with the site anymore tonight, but a quick check indicates that the reinstallation helped something. My default site was hacked last April replacing a lot of the content, and I thought I had it all cleaned out. But since then it has been impossible to contact http://localhost, and now that's working again. Maybe ASP will work again, too!
"When in danger, fear, or doubt, run in circles, scream and shout!" - Lorelei and Lapis Lazuli Long
|
|
|
|
|
Has everyone here tried asp.net web matrix on
http://www.asp.net/webmatrix?
I think it's worth while trying,
But it seems to have a major problems,that is can't be used outside english codes,I mean it can't display any other languages characters other that english?
What is your opinion?
this is my signature for forums quoted from shog*9:
I can't help but feel, somewhere deep within that withered, bitter, scheming person, there is a small child, frightened, looking a way out.
|
|
|
|