Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 26th, 2003, 12:30 PM
Registered User
 
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Notpad editor

Hi
I have two question
In the book Beginnig asp.net with visual basic Author wrote for writting code from the book to use notpad editor. Is there any better tools then that
Second question
Could I carry data in the asp.net from one file and display in the second file using method post or query string , submit button, what was normal ASP.30. If anybody knows please give me example. I couldn't find any example about that
thanks
dragan

 
Old July 26th, 2003, 04:06 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to NotNowJohn
Default

Dragan,
ASP.NET pages are powerful when the page is posted to itself. Then you can "refresh" page by click on the submit button par example, and execute a code piece related to this button, and all other values from page are available on the page without extra coding.
However, it is possible to post to the ther page in ASP.NET - here is very poor sample code:
Code:
first.aspx
<%@Page language="c#"  ClassName="FirstPage" %>
<script  runat="server" >
public string Promenljiva
   {
      get
      {
         return Something.Text;
      }
   }


  void Page_Load()
  {
    if (IsPostBack)
    {    
        Server.Transfer("second.aspx");
    }
  }
</script>
<asp:TextBox id=Something" runat=server...
<asp:Button id="but"...>

second.aspx

<%@ Reference Page="first.aspx" %>
 FirstPage fp;
void Page_Load()
  {

        fp = (FirstPage)Context.Handler;
        Response.Write(fp.Promenljiva);
  }
</script>
HTH.
Regards,
Milos R.

...but the Soon is eclipsed by the Moon
 
Old July 28th, 2003, 03:12 PM
Registered User
 
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Milos
Could you change this code in VB.Net, please
regards
dragan

 
Old July 28th, 2003, 05:57 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to NotNowJohn
Default

Code:
first.aspx
<%@Page language="vb"  ClassName="FirstPage" %>
<script  runat="server" >

Public ReadOnly Property Promenljiva() As String
    Get
        Return Something.Text
        End Get
End Property

Private Sub Page_Load()
    If IsPostBack Then
            Server.Transfer("second.aspx")
        End If
End Sub

</script>
<asp:TextBox id=Something" runat=server...
<asp:Button id="but"...>

second.aspx
<%@ Reference Page="first.aspx" %>
<script  runat="server" >
Public fp As FirstPage
Sub Page_Load()
    fp =  CType(Context.Handler, FirstPage)
    Response.Write(fp.Promenljiva)
End Sub

</script>
...but the Soon is eclipsed by the Moon
 
Old July 28th, 2003, 10:56 PM
Registered User
 
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks
I bought book Beginng Asp.net with Visual Basic there is not mantioned Context.handler. Which book is good like Professional ASP 3.0 but in ASP.Net
regards
Dragan

 
Old July 29th, 2003, 05:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to NotNowJohn
Default

Dragan,

I have used ASP.NET professional from Wrox too, and it's OK. Most of the code is in VB.NET, but some code pieces are written in C#. For the Context and Context.Handler, however, I recommend soem articles and code samples on net. Generally, you have not to use ASP.NET pages in the way to posting form from one page to the other. If you need some communication between the pages, think about the Web services.
HTH.
Milos R.

...but the Soon is eclipsed by the Moon
 
Old July 29th, 2003, 12:43 PM
Registered User
 
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hvala ti Milos
da li mi mozes da posaljes svoj email adresu ovo je moja [email protected] da budemo u kontaktu
dragan







Similar Threads
Thread Thread Starter Forum Replies Last Post
editor per page vantoko BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 12 March 17th, 2009 04:59 PM
editor abaso.jadhav01 ASP.NET 2.0 Basics 0 November 8th, 2006 11:34 AM
What's going on with editor? dbabas VB.NET 2002/2003 Basics 1 March 16th, 2005 10:29 AM
Which editor and JDK? stratusc BOOK: Beginning Java 2 1 July 15th, 2004 05:51 AM
Creating Editor narenkpattanaik General .NET 0 June 21st, 2004 11:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.