|
I received a suggestion from another forum
to look at InternetSetCookie() et al..
looks good so far. fyi.
sas
|
|
|
|
|
Hello
Does anybody know an efficient solution for logging in ASP-WebApplications? - Means i want to log the method-call -> method-name and the time in a file.
Thanks in advance for your tipps.
Regards
pat
|
|
|
|
|
Hello,
I have written a Web-Service and an ASP.NET Client and i wanted to use the SoapLogger from . I do all the tasks quoted in this paper. (for instance copy the quoted code from this paper in my class-file.).
But when i then execute my ASP.Net Client and call a Web-Service Method, where i add the SoapLogger Attrribute in the WebService-Directive the following error occurs:
Server Error in '/ReservationClient' Application.
--------------------------------------------------------------------------------
Client found response content type of '', but expected 'text/xml'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Client found response content type of '', but expected 'text/xml'.
Source Error:
Line 515: [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://unet.univie.ac.at/~a0106514/webservices/PersonLogin", RequestNamespace="http://unet.univie.ac.at/~a0106514/webservices/", ResponseNamespace="http://unet.univie.ac.at/~a0106514/webservices/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
Line 516: public string PersonLogin(string sEmailAddress, string sPassword) {
Line 517: object[] results = this.Invoke("PersonLogin", new object[] {
Line 518: sEmailAddress,
Line 519: sPassword});
Source File: C:\Inetpub\wwwroot\ReservationClient\Web References\WebService\Reference.cs Line: 517
Stack Trace:
[InvalidOperationException: Client found response content type of '', but expected 'text/xml'.
]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +1488
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +218
ReservationClient.WebService.Reservation.PersonLogin(String sEmailAddress, String sPassword) in C:\Inetpub\wwwroot\ReservationClient\Web References\WebService\Reference.cs:517
ReservationClient.Login.ImageButton1_Click(Object sender, ImageClickEventArgs e) in C:\Inetpub\wwwroot\ReservationClient\Login.aspx.cs:90
System.Web.UI.WebControls.ImageButton.onclick(ImageClickEventArgs e) +109
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +69
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1258
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
Can please anybody help me and is able to say me what went wrong??
Regards
Patrick
|
|
|
|
|
In the application, I am using two windows (parent and child). On session expiry, the child window which is the current one is redirecting the user to the login page by using the following code.
if (session("UserName") = "") then
Response.Redirect("expire.asp")
end if
At this time, I want to close the parent window. How can I do this. Please help !!
|
|
|
|
|
You can't from the server side
|
|
|
|
|
Mark is right - you'll have to have some client side javascript to take care of that parent window. A simple parent.close() should do it. (Taking that from memory - probably won't work Make sure to check if the parent window is there, otherwise you'll get an error from the login page when first going to it.
|
|
|
|
|
i'm asp developer , i recently turn into asp.net,
i face many prblems such as
on asp i can write
<%sub example(param)%>
<h1> <%=param%> </h1>
<%end sub%>
then i can use it as follows
<body>
<%example("ashraf")%>
</body>
so that it will apply the sub, can i do something like that with asp.net??
i'm using vb.net
thanx all
|
|
|
|
|
Hi,
I'm writing a credit card application and one of the things that I need to determine is if the credit card is a corporate card or a purchase card. If it is, I need to display the user another screen to capture additional information. I have a database that contains card ranges that are cards that fall into this category.
Since I've never written a Web Service, I'm not exactly sure what they are for. But I'm thinking that this is a perfect Web Service. I can load the card ranges into a table in memory and then issue a request to the Web Service to determine if this card is a corporate card. This would save a trip out to the database for every card authorization.
Is this what you use a Web Service for?
Thanks,
Glenn
|
|
|
|
|
|
I wish to test out my website using IIS.
Problem is, being that the website is normally hosted online, I use the following virtural include(s) quite a bit.
Obviously this is generating an error when I try and run the website on my computer using IIS.
Is there a simple way around this with out having to go through the whole website changing all the includes from virtual to file...
I eagerly await any reply’s!!
---
Peter M
|
|
|
|
|
Just to update this issue....
The error received is:
________________________________________
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
Technical Information (for support personnel)
• Error Type:
Active Server Pages, ASP 0126 (0x80004005)
The include file '/Includes/Admin/MetaTags.asp' was not found.
/cullyonline/Default.asp, line 7
• Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
• Page:
GET /cullyonline/Default.asp
• Time:
24 August 2004, 17:28:00
• More information:
Microsoft Support
________________________________________
The line it’s referring to is
Line 7:
I’m using IIS Version 5.1
This site does work online, and has been so for the last couple of years. Its just now I wanted to see it working using IIS. Its basically the first include file in the html, and if I remove this line, it will have the same fault on the next virtual include
---
Peter M
|
|
|
|
|
iam new in programming field.i want to knw whether it is possible to create
Two CSS in a single ASP page.
if so ,plz i want to know how it works,plzzzzzzzzzzzzzzz itz very urgent
UMA
|
|
|
|
|
Need to be a bit more specific.
If it's for a skin like app then try this tutorial
-> Skin'n your site with ASP/CSS [ForgetFoo.com]
If you want two style sheets in one page then simply do this with a single CSS tag:
<br />
<style type="text/css" media="screen"><br />
@import "sheet1.css";<br />
@import "sheet2.css";<br />
</style> <br />
Wolfie-o
« WolfWeb.zero13 | Wolf.Studio »
|
|
|
|
|
|
|
Yeah, I was amazed at all the functionality they have built into the control. Have never seen a web html editor with features close to this one.
Rocky <><
www.HintsAndTips.com
www.MyQuickPoll.com - 2004 Election poll is #33
www.GotTheAnswerToSpam.com
"We plan for the future, we learn from the past, we live life in the present!"
|
|
|
|
|
If you want cross-browser support you have to go the Java Applet route. Ugh. Problem being each browser does it's own editable HTML area system.
Someone would do well to wrap-up an ASP.NET control which spits out the right code for IE, Moz, Safari. Opera etc. and lets the developer stick with one control.
regards,
Paul Watson
Bluegrass
South Africa
Christopher Duncan wrote:
"I always knew that somewhere deep inside that likable, Save the Whales kinda guy there lurked the heart of a troublemaker..."
Crikey! ain't life grand?
|
|
|
|
|
|
|
All of these are IE only except for Free Text Box which is just beginning to make theirs compatible but still has a lot of bugs and no where near the features of the link I provided.
Thanks for the reply!
Rocky <><
www.HintsAndTips.com
www.MyQuickPoll.com - 2004 Election poll is #33
www.GotTheAnswerToSpam.com
"We plan for the future, we learn from the past, we live life in the present!"
|
|
|
|
|
I'm getting there slowly...
I'm now at the point where I can scan a credit card mag data and parse the data through a JavaScript and place the appropriate information on the screen. The problem I now have is how do I pass the original data back to the server? I thought I could store this in a hidden field and set the hidden field to the original credit card data before I parsed it.
The problem I have is JavaScript will not let you set the value of a hidden field. It doesn't give me an error, just causes my entire script to stop mid stream. I'm using IE Version 6 SP 1.
I thought about Session Variables but that is server side and the script is written client side.
I thought about sending the data via the URL as a variable but it is sensitive information and I do not want to do that. Mastercard and Visa would serve my head on a platter for that one. I'm not sure a cookie would do the trick, I'm not that experienced with cookies. Something tells me that cookies are not very secure.
Anyone have a suggestion on what to do?
Glenn
|
|
|
|
|
you're sending the actual data from the mag strip of credit cards across the internet???
u are using encryption yes? at least blowfish or triple-des type stuff yes?
then u need to post the data as a binary block using the same form method that u would to post an image ... then u can process it on the server
"there is no spoon" biz stuff about me
|
|
|
|
|
In a JavaScript, how would I emulate a key being pressed. IE: If the user presses the ENTER key I would like to change it to a TAB. I know how to trap the ENTER key being pressed, I just don't know how to simulate that the TAB key was pressed.
Thank you,
Glenn
|
|
|
|
|
I answered my own question. By adding the following code in the section, I ignore all ENTER keys:
<br />
<script language="javascript"><br />
<!--<br />
function kH(e)<br />
{<br />
var pK = document.all ? window.event.keyCode:e.which;<br />
return pK != 13;<br />
}<br />
<br />
document.onkeypress = kH;<br />
if (document.layers) document.captureEvents(Event.KEYPRESS);<br />
</script><br />
<br />
Glenn
|
|
|
|
|
After reading the JavaScript manual I still a couple questions.
1. How do you Disable a control within a JavaScript? This works for textboxes and checkboxes, but not for labels: document.Form1.efCardNo.disabled = true; Can you disable labels?
2. Is it possible to call a JavaScript function from a C# program? If so how. I would like to create an Alert function within C#.
Thank you,
Glenn
|
|
|
|