473,495 Members | 2,058 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

C# Web-App: Panel

90 New Member
I have used the panel in my web page. It works fine also but the problem is that when the controls are displayed in the panel The text "panel" is also being displayed.That should not be displayed how to do that.I get the number of dynamic controls in a dropdown list box
The code which I have used is

TextBox txtbox = new TextBox();
Panel1.Controls.Add(txtbox);
Dec 12 '07 #1
6 1574
jhardman
3,406 Recognized Expert Specialist
You have posted your question in the "classic" ASP forum. Please tell me what language you are using and I will move your thread to the correct forum.

Jared
Dec 14 '07 #2
raghulvarma
90 New Member
I am using C# in my asp page.I got to know how to remove the panel from being displayed,it is just by clicking over it and by clearing the text we could remove the text "panel" which is being displayed
Dec 14 '07 #3
jhardman
3,406 Recognized Expert Specialist
I am using C# in my asp page.I got to know how to remove the panel from being displayed,it is just by clicking over it and by clearing the text we could remove the text "panel" which is being displayed
You can not write ASP with C#, that was added in ASP.NET. I'll move you over to the .NET forum. Happy coding.

Jared
Dec 17 '07 #4
Frinavale
9,735 Recognized Expert Moderator Expert
I am using C# in my asp page.I got to know how to remove the panel from being displayed,it is just by clicking over it and by clearing the text we could remove the text "panel" which is being displayed
When you add the panel to the ASP.NET page text is automatically added to it.
I don't know why they do that but you're going to have to delete the word "panel" from your panel.
eg:
Change
Expand|Select|Wrap|Line Numbers
  1. <asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px">
  2. panel
  3. </asp:Panel> 
To be
Expand|Select|Wrap|Line Numbers
  1. <asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px">
  2. </asp:Panel> 
It's that simple.
Dec 17 '07 #5
raghulvarma
90 New Member
Now I have a big problem,
As I have created only one object for the textbox and that particular textbox is being repeated as many times I want But if I want to add the values in the database from each and every textbox which have been dynamically created how should I do that?
Let me explain with my real time scenario , For example if customer-1 has 2 telephone lines and customer-3 has 3 telephone lines then the textbox ate displayed as required but how to add these values to DB from dynamically created textboxes?
thanx in advance
Dec 18 '07 #6
Frinavale
9,735 Recognized Expert Moderator Expert
Now I have a big problem,
As I have created only one object for the textbox and that particular textbox is being repeated as many times I want But if I want to add the values in the database from each and every textbox which have been dynamically created how should I do that?
Let me explain with my real time scenario , For example if customer-1 has 2 telephone lines and customer-3 has 3 telephone lines then the textbox ate displayed as required but how to add these values to DB from dynamically created textboxes?
thanx in advance
When you create the TextBox, you should populate it's value from the database

Get the phone lines from the database.
Loop through the phone lines, and for each phone line create a text box.
As you're looping through the phone lines,set the TextBox's Text value to the phone line. Then add the TextBox to the web page (I'm assuming that you are adding it to the Panel control).

-Frinny
Dec 18 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2511
by: Phillip J. Eby | last post by:
PEP: 333 Title: Python Web Server Gateway Interface v1.0 Version: $Revision: 1.1 $ Last-Modified: $Date: 2004/08/27 17:30:09 $ Author: Phillip J. Eby <pje at telecommunity.com> Discussions-To:...
2
528
by: PatrickSA | last post by:
Hi, Am new to web services, so apologies for the basic nature of the question - and apologies in advance if this is the wrong newsgroup. We're building a new web service and I'm looking around...
8
3119
by: John Baker | last post by:
Hi: I am URGENTLY in need of some book or web site OR tool that will help me integrate a relatively simple access application into a web page or pages. This is a time recording system (by...
0
2079
by: Erick Lopez | last post by:
When I send my web page to browser in ouput windows recibe this message and the web page the error BC32400 Please Help me Auto-attach to process ' aspnet_wp.exe' on machine 'TABLET'...
2
2638
by: Anna | last post by:
I added a small Web.Config file to the root of my website so that I could view errors on a machine other than the server: <configuration> <system.web> <customErrors mode="Off" /> </system.web>...
5
2397
by: Michael Herman \(Parallelspace\) | last post by:
1. What are some compelling solutions for using Master/Content pages with Web Pages? 2. If a content area has a web part zone with web parts, what is the user experience like when "editting" the...
7
6497
by: Jonas | last post by:
Hi. I'm trying to develop a web custom control that uses a programmatically created treeview. My problem is that I get an exception when I try to render the control. With properties do I have to...
2
3359
by: Jeff | last post by:
Hey asp.net 2.0 My asp.net 2.0 project has got a assembly load problem: Some of my web.config settings: <membership defaultProvider="AH_MembershipProvider" userIsOnlineTimeWindow="15">
20
6706
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
I was executing the steps given in http://suppor.microsoft.com/kb/308359 for testing a sample web service application. However, the following line gives a compilation error: localhost.Service1...
2
7387
by: =?Utf-8?B?YW5vbg==?= | last post by:
I am not sure if this is the right forum. Environment : Windows server 2008, IIS 7.0 I get the 'Could not load the file or assembly 'blowery.web.httpCompress' or one of its dependencies. The...
0
7120
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6991
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7196
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6878
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5456
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4897
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4583
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
286
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.