Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 December 26th, 2006, 08:57 AM
Authorized User
 
Join Date: Jan 2006
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default dynamically genertaing textbox ?

can you create a server side textbox(asp.net) using javascript code.
how did yahoo create that textbox during the onclikc of a button (i.e while clicking add cc or add bcc).

 
Old December 26th, 2006, 10:23 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

In the most literal sense, Javascript cannot create a server side control because at the page has already been rendered and the viewstate has been set up. You could, however, have a javascript raise a server side method that could create the text box for you and re-render the page.

I do not use yahoo but, most likely, they may be using AJAX to unhide a DIV section of the form that allows you to enter CC and BCC names for an email. So that is also an option for you.

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically authentication Harjinder Visual Studio 2005 0 July 31st, 2008 05:29 AM
pointing cursor from one textbox to other textbox lakshmi_annayappa ASP.NET 1.0 and 1.1 Basics 2 August 2nd, 2007 03:41 PM
DataGrid Dynamically imjigu General .NET 2 December 18th, 2004 10:23 PM
Masked TextBox & formatting TextBox melvik C# 1 September 22nd, 2003 11:01 AM
Dynamically query MRvLuijpen Access 8 July 12th, 2003 09:43 AM





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