|
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
|
|
|
|
|
1. Not sure, good question.
2. You need to use the RegisterScriptBlock method of Page . It will only run on the client-side of course and not in the context of C#.
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?
|
|
|
|
|
Hi,
I am developing a asp application for my client which reads their selected html page and values with in specified span tag is extracted and then i pass it to my rich text editor where one can format the span text after formatting i will pass the span original value, formatted text and file name(html page name eg-index.html) at action page i want to use file system object where i will first replace the values using three parameters it works fine but problem is if same span text is more than one time it will replace all the text when using replace function. can any one give their own idea.
Thank You
|
|
|
|
|
Hi!
Is it possible to run any third party application in a frame (Internet Explorer Server is IIS). The application is a VB-application.
Thanks for help.
Joe
|
|
|
|
|
Probably only through an ActiveX container.
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?
|
|
|
|
|
Hi,
I am trying to write a script that will take an input field value from a ASP.NET form and determine if its magnetic data from a magstrip on a credit card. The application is written in C# and uses Server Validation controls to validate the data. The controls need to run server side because when the SUBMIT button is pushed the server needs to validate the data.
I do not want to send the data when the Credit Card Number field looses focus to the server, it is disruptive to the user but I need to determine if the card was swipped and if so pull off the Card Number, Card Holder's Name and the Expiration Date and populate the fields.
Since I'm new to JavaScript, I figured I would write something simple and hook it to my code for OnTextChange. The problem is I'm receiving the following error: Compiler Error Message: CS0117: 'ASP.WebForm1_aspx' does not contain a definition for 'isScanned'
I put my JavaScript in the head section as follows:
<HEAD><br />
<title>Merchant Charge Plus / 2004 Web - Authorization Screen</title><br />
<meta content="False" name="vs_snapToGrid"><br />
<meta content="True" name="vs_showGrid"><br />
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"><br />
<meta content="C#" name="CODE_LANGUAGE"><br />
<meta content="JavaScript" name="vs_defaultClientScript"><br />
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"><br />
<br />
<script language="javascript"><br />
function isScanned( )<br />
{<br />
var index = 0;<br />
CardNo = document.Form1.efCardNo.value;<br />
<br />
if (CardNo.subString(0, 2) == "%b" || CardNo.subString(0, 2) == "%B" <br />
|| CardNo.subString(0, 2) == "%a" || CardNo.subString(0, 2) == "%A")<br />
{<br />
window.alert("Card was scanned");<br />
}<br />
<br />
return;<br />
}<br />
</script><br />
</HEAD>
and the call for the routine is:
<br />
asp:TextBox id="efCardNo" style="Z-INDEX: 112; LEFT: 152px; POSITION: absolute; TOP: 67px" tabIndex="3" OnTextChanged="isScanned" runat="server" ToolTip="Enter the Card Holder's name as it appears on the card" Width="193"<br />
I don't see what I did wrong, I see the function. Is it because of the runat="server" and it thinks the function is on the server? If so, how do I have a client side routine and a server side?
Thanks for your help,
Glenn
|
|
|
|