Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-01-2003, 09:36 AM
Bandit's Avatar
New kid on the block
 
Join Date: Aug 2002
Location: Puchong
Posts: 6
Rep Power: 0
Bandit is on a distinguished road
minta tolon..aspx...??

Hi all and Happy New Year,

nak mintak tolong sikit bole tak?

ni camne aku nak passkan value antara dua aspx pages haa??
form action to the second page, response.write ngan request.form tak masyukk pun?

tolong yek.. boss gua dah start tanye nie...


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-01-2003, 10:33 AM
kpyew's Avatar
Senior Webmaster
 
Join Date: Jul 2001
Location: KL, Malaysia
Posts: 277
Rep Power: 95
kpyew is on a distinguished road
Send a message via ICQ to kpyew
I dont have much experience with aspx too. But how do you do the 1st page?

Make sure there is NO runat=server attribute in the 1st page, and try again? Example:

PHP Code:
<form action="page2.aspx" method="post">
<
input type="text" name="txtInput">
<
input type="submit">
</
form
__________________
webmaster @ http://kongtechnology.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-01-2003, 08:59 AM
Bandit's Avatar
New kid on the block
 
Join Date: Aug 2002
Location: Puchong
Posts: 6
Rep Power: 0
Bandit is on a distinguished road
yes!! thank you very much...

after buang the runat=server baru boleh link to the 2nd page...

btw, I buat file tu generate dari vb.net nyer project so the runat=server tu automatically dah ade...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-06-2003, 01:30 PM
Senior Webmaster
 
Join Date: Oct 2001
Location: Melbourne, AU
Posts: 456
Rep Power: 97
sufyan is on a distinguished road
Hi,

Posting values using POST from one page to another is not possible with aspx (ASP.NET). The aspx engine will automatically change any form action.

You can fix this by doing what kpyew said, but if your removing runat=server to an aspx file, your just creating an ASP file with an .aspx file extention.

Another thing, in ASP.NET, 'response.write' is no longer used. It will still work, but in ASP.NET, this code has been replaced with a web control called 'literal', or the code: <asp:Literal runat="server"></asp:Literal>

Actually, most of the old techniques of ASP have been replaced with Web Controls in ASP.NET.

ASP and ASP.NET are two different technologies. ASP.NET doesn't work the same way ASP works (although you can rename an ASP file with and aspx extention and run it on a server with .NET installed - but the code itself isn't aspx).

A difference between ASP.NET and ASP is that an ASP.NET page is compiled by the ASP.NET engine before it is sent to the requester, whereas in ASP, this doesn't happen. Another difference is that in ASP.NET, you use web controls to make up the application.

In my opinion, ASP.NET was aimed at VB software programmers. Creating a web application with ASP.NET is similar to creating a software application with Visual Basic.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
minta tolong ruslizan Website Programming 1 04-07-2006 02:31 PM
Minta tolong acid_burn Website Programming 15 21-07-2005 01:54 PM
Tulun Aku.. Camner nak wat user login kat ASPX aaa thorax_101 Website Design 3 09-07-2005 10:10 PM
minta tolong alan_rast Website Programming 3 15-04-2005 01:21 AM
ASPX & MySQL bazet Website Programming 5 22-10-2004 02:03 AM


All times are GMT +8. The time now is 03:14 AM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61