Archive

Archive for the ‘ASP, .NET, HTML Code’ Category

Python: Expenditure App

November 24, 2018 1 comment



Expenditure Application

In this post, we will go through the case study of our application.

‘ The Case’

We want to build an application to store and retrieve some data regard our expenditure, we will go as simple as two keys (date and amount), and we will save the data in a json file. So to view the data we need some functions to do some operations on the data such as Add, Delete, retrieve and change.

I will use the @pycharm to write the code and test it, but any other code editors can be used. Also, I assume we have Python and json installed in your PC.




Follow me on Twitter..

HTML,ASP, .NET Codes ….. P1

September 29, 2008 Leave a comment

 
INDEX 
  • HTML page auto refresh
  • Pass info from page to another in ASP
 
 
 
_________________________________________________________________________
————————————————————————————-
 
HTML page auto refresh
 
This code will refresh the page after X second
 
< meta http-equiv="refresh" content="5; URL=http://www.a site to go for/ " >
 
content="5" the time before refresh
URL is the target web page
_________________________________________________________________________________
 
Pass info from page to another in ASP
 
in the main (Sender) page:
Example of if you click a LINK, it will jump to page2.asp with some info(name=ali-asp)

—- the code:
under the asp tag or in normal html:
open a (<) tag

write: a href="page2.asp?namr=ali-asp"
then close the tag (>)

then open the same tag (<) write : a then close the tag (>)
All red to be in one line

in the other page: page2.asp

dim myvar
myvar=request.querystring("name")


or

response.write(request.querystring("name"))

Done..
_________________________________________________________________________________________
 

 

Categories: ASP, .NET, HTML Code