473,379 Members | 1,184 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Panel Class question

CroCrew
564 Expert 512MB
Hello Everyone,

Ok, this is a general question and any advice on the subject would be appreciated.

First I will describe my quandary. I have a page that I allow internal users to add HTML content too directly on a page. I am finding that many of the people are not closing their tags and thus reeking havoc on the rest of the page.

I was thinking of adding an iFrame to the page and just let them add their content on the page that loads in the iFrame. But, I don’t like using iFrames. So I started to look at the Panel Class.

From my understanding the Panel control provides a scriptable area on a page for displaying static information or script output. Its use is to control the display of other text, HTML, and server controls coded inside the Panel control.

So, the decision is would a Panel control really help my predicament? Is there a hidden gotcha that I have not seen with using a Panel control this way? Is there a better solution?

I would like to thank anyone that participates on this subject. I value everyone’s advice.

Happy Coding,
CroCrew~
Feb 11 '10 #1
4 1189
sashi
1,754 Expert 1GB
Hi there,

Heard about UFrame? Kindly follow the attached link UFRAME: goodness of UpdatePanel and IFRAME together.

You might find it interesting, happy coding :)
Feb 12 '10 #2
Frinavale
9,735 Expert Mod 8TB
When an ASP.NET Panel is rendered as HTML, it is rendered as a <div></div>...so no, I'm sorry but a Panel is not going to help you in this case.

I'm also not sure if the UFrame is going to really help you since you haven't mentioned using UpdatePanels or Ajax at all.

I would say that the iframe is the best idea...use it to display the "user edited" HTML so that your page is not messed up.
Feb 12 '10 #3
CroCrew
564 Expert 512MB
Hello Frinavale,

I am a big fan of using Ajax. I have used the UpdatePanel control in the past. So, Any Ajax control is n play for this discussion.

With that said would you still think an iframe is the best solution? I kind of like the use of this uframe. What do you think?

Also, if there is any other ideas out there please bring them forward.

Many thanks everyone. I hope that this discussion will help other and not only me.

Happy Coding,
CroCrew~
Feb 12 '10 #4
Frinavale
9,735 Expert Mod 8TB
I've never used a UFrame before....check it out and let me know how it goes :)
Feb 12 '10 #5

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

Similar topics

0
by: Patrick Aikens | last post by:
This question is for .NET 2005 beta 1 (we can't move to beta 2 yet at my workplace). This is probably a true newbie question or a beta bug, but I'm a bit lost on this... I want to extend the...
3
by: Harry | last post by:
Hi, Can anyone help. I have a asp.net page (c#), with two panels, both of which have asp:textboxes on. When I press the first button, the second panel shows fine. When I press the button in...
3
by: M O J O | last post by:
Hi, I have a panel on my form. I want to detect when the user enters my panel with his mouse and when he leaves my panel. If the user hovers a control inside my panel, I get the mouseleave,...
3
by: Lasse Eskildsen | last post by:
Hi, I have a panel on my form, and I would like to add a shadow around that panel, just like Xp as around the menus etc. I tried drawing it with the lineargradientbrush, but it doesn't look very...
2
by: Jeff S | last post by:
Hello I am having an issue with changing the bordercolor of the panel control I have got to a point where I have created my own control and inherited the Panel control, then in the Overrides Sub...
3
by: John Salerno | last post by:
I'm using the sample code of the file 'simple.py' and trying to make a single window with a panel in it, but I keep getting an error. Here's my code: (I know I might need something else, like a...
10
by: markwalker84 | last post by:
Hello everyone! Got a bit of a problem... Two of the panels on my program contain a number of check boxes. The exact number of which is determined by a pair of variables. I have recently...
9
by: she_prog | last post by:
Dear All, I need to save the content of a panel to a bitmap. The panel can have many child controls which also need to be saved. The problem would be solved if I could have the panel saved to a...
0
by: mike | last post by:
Hi guys, I have a windows form and on load event I dynamically created a panel and dynamically create/add pictureboxes to panel and added a panel to the form with docking with fill. I am...
1
Elias Alhanatis
by: Elias Alhanatis | last post by:
Dear friends, First of all , i wish a Happy New Year to all of you!!!! I have been learning Python and the Tkinter GUI package for the last 6 months , and now i am trying to rewrite a program...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.