|
I am new to asp.net and C# and I just want to know what application servers are out there. I know there is IIS but are there any others. Also how much does IIS cost? or is free?
|
|
|
|
|
And you posted this here after I answered you in the ASP.NET forum because..... ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
Hello!
Can you help me?
I've this situation:
I use a web service through ajax. The service is "TreStringheService" and the web method is "GetTreStringhe", and that method accept one string parameter (in this case is 0100012).
<script language="javascript" type="text/javascript"><br />
<br />
function CallWebMethod()<br />
{ <br />
TreStringheService.GetTreStringhe("0100012",Fill,ErrorHandler,TimeOutHandler);<br />
}<br />
<br />
function TimeOutHandler(result)<br />
{<br />
alert("Timeout :" + result);<br />
}<br />
<br />
function ErrorHandler(result)<br />
{<br />
var msg=result.get_exceptionType() + "\r\n";<br />
msg += result.get_message() + "\r\n";<br />
msg += result.get_stackTrace();<br />
alert(msg);<br />
}<br />
<br />
function Fill(result)<br />
{<br />
var lblMsg=document.getElementById("lblMsg");<br />
lblMsg.innerHTML = "TEST";<br />
}<br />
</script><br />
<br />
<input type="button" onclick="CallWebMethod()" title="CLICCAMI" /><br />
<span id="lblMsg" style="font-weight: bold; color: red;"></span><br />
<br />
<br />
Now, what i'll want is to passing to the Fill function a string parameter that is the element id, so i can say to the function the right element to use, for example:
<input type="button" onclick="CallWebMethod('lblMsg')" title="CLICCAMI"/> <br />
<br />
function CallWebMethod(elementID)<br />
{ <br />
<br />
TreStringheService.GetTreStringhe("0100012",Fill,ErrorHandler,TimeOutHandler);<br />
}<br />
<br />
<br />
<br />
<br />
function Fill(?????)<br />
{<br />
var lblMsg=document.getElementById(elementID);<br />
lblMsg.innerHTML = "TEST";<br />
}
Pleeeeease help me! Thank u!!
|
|
|
|
|
change as under:
<input type="button" önclick="CallWebMethod('lblMsg')" title="CLICCAMI"/><br />
<br />
var lblMsg;
function CallWebMethod(elementID)<br />
{<br />
<br />
lblMsg=document.getElementById(elementID);<br />
<br />
TreStringheService.GetTreStringhe("0100012",Fill,ErrorHandler,TimeOutHandler);<br />
}<br />
<br />
<br />
<br />
function Fill()<br />
{<br />
lblMsg.innerHTML = "TEST";<br />
}<br />
-----
|
|
|
|
|
Hi everyone,
First time poster to this forum so be gentle. I'm admittedly not the best coder and I'm having troubles getting multiple actions out of one submit button on my html form. I need the (single) button to do two things:
1. link to the FormMail.pl script on my server to mail the completed form to myself.
2. Activate PayPal by submitting their "hidden" form variables and redirect to their site so the user can pay.
I know that there's a Javascript solution to this. Can anyone please help me out? It would be greatly appreciated.
|
|
|
|
|
kidcanuck wrote: First time poster to this forum
And you posted in the correct forum. Believe it or not that actually indicates some level of intelligence around here.
This is not a big site for javascript. I think you would be better off at places like webmonkey.com, dynamicdrive.com or any of the other Javascript oriented sites[^].
|
|
|
|
|
If I am getting it right, why you need two actions? In my opinion, you can send the mail to your self in click event of the button, after sending mail you can do paypal stuff and redirect wherever you want.. is'nt that right?
-----
|
|
|
|
|
That might work, are you suggesting I have one form submit (the Paypal one I'd assume), and attach an action to the click event of the button that will send the other form to my FormMail script? Like I said I'm pretty new at this. How would you suggest I write the javascript function to attach to the click event?
|
|
|
|
|
no, I am talking about server side click event of the submit button. Now tell me what is paypal's requirement? Are they getting the value from the form or from the query string?
If they can get the value from the query string then from server side click event you can redirect to their URL and pass the required values in query string.
And if they are getting values from the form then you can achieve that as under:
1. Add a classic ASP page to your application.
2. Set action of the form to paypal's url
3. Now before submitting the form, open your page that send the email using window.open in javascript and pass all form values for your email in query string. In that page get the values from the query string and send email.
4. Aftr opening the new window submit the form using document.formname.submit in javascript
-- modified at 20:06 Tuesday 23rd October, 2007
-----
|
|
|
|
|
Hi,
I am moving some applications to a Sharepoint hosted homepage, but when I change them to use https (it is interpreted as a cross domain), the inner pages (SharePoint uses iframes) aren't correctly resized, it appears smaller than the original version (without https). For many reasons, we wouldn't like to change the main page to https.
Do you have any tip ?
I saw some solutions on the net but that doesn't work with firefox\mozilla.
Thanks for any help.
-- modified at 12:11 Tuesday 23rd October, 2007
|
|
|
|
|
Hi,
I am trying to repeat image in word (containing HTML) for some table cells. But the image is not displayed in MS Word. It displays in IE / other browsers. I am using background-image and repeat x for this.
I searched for the same and found that background images are not supported in MS Word. Is there any workaround for this.
Thanks !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
Is it possible to implement WCSF (Web Client Software Factory) concepts in MOSS 2007?
Thanks
PRT
|
|
|
|
|
I have already created help file using robohelp and set map ID for each topic. So different id's and .htm files are there. I want to open the help file to the corresponding topic for each aspx page, when I press F1 key. But I don't know how to connect the map id through my web page. I tried with 'onHelp' event in script. But it only opens the help file, not the corresponding topic. Is using 'onHelp' in , the right way? Or any other better way is there to trap the F1 key? Please explain what are the steps for the corresponding problem.please give information for the corresponding problem.
hashim
|
|
|
|
|
Why do you want F1 to be help in your web app ? IE brings up it's help with F1, I doubt you can do anything about that.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
While pressing F1 ,it should load corresponding files(.htm) that are already created...can we do that in web
|
|
|
|
|
hashim.os@quadra.in wrote: While pressing F1 ,it should load corresponding files(.htm) that are already created...can we do that in web
No. It brings IE's help window as Christian said.
|
|
|
|
|
I have already created html file.while pressing F1 can i access that html page ,but i used on press event to do,but it was not good.is any other method is there
|
|
|
|
|
Create a link called 'Help'. Stick it in the corner of all your pages. This is the way the web works and what people are used to...
|
|
|
|
|
Hi
am getting service unavailable error for my application pool and when i restart application pool it is running for some 2 or 3 days and then again am getting this error.
Can any one please tell me is this the problem with server settings or with the code in aspx pages(I found no infinite loops in the code while i run the application locally).
i already checked registries for permissions all registries have full permissions.
Here is the error log
Event Type: Error
Event Source: W3SVC
Event Category: None
Event ID: 1002
Date: 9/16/2007
Time: 6:32:50 AM
User: N/A
Computer: ALPHA1
Description:
Application pool 'DefaultAppPool' is being automatically disabled due to a series of failures in the process(es) serving that application pool.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Before shutdown, I always get a load of these:
Event Type: Warning
Event Source: W3SVC
Event Category: None
Event ID: 1013
Date: 9/16/2007
Time: 6:31:50 AM
User: N/A
Computer: ALPHA1
Description:
A process serving application pool 'DefaultAppPool' exceeded time limits during shut down. The process id was '3796'.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
any help appreciated.
Thanks
|
|
|
|
|
Please don't double-post.
Paul Marfleet
|
|
|
|
|
It is possible to use the [CTRL + W] on the code to close the window or browser? If possible can i have a sample code.
Thanks and Regards
|
|
|
|
|
Try to write a useful subject line. Almost every thread is about someone who needs help, so that doesn't do anything at all to distinguish your thread from other.
vanhawk wrote: It is possible to use the [CTRL + W] on the code to close the window or browser?
No, you can't feign keypresses from Javascript.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
yes it is possible. You have to use combination of onkeydown, onkeyup, and onkeypress functions to catch the keys and call window.close() to close the window. You will be calling these function in body tag. onkeydown you will be checking for ctrl key and initialize the flag for it, onkeyup reset the flag for ctrl, onkeypress check the keycode for W and if ctrl key flag is true and it is W then close the window.
This is my understanding, but you might have to play with it. I have done it but it was way past and I don't have the code with me right now.
-----
|
|
|
|
|
|
Sorry for my previous post in the lounge - I thought I was in the right forum, but the hand is faster than the eye...
However, let's get to my question: does anybody know a plugin to constantly display the viewstate size for the current page in IE? Something like a toolbar item or status bar pane would be great.
It could help a lot when testing web sites to find the unnecessarily leaking pages.
Luca The Price of Freedom is Eternal Vigilance.
En Það Besta Sem Guð Hefur Skapað, Er Nýr Dagur.
But the best thing God has created, is a New Day.
|
|
|
|