Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 January 23rd, 2006, 06:01 AM
Registered User
 
Join Date: Jun 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default asp.net masterpage



Hi

I need help in ASP.NET 2.0

I have placed master page in .aspx page .

If I try to put form tag inside contentplaceholder says server tags are defined at multiple places.

Will give u simple example where I need form name in javascript.



I have two serverside listboxes list1 & list2 and one button.

Displaying data in list1

I select the items in list1 and click on button then the selected items need to be added in list2



Written javascript function to add those items but these are not getting added at server side



For this I have taken one tempstring where it can hold selected items in javascript.



How to get those value in aspx.cs file



Even I tried with hidden variable but this variable is not accessible in code behind



Early response is appreciable

Thanks


 
Old January 23rd, 2006, 07:33 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You can't add a form tag to a <content> tag. Your master page defines the form, and you only need one form in the entire page.

Simply add whatever controls and other markup to your <content> controls and things should work.

I am not sure I understand the rest of your questions. Can you elaborate a hit?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Masterpage teddyk ASP.NET 2.0 Basics 1 September 15th, 2008 08:37 AM
MasterPage grstad ASP.NET 2.0 Basics 0 June 7th, 2008 04:30 AM
My first MasterPage grstad ASP.NET 2.0 Basics 4 June 7th, 2006 11:54 AM





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