Professional IronPython


buIldINg A bASIC ASP.NET SITE uSINg IRoNPyTHoN



Download 20,35 Mb.
Pdf ko'rish
bet245/453
Sana01.07.2022
Hajmi20,35 Mb.
#723045
1   ...   241   242   243   244   245   246   247   248   ...   453
buIldINg A bASIC ASP.NET SITE uSINg IRoNPyTHoN
You’ve seen someone else’s examples for working with IronPython on a Web site. Now it’s time to 
create an IronPython Web site of your own. The example in this section isn’t meant to do anything 
too impressive. This section focuses on a process you can use to build ASP.NET applications of your 
own instead. The following sections describe every step you need to take to create any ASP.NET 
application using IronPython.
Creating the Project
Neither Visual Studio nor DLR provides a project template for you to use. In addition, you have 
more work to do when creating an ASP.NET application, so creating a project isn’t quite as easy as 
it should be. The DLR instructions suggest copying the 
hello-webforms
folder to another location 
and using it as a starting point, which will work but will prove cumbersome. The following steps 
create a different kind of setup, one that will prove better in the long run, but require more work on 
your part now.
1.
Create a folder for your application. The example uses 
Calculator
, but you can use any 
name you want.
2.
Copy the 
hello-webforms\bin
folder to your project folder.
3.
Create a 
.BAT
file (the example uses 
Start.BAT
) with the following content:
@Echo Off
REM Change this directory to the location of WebDev.Webserver
CD \WINDOWS\Microsoft.NET\Framework\v2.0.50727
REM Start the Web server.
Start /B WebDev.WebServer /port:%1 /path:%2 
REM Open the Web browser to the right Web site.
Start “C:\Program Files\Mozilla Firefox\Firefox” http://localhost:%1/
@Echo On
This batch file changes directories to the correct location for the WebDev.Webserver utility. 
It then starts the WebDev.Webserver utility with the port and path information you provide 
as part of the project arguments. Finally, it starts your browser so you can see the results.
548592c11.indd 229
2/24/10 12:48:38 PM
www.finebook.ir



Download 20,35 Mb.

Do'stlaringiz bilan baham:
1   ...   241   242   243   244   245   246   247   248   ...   453




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish