473,657 Members | 2,566 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Framesets - server side control?

Sue
Is there such an animal as a frameset/frames server-side
webcontrol or htmlcontrol? I have a frameset with two
frames - one contains an aspx page with asp buttons that
has to do some updating, then change the aspx in the
second frame to another aspx. I've been trying various
ideas without success. Is there no way to do this on the
server side? Perplexed and wanting to drop kick this darn
app into orbit elsewhere.... tia, Sue
Nov 18 '05 #1
15 2884
No such control exists.
Using frames in .NET is generally a bad idea. They're not supported well.
Usually you're better off partitioning logical sections of your page into
web user controls.
Here's more info:
http://msdn.microsoft.com/library/de...ercontrols.asp
http://msdn.microsoft.com/library/de...ercontrols.asp
http://msdn.microsoft.com/library/de...ebControls.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Sue" <Su*@ojd.state. or.us> wrote in message
news:09******** *************** *****@phx.gbl.. .
Is there such an animal as a frameset/frames server-side
webcontrol or htmlcontrol? I have a frameset with two
frames - one contains an aspx page with asp buttons that
has to do some updating, then change the aspx in the
second frame to another aspx. I've been trying various
ideas without success. Is there no way to do this on the
server side? Perplexed and wanting to drop kick this darn
app into orbit elsewhere.... tia, Sue

Nov 18 '05 #2
Sue
I experimented with user controls (and like them), but
there were two problems for which I couldn't find a
solution: (1) loading all the user controls into one web
page (which seems to be what is preferred?) slowed the
page load to a crawl; (2) how to reference other user
controls controls? Any suggestions on where to find these
answers? tia, Sue
Nov 18 '05 #3
You must have a whole lot of controls on your page.
You can optimize with some tips like these:
* HTML controls have a smaller memory footprint than web controls and
therefore may be more suitable for simple situations.
* static text can often be included in the HTML instead of using label
controls.
* Only use Autopostback when needed
* Turn on SmartNavigation

You can reference other control's controls by declaring them as public
instead of the default protected. Then you could use code like this:
Page.MyControl. MyTextBox

Or you can expose your control's controls through public function or
properties.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com


"Sue" <Su*@ojd.state. or.us> wrote in message
news:04******** *************** *****@phx.gbl.. .
I experimented with user controls (and like them), but
there were two problems for which I couldn't find a
solution: (1) loading all the user controls into one web
page (which seems to be what is preferred?) slowed the
page load to a crawl; (2) how to reference other user
controls controls? Any suggestions on where to find these
answers? tia, Sue

Nov 18 '05 #4
I'm not sure if this will work, but you could try the
HTMLGenericCont rol. Add an id="fraSet" and a
runat="server" to your frameset tag then a "Protected
WithEvents fraSet as HTMLGenericCont rol to your code-
behind. Then you should be able to modify what appears
inside the frameset with the InnerHTML property. The same
should work with frames.

BTW, we use the heck outa frames in our ASP.NET apps and
love them (but we don't have any server-side code to
modify the frameset's contents, just the pages displayed
in the frames).
-----Original Message-----
Is there such an animal as a frameset/frames server-side
webcontrol or htmlcontrol? I have a frameset with two
frames - one contains an aspx page with asp buttons that
has to do some updating, then change the aspx in the
second frame to another aspx. I've been trying various
ideas without success. Is there no way to do this on the
server side? Perplexed and wanting to drop kick this darn
app into orbit elsewhere.... tia, Sue
.

Nov 18 '05 #5
Hi Sue,
Thank you for using Microsoft Newsgroup Services. Based on your desciption,
you are looking for some ASP.NET servercontrol or htmlcontrols which can
display as the frameset or frames in html page. As for this, I agree with
Steve, in ASP.NET there isn't such serverside controls which can directly
display as the frameset for frame. If you do want to implement frames and
frameset in ASP.NET webpage and control their attributes, I think you may
try using the client side script(such as javascript) together with the
serverside code.

As for the UserControl's problem you mentioned in the later reply. Yes,
since the UserControl is somewhat unlike the servercontrols and
htmlcontrols. It provides much more flexible featrures. When using
UserControls in an ASP.NET page, all the UserControls will be compiled the
first time the page is requested and stored in server memory to reduce the
response time for subsequent requests. So the it'll be somewhat slow the
first time page is requested. Also, since the UserControl is like a subpage
which is loaded into its container page at runtime, if you have many
UserControls in a page, the speed will be reduced. However, since the
ASP.NET has the cool feature "cache" which can save certain part of the
page(also for UserControls) so that the page can be render out much more
quickly. Also, besides adding a UserControl by delcaration, you can also
import a UserControl into a page programmaticall y and set their properties.
For more detailed in fomation on the ASP.NET UserControl, you can view the
following weblink in MSDN:
#This is a serial tutorial on Web Forms User Controls
http://msdn.microsoft.com/library/en...ormsusercontro
ls.asp?frame=tr ue

#About Caching Multiple Versions of User Control Output
http://msdn.microsoft.com/library/en...ingmultiplever
sionsofusercont roloutput.asp?f rame=true

Please check out the preceding suggestions to see whether they are helpful.
If you have any question on it, please feel free to let me know.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #6
If you have a webform on the buttons aspx page you can use a
"target=" attribute in your form tag. Not sure if you would set
the action attribute to the name of the aspx file you want to load
into the target frame or use a response.redire ct to the intended
aspx file in your code behind the form. This doesn't work if the
form has some processing that posts back to itself. Also, .NET
only supports one frame on each page.

Anthony

"Sue" <Su*@ojd.state. or.us> wrote in message
news:09******** *************** *****@phx.gbl.. .
Is there such an animal as a frameset/frames server-side
webcontrol or htmlcontrol? I have a frameset with two
frames - one contains an aspx page with asp buttons that
has to do some updating, then change the aspx in the
second frame to another aspx. I've been trying various
ideas without success. Is there no way to do this on the
server side? Perplexed and wanting to drop kick this darn
app into orbit elsewhere.... tia, Sue

Nov 18 '05 #7
>I'm not sure if this will work, but you could try the
HTMLGenericCon trol. Add an id="fraSet" and a
runat="serve r" to your frameset tag then a "Protected
WithEvents fraSet as HTMLGenericCont rol to your code-
behind. Then you should be able to modify what appears
inside the frameset with the InnerHTML property. The sameshould work with frames.


Dave, this looks interesting - thanks for the idea! I'll
give it a try this am. Sue
Nov 18 '05 #8
Sue
Also, .NET
only supports one frame on each page.


?? One? I've got a test frameset up with two frames and it
works. What sort of experience do you have for this? (I'd
rather know now than after I've put a lot of work into
this...) tia, Sue
Nov 18 '05 #9
Sue
I think you may
try using the client side script(such as javascript) together with theserverside code.


I've got several client-side script blocks in this app,
but specifically with this problem, I tripped over an old
problem that I set aside over the xmas holiday hoping it'd
go away <hahahaha>. Specifically, I have/had set up
several html (image) buttons to control the display
property of different panels, tables, etc. among other
things. When I clicked on the button, the display property
changes as desired, but immediately reverted back to it's
original state. Tried many ideas to fix w/o luck (except
server-side buttons). Autopostback = false. The rendered
client-side code is correct. If I could get this to work,
the server-side issue here would be a moot point. thnx.
Sue
Nov 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
12421
by: HarveyB | last post by:
I would like to generate non-modal popup windows from ASP.Net code-behind. I have tried using Client Side scripting like "function Test(){ window.open('test.htm',_blank, 'height=200,width=400,status=no,toolbar=no, menubar=no,location=no resizable=no scrollable=no'); but I can't seem to invoke the client side script from within a Server Side Form. I know I can use the context with to Response.redirect or Server.transfer to return a
13
2718
by: Arie Mijnlieff | last post by:
Hi ! I have an html file (http://www.kpc.nl/home.html) which i send to the w3 validator as well as to a an online HTML tidy script. The w3 validator (validator.w3.org) claims the frameset tag doesnt have a border tag whereas the html tidy script (http://infohound.net/tidy/tidy.pl) claims everything is ok.. Who is right ? I am asking this because i would like to write clean
5
2266
by: terry | last post by:
Hi, Question: When using Framesets and Server.Transfer in the Application_Error event handler is there a mechanism to get the error page to display in the total view of the browser not just in the offending frame? Overview: I have an application in which I am using framesets. When an Unhandled exception occurs I try to handle it
2
8387
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when submitting the form to update the database. The server doesn't have the client side value any more. It seems to me that as I begin to write the client side javacript code for form validation and client side editing capabilities in order to save...
4
1764
by: Pete | last post by:
Hello- I am have a real trying time finding information on this subject. I would like to create a web page that utilizes framesets (top & bottom) and a navigation control I created from a datalist that gets data from a sql datasource (sort of like a tabstrip). I'm getting pretty comforatable on the asp.net side of things, but I'm lacking in the javascript department. I understand that I need to add javascript to make the frames work...
5
3584
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact that for server control component , code is running on the server side. But if I take as example a Label. I place on a webform an HTM label control and a WebForm label control, I could see that properties are different for
29
1871
by: vivekaseeja | last post by:
Hi, I have a web page where there are two frames. The left hand side frame has a list. When a row in a list is clicked, the other frame's contents need to be changed. The right hand frame needs to be a single html page, so i imagine have to hide and unhide content somehow. Thanks in advance, vivekian
1
9023
by: Mark Rae | last post by:
Hi, Firstly, I have not the slightest intention of using framesets - the reason for this post is merely to ask for assistance in furthering my understanding of XHTML. I was under the impression that XHTML fully supports framesets, hence the Frameset document type. Therefore, can anyone please tell me why the following markup doesn't validate correctly in VS.NET 2005?
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6167
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4158
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2731
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1957
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1620
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.