Hi Cor and everybody else,
i created a page with 5 panels and 5 buttons which control them acording to
Cor's help.
After this i used 5 image buttons instead of standard buttons.
When i run the page i don't get any error but at the same time i don't see
anything.
I am doing something wrong here. Can you, Cor, or somebody else point me
what is wrong?
The reason why i have several sets of buttons is because in each panel there
is an image which is not a button but only an image with the different color
which i call image-hit.gif, indicating in which section the visitor is.
Just paste the following code in an empty page and you will have exactly
what i have:
<%@ Page Language="VB" ContentType="te xt/html" ResponseEncodin g="iso-8859-1"
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<script language="VB" runat="server">
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s)
If Not IsPostBack Then
viewstate.Item( "T") = 1
End If
Dim frm As Control = Me.FindControl( "formDados" )
Dim ctl As Control
For Each ctl In frm.Controls
If TypeOf ctl Is Panel Then
DirectCast(ctl, Panel).Visible = False
End If
Next
End Sub
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.Web.UI.I mageClickEventA rgs)
panelDados1.Vis ible = True
End Sub
Private Sub Button2_Click(B yVal sender As System.Object, ByVal e As
System.Web.UI.I mageClickEventA rgs)
panelDados2.Vis ible = True
End Sub
Private Sub Button3_Click(B yVal sender As System.Object, ByVal e As
System.Web.UI.I mageClickEventA rgs)
panelDados3.Vis ible = True
End Sub
Private Sub Button4_Click(B yVal sender As System.Object, ByVal e As
System.Web.UI.I mageClickEventA rgs)
panelDados4.Vis ible = True
End Sub
Private Sub Button5_Click(B yVal sender As System.Object, ByVal e As
System.Web.UI.I mageClickEventA rgs)
panelDados5.Vis ible = True
End Sub
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitl ed Document</title>
<link href="css/bonsAlunosStyle s.css" rel="stylesheet " type="text/css">
</head>
<body>
<form id="formDados" method="post" runat="server">
<asp:Panel ID="panelDados1 " Runat="Server">
<table width="468" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td width="11" align="center" class="greyNote Text"></td>
<td width="457" align="left" class="greyNote Text">
<table border="0" cellpadding="0" cellspacing="0" >
<tr>
<td><img src="image/button-ensino-hit.gif" width="49"
height="18"></td>
<td><asp:ImageB utton ID="button2Pane l1"
AlternateText=" Curriculum Vitae"
ImageUrl="image/button-curriculum-vitae.gif" ToolTip="Curric ulum Vitae"
OnClick="Button 2_Click" runat="server" /></td>
<td><asp:ImageB utton ID="button3Pane l1"
AlternateText=" Localização" ImageUrl="image/button-localizacao.gif "
ToolTip="Locali zação" OnClick="Button 3_Click" runat="server" /></td>
<td><asp:ImageB utton ID="button4Pane l1"
AlternateText=" Documentos Publicados"
ImageUrl="image/button-documentos-publicados.gif" ToolTip="Docume ntos
Publicados" OnClick="Button 4_Click" runat="server" /></td>
<td><asp:ImageB utton ID="button5Pane l1"
AlternateText=" Contacte-me" ImageUrl="image/button-contacte-me.gif"
ToolTip="Contac te-me" OnClick="Button 5_Click" runat="server" /></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" >
<tr>
<td>Panel 01</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Panel>
<asp:Panel ID="panelDados2 " Runat="Server">
<table width="468" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td width="11" align="center" class="greyNote Text"></td>
<td width="457" align="left" class="greyNote Text">
<table border="0" cellpadding="0" cellspacing="0" >
<tr>
<td><asp:ImageB utton ID="button1Pane l2"
AlternateText=" Ensino" ImageUrl="image/button-ensino.gif" ToolTip="Ensino "
OnClick="Button 1_Click" runat="server" /></td> 1 1125
Hi Miguel,
First, please do not call my name in the message, I will follow up when I
see it and can answer it.
I have already putted my answer in the original thread before I saw this.
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: PZ |
last post by:
OSS 2005
The First International Conference on Open Source Systems
Genova, July 11 - 15, 2005
CALL FOR PANELS
http://oss2005.case.unibz.it
Submissions of panels are solicited for the "First International
Conference on Open Source Systems, OSS2005", to be held in Genova,
Italy from the 11th to the 15th of July 2005.
|
by: PZ |
last post by:
OSS 2005
The First International Conference on Open Source Systems
Genova, July 11 - 15, 2005
CALL FOR PANELS
http://oss2005.case.unibz.it
Submissions of panels are solicited for the "First International
Conference on Open Source Systems, OSS2005", to be held in Genova,
Italy from the 11th to the 15th of July 2005.
|
by: TonyM |
last post by:
Hi all,
I have an application with a few different Windows forms. I am trying to
update a statusbar panel's text that is in the main form, from another form.
When I set the statusbar and the statusbar panels to public and shared in
VS.net's property box it will work. However, whenever I make any
modifications to the main form it will remove the shared property and I will
get build errors about accessing the panels with "this.".
|
by: Miguel Dias Moura |
last post by:
Hello,
i have 5 panels in an ASP.net / VB page.
The panel 1 is visible the other 4 are NOT visible.
I also have 5 images: image 1, image 2, ..., image5.
When i click one of the images, image N, the panel N becomes visible and
all the other invisible.
|
by: randy1200 |
last post by:
I'm working in Visual Studio 2005 and C#.
I have a WinForms application with two panels (left panel and right panel).
I have a textbox on the left panel, and a button on the right panel. I'd like
to have a button-press from the right panel call a function in the left
panel, which might simply Console.Writeline(textBox1.Text);
If I could get the instance of the PanelLeft class, I could simply say:
...
| |
by: Sunshine |
last post by:
Hello all and thank you for your time. I have an application that I
have just taken maintenance over from a consulting firm. The
application uses a lot of user controls and panels to control
information. I see that when the page is loaded (aspx), it loads all
the user controls(ascx) as well. The problem I'm seeing that when the
user goes to a different panel (pnlMain.visible = true), the main page
is reload which causes all the user...
|
by: Learner |
last post by:
Hello there,
I have built as .aspx page. I have a situation to create 4 panels in
a <td></td. Based on the selection of a drop down I need to display
the corresponding panel in that table cell. Every thing works fine but
I see a lot of space in the table cell that was occupied by the other
panels though they are being hidden.
Can any one help me how to remove the space ? I dont' know how to use
style sheets or even do not if the the...
|
by: A. Haeser |
last post by:
Hello,
I have build a little application with dynamic usercontrols on a panel.
Sometimes there are 5 userscontrols on the panel, sometimes much more.
It is database driven, everey usercontrol needs to get details from
database.
I've tried to cache some panels in a collection using a key. This gives
me more performance because about of 25 keys will be used randomely.
|
by: ania1984 |
last post by:
Hello,
I'm writing a program in c#, in which I create a flowlayoutpanel that contains a lot of panels. I have a button, and when the user clicks on it, I want to dispose the panels that I've created.
This is the code:
foreach (Control c in myFlowLayoutPanel.Controls)
{
((Panel)c).Dispose();
}
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |