Hello,
I'm a junior in using VB.NET.
I encountered the following problem:
I have a form with some buttons (change password, change username, logout
etc.) and below those buttons I have a label that I want to display some
text, depending what button was pressed (i.e. Changing Password, etc.). I
also want at the same time the click event to handle a redirection to the
aspx page I want to load accordingly (i.e. changing password.aspx).
My problem is when I click any of this buttons a new row of buttons is
generated, but they are lower from the original one, with the new text in
the label but behind the loaded aspx (i.e. changing password.aspx), so they
are never actually visible.
I don't know where to check, what to check in the code. I don't know why a
new set of buttons (and the label in question) are generated.
Why the changing of text property for the label doesn't occur in the first
set of buttons? (this is not even a good question)
Thank you for any advice.
Vasilica 6 1006
Can you post the code behind one of the button_click events that's causing
this?
"John Smith" <so*****@micros oft.com> wrote in message
news:Q9******** ************@ne ws20.bellglobal .com... Hello,
I'm a junior in using VB.NET. I encountered the following problem:
I have a form with some buttons (change password, change username, logout etc.) and below those buttons I have a label that I want to display some text, depending what button was pressed (i.e. Changing Password, etc.). I also want at the same time the click event to handle a redirection to the aspx page I want to load accordingly (i.e. changing password.aspx). My problem is when I click any of this buttons a new row of buttons is generated, but they are lower from the original one, with the new text in the label but behind the loaded aspx (i.e. changing password.aspx), so
they are never actually visible.
I don't know where to check, what to check in the code. I don't know why
a new set of buttons (and the label in question) are generated. Why the changing of text property for the label doesn't occur in the first set of buttons? (this is not even a good question)
Thank you for any advice. Vasilica
Hi!
Is it all right if I do it tomorrow? I have the application at work. I
didn't actually expect an answer so soon. However, the click event contains
only two lines: one for changing the label's text and another one to
redirect to another aspx. (I was hired three days ago, the only info I got
regarding this application was its location, and how to upload new
releases).
Thank you,
Vasilica
"William Ryan [eMVP]" <bi**@NoSp4m.de vbuzz.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. . Can you post the code behind one of the button_click events that's causing this? "John Smith" <so*****@micros oft.com> wrote in message news:Q9******** ************@ne ws20.bellglobal .com... Hello,
I'm a junior in using VB.NET. I encountered the following problem:
I have a form with some buttons (change password, change username,
logout etc.) and below those buttons I have a label that I want to display some text, depending what button was pressed (i.e. Changing Password, etc.).
I also want at the same time the click event to handle a redirection to
the aspx page I want to load accordingly (i.e. changing password.aspx). My problem is when I click any of this buttons a new row of buttons is generated, but they are lower from the original one, with the new text
in the label but behind the loaded aspx (i.e. changing password.aspx), so they are never actually visible.
I don't know where to check, what to check in the code. I don't know why a new set of buttons (and the label in question) are generated. Why the changing of text property for the label doesn't occur in the
first set of buttons? (this is not even a good question)
Thank you for any advice. Vasilica
No problem
"John Smith" <so*****@micros oft.com> wrote in message
news:sy******** ************@ne ws20.bellglobal .com... Hi!
Is it all right if I do it tomorrow? I have the application at work. I didn't actually expect an answer so soon. However, the click event
contains only two lines: one for changing the label's text and another one to redirect to another aspx. (I was hired three days ago, the only info I got regarding this application was its location, and how to upload new releases).
Thank you,
Vasilica
"William Ryan [eMVP]" <bi**@NoSp4m.de vbuzz.com> wrote in message news:%2******** *******@TK2MSFT NGP12.phx.gbl.. . Can you post the code behind one of the button_click events that's
causing this? "John Smith" <so*****@micros oft.com> wrote in message news:Q9******** ************@ne ws20.bellglobal .com... Hello,
I'm a junior in using VB.NET. I encountered the following problem:
I have a form with some buttons (change password, change username, logout etc.) and below those buttons I have a label that I want to display
some text, depending what button was pressed (i.e. Changing Password,
etc.). I also want at the same time the click event to handle a redirection to the aspx page I want to load accordingly (i.e. changing password.aspx). My problem is when I click any of this buttons a new row of buttons is generated, but they are lower from the original one, with the new text in the label but behind the loaded aspx (i.e. changing password.aspx), so they are never actually visible.
I don't know where to check, what to check in the code. I don't know
why a new set of buttons (and the label in question) are generated. Why the changing of text property for the label doesn't occur in the first set of buttons? (this is not even a good question)
Thank you for any advice. Vasilica
Hi John,
You are sending code, but maybe this helps you in between, an aspx page is
stateless, and therefore it starts everytime again.
If the load from a page comes it is executede everytime and therefore is the
property "IsPostBack "
You see it almost always in the load event as
\\\
If Not IsPostBack then
..........
else
.........
end
Have a look at this page, it gives a real clear view on it http://msdn.microsoft.com/library/de...singstages.asp
I hope this helps?
Cor I'm a junior in using VB.NET. I encountered the following problem:
I have a form with some buttons (change password, change username, logout etc.) and below those buttons I have a label that I want to display some text, depending what button was pressed (i.e. Changing Password, etc.). I also want at the same time the click event to handle a redirection to the aspx page I want to load accordingly (i.e. changing password.aspx). My problem is when I click any of this buttons a new row of buttons is generated, but they are lower from the original one, with the new text in the label but behind the loaded aspx (i.e. changing password.aspx), so
they are never actually visible.
I don't know where to check, what to check in the code. I don't know why
a new set of buttons (and the label in question) are generated. Why the changing of text property for the label doesn't occur in the first set of buttons? (this is not even a good question)
Thank you for any advice. Vasilica
Hi Cor,
Thank you very much for the hint and for the link. I'll go through it and
try to fix the problem.
Thank you again.
"Cor" <no*@non.com> wrote in message
news:Oc******** ******@TK2MSFTN GP10.phx.gbl... Hi John,
You are sending code, but maybe this helps you in between, an aspx page is stateless, and therefore it starts everytime again.
If the load from a page comes it is executede everytime and therefore is
the property "IsPostBack "
You see it almost always in the load event as \\\ If Not IsPostBack then ......... else ........ end
Have a look at this page, it gives a real clear view on it
http://msdn.microsoft.com/library/de...singstages.asp I hope this helps?
Cor
I'm a junior in using VB.NET. I encountered the following problem:
I have a form with some buttons (change password, change username,
logout etc.) and below those buttons I have a label that I want to display some text, depending what button was pressed (i.e. Changing Password, etc.).
I also want at the same time the click event to handle a redirection to
the aspx page I want to load accordingly (i.e. changing password.aspx). My problem is when I click any of this buttons a new row of buttons is generated, but they are lower from the original one, with the new text
in the label but behind the loaded aspx (i.e. changing password.aspx), so they are never actually visible.
I don't know where to check, what to check in the code. I don't know why a new set of buttons (and the label in question) are generated. Why the changing of text property for the label doesn't occur in the
first set of buttons? (this is not even a good question)
Thank you for any advice. Vasilica
Hi ,
This is the piece of code behind click event:
----------------------------------------------------------------------------
-----
Private Sub B_user_changepa ss_Click(ByVal sender As System.Object, ByVal e
As System.EventArg s) Handles B_user_changepa ss.Click
'L_msg.Text = "change password"
Response.Redire ct("ChangePassw ord.aspx")
End Sub
----------------------------------------------------------------------------
-------------------------------------------------
Nothing spectacular, I would say.
I'll read some more documentation these days (another person replied and
gave me a link), hopefully I'm getting a good solution.
Thanks a lot.
"William Ryan [eMVP]" <bi**@NoSp4m.de vbuzz.com> wrote in message
news:eS******** ******@TK2MSFTN GP09.phx.gbl... No problem "John Smith" <so*****@micros oft.com> wrote in message news:sy******** ************@ne ws20.bellglobal .com... Hi!
Is it all right if I do it tomorrow? I have the application at work. I didn't actually expect an answer so soon. However, the click event contains only two lines: one for changing the label's text and another one to redirect to another aspx. (I was hired three days ago, the only info I
got regarding this application was its location, and how to upload new releases).
Thank you,
Vasilica
"William Ryan [eMVP]" <bi**@NoSp4m.de vbuzz.com> wrote in message news:%2******** *******@TK2MSFT NGP12.phx.gbl.. . Can you post the code behind one of the button_click events that's causing this? "John Smith" <so*****@micros oft.com> wrote in message news:Q9******** ************@ne ws20.bellglobal .com... > Hello, > > I'm a junior in using VB.NET. > I encountered the following problem: > > I have a form with some buttons (change password, change username, logout > etc.) and below those buttons I have a label that I want to display some > text, depending what button was pressed (i.e. Changing Password, etc.). I > also want at the same time the click event to handle a redirection
to the > aspx page I want to load accordingly (i.e. changing password.aspx). > My problem is when I click any of this buttons a new row of buttons
is > generated, but they are lower from the original one, with the new
text in > the label but behind the loaded aspx (i.e. changing password.aspx),
so they > are never actually visible. > > I don't know where to check, what to check in the code. I don't know why a > new set of buttons (and the label in question) are generated. > Why the changing of text property for the label doesn't occur in the
first > set of buttons? (this is not even a good question) > > Thank you for any advice. > Vasilica > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: baustin75 |
last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie
only when debugging in php designer 2005
--------------------------------------------------------------------------------
Hello,
I have a very simple problem but cannot seem to figure it out. I have a
very simple php script that sends a test email to myself. When I debug
it in PHP designer, it works with no problems, I get the test email. If
|
by: Wayne Aprato |
last post by:
I have a simple database which was originally written in Access 97.
When converted to Access 2000 file format it ran flawlessly in Access
2002. I've just tried to run it in Access 2003 and I am seeing the
following behaviour:
Some of the fields on the continuous main form which is a list of jobs
with their related details "flicker". While this is going on the form
seems to function as it should and isn't locked up. If I click and
hold...
|
by: Ken Varn |
last post by:
I have created a custom control that derives from WebControl. The custom
control assigns other controls dynamically to the Controls collection. Is
there anyway that I can recall the lost of controls that I assigned to my
custom control when I receive postback?
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
|
by: Jim Bayers |
last post by:
I have a simple page, all that's on it is a datagrid. The datagrid is
populated on page_load when it is bound to a datareader.
The problem is: when a user refreshes the page, new records are added to
the datagrid, duplicating everything that was there.
How do I prevent this? Should I clear the datagrid at the top of every
page_load? Can I set a variable the first time the page is loaded and
check it for the next refresh?
|
by: Mark |
last post by:
Hopefully somebody can help me with this very frustrating problem.
In Dreamweaver I have a template page and a page created from this template
called Home.aspx. In Visual Studio I have a class inherited from
System.Web.UI.Page which represents the template (including all components
and associated events defined in the template). Then I have a codebehind
file for Home.aspx that defines a class (Home) that includes controls
specific to...
| |
by: stacy |
last post by:
I would like to create 4 tab pages in a tab control. 1 tab is for
properties, 1 is for status and 2 of the tabs will have the same
controls on them, for settings. The two settings tab pages will
contain identical Check boxes and Radio buttons within GroupBoxes. I
created the tab control with 3 tab pages using the toolbox (1 property
tab, 1 status tab and 1 settings tab). Then, at run time, I add the
forth tab page (if needed) and tried...
|
by: dustbort |
last post by:
ASP.NET 1.1
I want to enhance the existing web controls to add special data-binding
features like provider-consumer relationships and the ability to
automatically add validation based on database schema. The problem I am
having is that most of this functionality is really an extension of the
WebControl class, from which the web controls inherit. There is a lot of
functionality (properties and methods) that I would like to put into a base...
|
by: netasp |
last post by:
hi all,
how can I populate one aspx form when page is loading based on page ID? for
example:
loading page A (to search for VB code) would display labels and texboxes,
dropdown lists all related to VB, plus the address bar would show something
like this: www.somethinghere?id=3
and if you change number 3 from the address bar to (for example) 34 or 71
you would get different page with the same formatting like I.e:
www.somethinghere?id=34...
|
by: Jay |
last post by:
I have a multi threaded VB.NET application (4 threads) that I use to send
text messages to many, many employees via system.timer at a 5 second
interval. Basically, I look in a SQL table (queue) to determine who needs
to receive the text message then send the message to the address. Only
problem is, the employee may receive up to 4 of the same messages because
each thread gets the recors then sends the message. I need somehow to
prevent...
|
by: Roshawn |
last post by:
Hi,
I have a control that derives from the HtmlForm control. The difference is that I can set the action attribute to whatever I
desire. This works fine. :-)
What I can't seem to do is prevent the form from mangling the ID and Name attributes of the controls I'm using. I see them
in the url and it makes me sick. Also, I notice that the _VIEWSTATE and _EVENTVALIDATION hidden controls are sent in the url
as well. The changing 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: 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...
|
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,...
|
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: 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...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |