Hey,
Curiousity question for you all. It works, no problem, but I'm gunna
add code so that it does not break anyway.
I have a web page done in ASP 1.1 and the "default.aspx" page have
about 3 or so panels. I have a datagrid and some add, edit, and delete
functions inside of it. Now, each panel is created for an add, edit, or
delete function. In each is a "Cancel" button - just in case =D. Now,
in the beginning, the program hides the function panels and shows the
main panel with the datagrid. When the user clicks "edit" or some other
function, that panel is shown and all the others are hidden. Now, on
to the question. I created the "Cancel" buttons and named them
"butCancel" with the text "Cancel". WITHOUT ANY CODE written by me, it
will hide the correct panels and show the main panel. It works perfect
for a cancel button, but I didn't use any code, I just put it in there.
Whats going on? I will say that when I make new code for it, it does
what the new code says. And there are no other buttons on that web page
called "butCancel" so it is not that either. I just wanna know what it
is doing. =/
Thanks,
Kivak 1 944
I think you may have answered your own question:
"in the beginning, the program hides the function panels and shows the
main panel with the datagrid"
It sounds like your Cancel button is just doing a PostBack, and without any
specific instructions on how to handle it, it just acts like the page was
brand new. Once you write code to respond to that button-click, it will run
that code instead of the 'default' code when the page re-loads. (Or it will
run it in addition to the page_load code, I should say...results will vary
depending on exactly what your code says.)
You could probably get a more accurate, technical answer, if you provided
sample code, but I suspect this is at the the gist of what is going on...
"Kivak Wolf" wrote: Hey,
Curiousity question for you all. It works, no problem, but I'm gunna add code so that it does not break anyway.
I have a web page done in ASP 1.1 and the "default.aspx" page have about 3 or so panels. I have a datagrid and some add, edit, and delete functions inside of it. Now, each panel is created for an add, edit, or delete function. In each is a "Cancel" button - just in case =D. Now, in the beginning, the program hides the function panels and shows the main panel with the datagrid. When the user clicks "edit" or some other function, that panel is shown and all the others are hidden. Now, on to the question. I created the "Cancel" buttons and named them "butCancel" with the text "Cancel". WITHOUT ANY CODE written by me, it will hide the correct panels and show the main panel. It works perfect for a cancel button, but I didn't use any code, I just put it in there. Whats going on? I will say that when I make new code for it, it does what the new code says. And there are no other buttons on that web page called "butCancel" so it is not that either. I just wanna know what it is doing. =/
Thanks, Kivak
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Guenther Schmidt |
last post by:
Hi,
is it possible to have PHP pretty print the HTML output?
Günther
|
by: Urs Muntwyler |
last post by:
Hi all
I wonder if there is really no way to pretty print a DOM, using Java's
standard API (http://java.sun.com/j2se/1.4.2/docs/api/index.html).
What I've tried is (assume having a...
|
by: Humpdydum |
last post by:
Any freeware/open-source that does that? Windows- OR Linux-based is fine. On
Linux it would be s/t like "pyprint -r *.py > out.ps" where -r indicates
recursive. Done a search on google and nothing...
|
by: Andy Fish |
last post by:
Hi,
I am trying to use MXXMLWriter with the indent flag to pretty print an XML
document from vb6.
Although the output is mostly indented in a reasonable way, the end tags are
always bunched...
|
by: Montrose... |
last post by:
After working in c# for a year, the only conclusion I can come to is
that I wish I knew c.
All I need is Linux, the gnu c compiler and I can do anything.
Web services are just open sockets...
|
by: Jeff_Relf |
last post by:
Hi Tom, You showed: <<
private const string PHONE_LIST =
"495.1000__424.1111___(206)564-5555_1.800.325.3333";
static void Main( string args ) {
foreach (string phoneNumber in Regex.Split...
|
by: Kevin Burton |
last post by:
I am sure this has been asked enough to warrant an FAQ but I could not find
it.
Does anyone have some code and maybe an XSLT stylesheet that would allow me
to transform an XML string to a...
|
by: Jon Pope |
last post by:
I've got an XML stream <node1><node2></node2></node1> which I would like to
"pretty" up so it looks like the following:
<node1>
<node2>
</node2>
</node1>
I've investigated the...
|
by: Johnny Jörgensen |
last post by:
I've got a serious problem. I've got Visual Studio 2005 installed, and of
course I'm using the Pretty Listing formatting function. When I start up VS,
everything is fine, but after a while (which...
|
by: Pretty nice site, wants to see much more on it!,Pr |
last post by:
Pretty nice site, wants to see much more on it!,Pretty nice site, wants to see much more on it!,Pretty nice site, wants to see much more on it!
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
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...
|
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,...
|
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$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |