|
Thank you Mike I appreciate it, I was making a bad assumption based on a 3rd party component's behaviour and a misunderstanding of some of the docs I was reading on multiview. I should have just tried it right off the start.
Cheers!
-- modified at 16:53 Thursday 10th August, 2006
|
|
|
|
|
Perhaps I'm missing the underlying problem, but can't you just use an asp:Panel to wrap your sections and set Visible=false for the sections you don't want to display?
|
|
|
|
|
I'm trying to cut down on the size of the page sent to the user. Setting Visible=false still sends that panel section to the browser from the web server.
|
|
|
|
|
How are you setting it up?
This:
---------------------------------------
<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false" Inherits="TestWebApp._Default" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:Panel ID="pnlVisible" runat="server">
<asp:TextBox id="Textbox1" Runat="server"></asp:TextBox>
<asp:TextBox id="Textbox2" Runat="server"></asp:TextBox>
<asp:TextBox id="Textbox3" Runat="server"></asp:TextBox>
<asp:TextBox id="Textbox4" Runat="server"></asp:TextBox>
<asp:TextBox id="Textbox5" Runat="server"></asp:TextBox>
</asp:Panel>
<asp:Panel ID="pnlNotVisible" Visible="False" runat="server">
<asp:TextBox id="Textbox6" Runat="server"></asp:TextBox>
<asp:TextBox id="Textbox7" Runat="server"></asp:TextBox>
<asp:TextBox id="Textbox8" Runat="server"></asp:TextBox>
<asp:TextBox id="Textbox9" Runat="server"></asp:TextBox>
<asp:TextBox id="Textbox10" Runat="server"></asp:TextBox>
</asp:Panel>
</form>
</body>
</HTML>
---------------------------------------
renders this for me (.NET 1.1):
---------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form name="Form1" method="post" action="Default.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE" value="dDwtMTc2NDM4OTkxODs7Pm7rGtXI0cEYJ6T19tObP543riiK" />
<div id="pnlVisible">
<input name="Textbox1" type="text" id="Textbox1" />
<input name="Textbox2" type="text" id="Textbox2" />
<input name="Textbox3" type="text" id="Textbox3" />
<input name="Textbox4" type="text" id="Textbox4" />
<input name="Textbox5" type="text" id="Textbox5" />
</div>
</form>
</body>
</HTML>
---------------------------------------
Jon Sagara
When I grow up, I'm changing my name to Joe Kickass!
My Site | My Blog | My Articles
|
|
|
|
|
Thanks Jon, I was going by what I saw with a 3rd party component. I appreciate you taking the time to check it out, I should have just tested it with the stock component to begin with.
Cheers!
|
|
|
|
|
Don't know what browsers you have to support but couldn't you use iframe and point it to aspx or ascx as necessary?
only two letters away from being an asset
|
|
|
|
|
No it's not practical to do that, it's a very complex form with a very complex business object as the source of what's being edited on the form, to break it out into different pages would be a nightmare. There are about 20 controls in each of the three sections for a total of 60-ish and only 20 need to be displayed at a time. (I'm porting from a winform app)
|
|
|
|
|
Does anyone know how to get the date to 2 characters ie 2006 would be 06. this has been baffling me for a while now. Any help is much appreciated
|
|
|
|
|
Use the ToString() method of the DateTime object with a pattern argument that includes "yy" for a two-character year... something like this:
DateTime theDate = System.DateTime.Now;
String dateAsString = theDate.ToString("dd-MMM-yy");
|
|
|
|
|
Hi,
(Im new to using 2.0)
Im using Master pages to create the templates for each section of a website i'm developing. Using contentplaceholders i am able to create each unique page and simply pull in the lay-out from the master page as you would expect.
However it is important for each page i create to have its own metatags / title. How do i go about doing this, when this information is to be located in the head-tags and thus in the master page?
Shoul i create placeholders for the data? This doesnt seem to favourable as vis studio considers this to be erroneous.
Thanks
Phill
|
|
|
|
|
You can try
using System.Web.UI.HtmlControls;
HtmlMeta meta = new HtmlMeta();
meta.Name = "keywords";
meta.Content = "testing the keywords";
((NameOfMasterPage)Master).Page.Header.Controls.Add(meta);
But I'm not sure if this is the best approach.
Good luck!
Cheers
Disgyza
Programmer Analyst
|
|
|
|
|
|
Hi,
In Amazon website,When we click on TV,It displays the TVs available one after another i.e side by side.I think for each tv they are using formview or detailsview.I think so.
Whether we have to place one form view for each tv.
How they achieve it.
Thanks in advance.
|
|
|
|
|
I have an ASP.NET 2.0 page that generates a ZIP file on-the-fly and sends it to the browser, modifying the content-type to "application/zip" using the method Response.AddHeader() .
The content is sent correctly, but the browsers ask to save a .aspx file, that actually contains ZIP data. I mean that if you change the extension to .zip, the file works.
This is obviously not the best way.
So, I'd like to know whether there is or not a way to change the "name" of the file in the Response, without using Response.Redirect() , so the browser actually "sees" a .zip file.
Thanks for any advice.
EDIT: solved, just add the header Response.AddHeader("content-disposition", "attachment;filename=File.zip") .
-- modified at 10:22 Thursday 10th August, 2006
|
|
|
|
|
Hi Friends,
I need to show a colour chooser and save colour value int a database for future use.
Does any one knows how to do that.? any article link or code will be appreciated.
thanks:->
Naveed Kamboh
|
|
|
|
|
|
Thanks,
Basically my client needs too choose colour of his own choice.
These are fixed colours, so pls if you help me to get windows colour, that would be a great help.
thanks
Naveed Kamboh
|
|
|
|
|
Hi everybody.
I’ve develop a web application by asp.net 2 and I want to release it, via installation package. I can make a setup file for that. But I don’t know how to install internet information service (IIS) in the user’s computer via my setup file and my application needs IIS 4.0 or later to run. I search for that in my operating system cd. But I don’t find any installation file for that.
If anyone knows IIS setup file please send me its url.
Thanks
Rastgar
|
|
|
|
|
IIS is distributed by Microsoft and they control the rights. The user's PC must have the appropriate licence and they will then be able to install IIS themselves through the Add/install components section in add/remove programs.
You can't distribute IIS with your app.
|
|
|
|
|
so how other webapplication works in end user's pc. isn't there any better solution?
Thanks
Rastgar
|
|
|
|
|
They get installed on a pc with a webserver installed. If your customer wishes to buy and run a web application, then they must be equipped with the appropriate software to serve it...
|
|
|
|
|
Friends..
I am using a password of length 10 varchar in SQL. The problem is i am using Triple DES encryption and inserting the encrypted string into the database...I donno which datatype i can use and how much length i can allow for this datatype...Will varchar(40) do for a length of 10 chars...?
Please look into the matter.
|
|
|
|
|
This is just a wee idea, but have you tried running your encryption and doing a count of the returned characters in the string?
|
|
|
|
|
Hi,
how can I Display an pdf file in an panel within a multiview ?
|
|
|
|
|
You'll need to use an <iframe> tag within your panel.
|
|
|
|