|
Nevermind, I figured it out. (the "Expires" header.) Thanks!
"Fish and guests stink in three days." - Benjamin Franlkin
|
|
|
|
|
Hi there,
I have a way maybe help you :
you can add meta tag to html code of the page that you want it refresh
ex:
bye
|
|
|
|
|
Hi.
I have posted this question before, and I could not get an answer. I hope there is someone that can help me now.
I have an ASP page. The page consists of a province selection. If a selection is made, all regions for this province is loaded into a region combo box. I do this by making a trip to the server everytime and post the results back to the same page. The name of the page is AddProperty.asp. In the form tag, I use the following action="Addproperty.asp". This works cool. I also have an onSubmit event in the form tag for the user clicks on the submit button. It goes to a Javascript function which does the form validation. But now I need to go to another page to add the data, but I don't know how because the action property contains the name of the current page. How do I solve this problem? I would like to submit the page after validation to an AddPropertyProcess.asp page.
BRENDAN
|
|
|
|
|
My Code is
set rs=server.CreateObject("ADODB.Recordset")
set fso=server.createobject("Scripting.FileSystemObject")
if fso.FolderExists("F:\stores\") then
if fso.FileExists("F:\stores\RATEREV.TXT") then
set fout=fso.GetFile("F:\stores\RATEREV.TXT")
set fout=fso.OpenTextFile("F:\stores\RATEREV.TXT")
Response.Write "hello"
m=0
n=0
do while not fout.AtEndOfStream
n=n+1
m=m+1
i=0
LINE=fout.ReadLine
REC=split(LINE,"|",-1,1)
for each TMP in REC
COL(i)=TMP
i=i+1
next
inflds="insert into raterev ( mat_code_rev,rate_rev"
invals=" values('"&COL(0)&"'," &COL(1)
inflds=inflds & ")"
invals=invals & ")"
strSQL = inflds & invals
Response.Write "Qry : " & strsql
con.Execute strsql
LINE=""
if m=1000 then
Response.Write "No Of Records Inserted Is" & n & " "
m=0
end if
loop
Response.Write ("No Of Records Inserted Is") & n
Response.Flush
fout.close
set fout=nothing
Set fso=nothing
else
Response.Write "FILE NOT EXIST .... PLEASE CHECK.."
end if
else
Response.Write "FOLDER DOES NOT EXIST ... PLEASE CHECK...."
end if
Even after norton antivirus script blocking is switched off problem continous. But same code was working well previously. Now only this happening. Kindly help whether the problem is with IIS or Windows. Kindly help me.
|
|
|
|
|
Ok, this is quite a simple question.
I'm changing my website to use CSS. And i thought hey, how about allowing the CSS to control my tables as well.
So if we have a table, which the code looks like:
and we want to apply the CSS style to it.
Do i have to create a style for everything, hence
Table, tr and td. Because that is what i am doing, and it seams a little tedious.. hence it becomes
Is there a simplier way, so I don't have to apply the class to literally everything seperately
---
Peter M
|
|
|
|
|
Yes. When you specify that will work for your entire table.
But when you want to use a different style for some cells you will have to specify tag in your style sheet. Then every | would take that style.
like:
td {
color: #FF0000;
}
And yes this was a really simple question, CAUSE I WAS ABLE TO ANSWER IT.
Any tool is only as good as you can use it!!
(http://www.pascalnet.tk) |
|
|
|
|
|
Peter:
You can apply style to a table as a whole, or to the rows, or to the cells. If you use the html attributes, you can individually apply style how you want. If you are using css styles then rules such as these:
table{}
tr{}
td{}
apply styles that apply to the whole table, all rows, and all cells. If you want to have independent control you may use as shown in the next block of formatting:
[cut and paste in notepade and save with htm or html extension and open it in IE or Netscape..
-------------------
<STYLE TYPE="TEXT/CSS">
table{background-color:gold}
.firstrow{background-color:pink}
.lastcell{background-color:magenta}
</STYLE>
<BODY>
<table border="1" width="200">
<tr class="firstrow">
<td>Jay </td>
<td>Krish</td>
</tr>
<tr>
<td>Mysorian </td>
<td class="lastcell"> India</td>
</tr>
</table>
----------------------
|
|
|
|
|
I have a problem opening a window in javascript. I user availHeight and availWidth to open the window, but if the user has moved the taskbar the window may be positioned under it. IE doens't support availLeft or availTop or outerHeight.
Does anyone know how to to determine the taskbar position using javascript and ie?
thanks, kevin
|
|
|
|
|
Hi.
I'm thinking about doing a component that calls a webservice to get xml, applies a XSL to it and renders out HTML.
I have an example now that works. not too hard really.
Now I want to be able to let the user provide a xsl to use. This also works fine.
To make it truly reusable i also want to let the use enter the url of a webservice to call and the webservice method to use.
Now, how the h... do I accomplish this? I really have no idea...
|
|
|
|
|
found a solution here:
http://www.c-sharpcorner.com/Code/2004/Feb/GenericWebServiceProxy.asp
|
|
|
|
|
Hello Freinds,
I need to know about availablity of MS XML Parser. I'm developing a 3-tier web application using ASP.NET & C#. This web application is targetted to run on MS platforms. To achieve high reusability i've choosen to use XML strings as communication medium between presentation and business layer. I've written javascript code which parses and renders XML Data to screen. For this purpose i need MS XML Parser at every client machine.
Query 1: MS IE 5.0 and greater can render XML. Can i expect that every client machine running MS IE and greater will have MS XML parser installed irrespective of which MS OS the machine is running ??
Query 2: Is there any other optimal solution ??
Thanks in advance,
Regards,
Hatim Ali.
|
|
|
|
|
1) I think that is a valid assumption
2) Do the parsing of XML into HTML at the server, where you know what is installed. Use CSS to control the layout of the pages.
As a fun project for exploring what can be done with XML and JavaScript, what you have done is great. I'm even impressed with what you were able to do with Javascript.
However, if a member of my programming team presented this structure to me as a valid way of doing things for an actual application, I would send them back to the drawing board.
(The .aspx page is designed to be the presentation. The code-behind the ASP.NET page is for tying your presentation to your business logic. JavaScript is for working around the limitations of HTML and CSS. Web browsers are designed to handle HTML, and anything else will only work some of the time on some of the browsers).
my blog
|
|
|
|
|
Thanks Steve.
Lets say i want to avoid excess server calls by embedding client side scripts into .aspx pages. Obviously for this purpose i've to fetch data, redner it on screen (client side code), moniter the changes made by user(client side code) and then posting data back for making the changes persistant.
Do you know how to achieve this if i choose to adhere to your suggestion.
Regards,
Hatim Ali.
|
|
|
|
|
You should definitely take a look at caching in ASP.NET in the .NET Framework SDK. You could, for example, "embed" an ASP.NET UserControl (.ascx) in each ASP.NET Page (.aspx) that contains the javascript you want to render directly into the resultant HTML that the browser gets. You can cache this dynamically generate set of scripts on a per-client basis, for example, using a variety of means; or you could even cache the generated scripts on a parameter or custom basis so that any access of this page using a particular parameter value (for example, if that's how you customized the javascript) would return the cached information.
This can greatly improve performance in ASP.NET applications.
If you take this into account and use the Xml Web Control you don't have to worry about excess strain (only that which is required) on the server nor whether certain requirements are met by the client browser.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hello,
I have developed an application using VBScript, as ASP pages which firstly uploads some files from the form, and then gets the other input fields to make a process on them. But the problem is that after uploading the files needed, then I want to get the other fields from the form, such as text fields, values from select input field, and so on. But how is that done? I mean how can i get the values of the fields from the same page of the form? because it shows an error saying: object required. cause I still don't have values in the fields.
Regards
Sam
|
|
|
|
|
what component do you use for the upload process ?
you can't use request.Form after using BinaryRead which is used by the upload components..
ASPUpload for example provides a collection to let you reference other fields post to the server with the file.
|
|
|
|
|
Hi, I know that if a parent window launches a child window that opens a different domain than the parent, then the parent window will get a "permission denied" message when it tries to access properties of the child window.
Say my child window is childWindow1. How would I check the url of this window without getting that dreaded permission error? I thought about doing:
if ( typeof( childWindow1 ) == "undefined" )
{
}
but this didn't work, because I guess childWindow1 is still defined. I'm pretty sure using 'null' won't help either. But how do I check that it's a valid object to use before I start doing stuff like: "childWindow1.location.href"?
Please help!
|
|
|
|
|
Hi,
Put a try/catch block around the code, e.g.
href = "";
try
{
href = childWindow1.location.href;
}
catch(e)
{
alert(e.description);
}
In the catch I've simply put the error in an alert message box (This will say 'Permission Denied') but you can do whatever you need to do.
Hope this helps,
Andy
|
|
|
|
|
Thanks a lot, I got it to work!!
|
|
|
|
|
I have an ethernet connection with a shared connection. My gateway uses NAT for translating ip addresses. Hence i have a local ip address and my gateway having a global ip. Is there any way by which i can host web pages on my server and enable others to see them over the internet?
..._ _........o.
I ( V ) MY INDIA
\ /
v
|
|
|
|
|
I think you might be able to use "port-forwarding."
That is to say - create a rule on your router to direct any requests to port 80 on your external IP to your web server.
I think it depends on what kind of router you have, and it would make your NAT network less secure.
It might be better to go to a NoNAT configuration on the gateway, and have a Local NAT Zone and a DMZ for the webserver.
Sorry I can't be more specific on the port forwarding thing - but hopefully it might help you a little.
Best Wishes
Steven
let the stormy clouds chase everyone from the place
|
|
|
|
|
Hi,
I have both AOL and IE browsers in my system. We are developing one chat application .I have to detect the AOL browser. To detect the AOL I used "Request.Browser.AOL" .But it's always returns false even when I’m using AOL browser also. How can I detect the AOL?
I'm using xml Dom to display the messages. When I’m trying to run the chat using AOL messages are displaying frequently it's taking few minutes to refresh. But I’m not having problems with IE.
Thanks in advance
Satya
|
|
|
|
|
|
Perhaps check this out:
How do I prompt a "Save As" dialog for an accepted mime type?
http://www.aspfaq.com/show.asp?id=2161
J. Paul Schmidt, Freelance ASP Web Designer
www.Bullschmidt.com
ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
|
|
|
|
|
thanx for the help, now I know how to do it
|
|
|
|