Laman Utama Tanya Wiki English Artikel Komuniti E-Mel Ringtones Search

Bantuan | Carian | Ahli | Kalendar

Google

Selamat Datang ( Log In | Daftar )

 
Reply to this topicStart new topic
Asp.net Tak Paparkan Dropdownlist
rothion
post Jun 25 2008, 04:16 PM
Kiriman #1


Ahli
**

Grup: Members
Kiriman: 81
Penyertaan: 13-January 06
Dari: Kuantan
Ahli ke- 13,671



assalamualaikum.
mintak tolong kengkawan sekelian. aku ada masalah ni pasal ASP.NET. aku ada copy satu coding kat w3schools.com. coding di adalah seperti di bawah. masalahnya bila aku save sebagai aspx dan run from localhost, aku tak dapat paparan dropdownlist tu. tapi bila aku save kat pc member aku, hasilnya jadi pulak. for your info.. kedua2 pc aku dah install .NET framework versi 2.0/

berikut adalah coding yang aku copy:
CODE
<script  runat="server">
   Sub submit(sender As Object, e As EventArgs)
   mess.Text="You selected " & drop1.SelectedItem.Text
End Sub
</script>

<html>
<body>
<form runat="server">
   <asp:DropDownList id="drop1" runat="server">
   <asp:ListItem>Item 1</asp:ListItem>
   <asp:ListItem>Item 2</asp:ListItem>
   <asp:ListItem>Item 3</asp:ListItem>
   <asp:ListItem>Item 4</asp:ListItem>
   <asp:ListItem>Item 5</asp:ListItem>
   <asp:ListItem>Item 6</asp:ListItem>
</asp:DropDownList>

<asp:Button Text="Submit" OnClick="submit" runat="server"/>

<p><asp:label id="mess" runat="server"/></p>
</form>
</body>
</html>


hasil yang aku dapat kat pc aku adalah seperti screenshot berikut:


paparan sebenar adalah seperti berikut:


ada sesapa yang boleh bantu?
nak kena ubah setting ke?
thanks.
Go to the top of the page
 
+Quote Post
ron
post Jun 25 2008, 09:17 PM
Kiriman #2


Ahli
***

Grup: Members
Kiriman: 442
Penyertaan: 25-January 06
Dari: KL
Ahli ke- 14,035



Sebelum tu run guna web server default yg dtg dgn Visual Studio 2005 tu dulu, maksud nya run terus dr dlm VS 2005 tu. Kalau cara tu berjaya, maksudnya ada something wrong dgn ko punya IIS Server, kemungkinan .NET Framework tak betul install sbb integration dia dgn IIS tak masuk. Atau lagi satu kemungkinan dlm Virtual Directory IIS tu silap pilih .NET Framework version. Cuba check


--------------------
Apple iMac Intel
Ms Xbox 360 (1st batch)
Sony Playstation 2
Sony PSP Slim & Lite v3.90 M33-2
Sony Playstation 3 (40GB) Satin Silver
Sony Bravia V Series
Go to the top of the page
 
+Quote Post
rothion
post Jul 2 2008, 02:00 PM
Kiriman #3


Ahli
**

Grup: Members
Kiriman: 81
Penyertaan: 13-January 06
Dari: Kuantan
Ahli ke- 13,671



a'ah.. kalau aku guna Visual Studio 2005 mmg takde masalah.
so IIS aku ni ada masalah le tu.
atau pon sebab pc aku tu diinstall dengan .NET Framework 2.0
nak kena upgrade ke .NET 3.5 agaknya...
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 

RSS Lo-Fi Version Time is now: 7th October 2008 - 08:38 PM

© 1998-2008 Khazanah Maya Computer Systems