ASP.NET Uygulama Hatası

Kodla Büyü

haksoy

Üye
Mesajlar
7
Aşağıda vereceğim asp.net kodlarını localhostta çalıştırıyorum. Herhangi bir hata vermiyor ancak script kodlarındaki alt program çalmıyor. Farklı pc lerde denedim ancak çalışmıyor ve hata vermiyor.Çalıştırabilen olursa dönebilir mi acaba?

Kodlar
-------------------------------------------------------------
<script language="VB" runat="server">
dim hesaplama as single
sub tutar(sender as object, e as eventargs)
if ucret1.checked and ram1.checked then
if hard1.checked then
label5.text="jhkjhgkjh"
end if
else if ucret1.checked and ram2.checked and hard1.checked then
textbox4.text="180"
else if ucret1.checked and ram3.checked and hard1.checked then
textbox4.text="230"
else if ucret1.checked and ram1.checked and hard2.checked then
textbox4.text="310"
else if ucret1.checked and ram2.checked and hard2.checked then
textbox4.text="320"
else if ucret1.checked and ram3.checked and hard2.checked then
textbox4.text="330"
else if ucret1.checked and ram1.checked and hard3.checked then
textbox4.text="340"
else if ucret1.checked and ram2.checked and hard3.checked then
textbox4.text="350"
else if ucret1.checked and ram3.checked and hard3.checked then
textbox4.text="360"
else if ucret2.checked and ram1.checked and hard1.checked then
textbox4.text="290"
else if ucret2.checked and ram2.checked and hard1.checked then
textbox4.text="300"
else if ucret2.checked and ram3.checked and hard1.checked then
textbox4.text="340"
else if ucret2.checked and ram1.checked and hard2.checked then
textbox4.text="380"
else if ucret2.checked and ram2.checked and hard2.checked then
textbox4.text="390"
else if ucret2.checked and ram3.checked and hard2.checked then
textbox4.text="400"
else if ucret2.checked and ram1.checked and hard3.checked then
textbox4.text="410"
else if ucret2.checked and ram2.checked and hard3.checked then
textbox4.text="420"
else if ucret2.checked and ram3.checked and hard3.checked then
textbox4.text="430"
else if ucret3.checked and ram1.checked and hard1.checked then
textbox4.text="450"
else if ucret3.checked and ram2.checked and hard1.checked then
textbox4.text="460"
else if ucret3.checked and ram3.checked and hard1.checked then
textbox4.text="470"
else if ucret3.checked and ram1.checked and hard2.checked then
textbox4.text="480"
else if ucret3.checked and ram2.checked and hard2.checked then
textbox4.text="490"
else if ucret3.checked and ram3.checked and hard2.checked then
textbox4.text="500"
else if ucret3.checked and ram1.checked and hard3.checked then
textbox4.text="510"
else if ucret3.checked and ram2.checked and hard3.checked then
textbox4.text="520"
else if ucret3.checked and ram3.checked and hard3.checked then
textbox4.text="530"
else if textbox1.text<>""then
label6.text="siparişiniz onaylandı en kısa zamanda kargoya verilecek" & textbox1.text
end if
end sub
sub onaylama(sender as object, e as eventargs)
dim a as integer=10
if a=10 then
label6.text="siparişiniz onaylandı en kısa zamanda kargoya verilecek" & textbox1.text
end if
end sub
</script>
<html><body>
<form runat="server">
adınız
<asp:textbox id="textbox1" runat="server"/><br>
soyadınız
<asp:textbox id="textbox2" runat="server"/><br>
adresiniz
<asp:textbox id="textbox3" runat="server"/><br>
<asp:label id ="label1" text="işlemcinizi seçiniz." runat="server"/><br>
<asp:radiobutton id="ucret1" text="i3"
groupname="1" runat="server"/>
<asp:radiobutton id="ucret2" text="i5"
groupname="1" runat="server"/>
<asp:radiobutton id="ucret3" text="i7"
groupname="1" runat="server"/><br>
<asp:label id="label2" text="ram bellek seçiniz." runat="server"/><br>
<asp:radiobutton id="ram1" text="1gb"
groupname="bellek" runat="server"/>
<asp:radiobutton id="ram2" text="2gb"
groupname="bellek" runat="server"/>
<asp:radiobutton id="ram3" text="4gb"
groupname="bellek" runat="server"/><br>
<asp:label id="label3" text="hard disk seçiniz." runat="server"/><br>
<asp:radiobutton id="hard1" text="500gb"
groupname="hard" runat="server"/>
<asp:radiobutton id="hard2" text="750gb"
groupname="hard" runat="server"/>
<asp:radiobutton id="hard3" text="1tb"
groupname="hard" runat="server"/><br>
<asp:button id="button1" text="hesaplama" onlick="tutar" runat="server"/>
<asp:label id="label4" runat="server"/>
<asp:label id="label5" text="alışveriş tutarınız" runat="server"/>
<asp:textbox id="textbox4" runat="server"/><br>
<asp:button id="button2" text="Siparişi Onayla" onlick="onaylama" runat="server"/><br>
<asp:label id="label6" runat="server"/>
</form>
</html></body>
-------------------------------------------------------------
 
Geri
Üst