473,395 Members | 1,386 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Help needed, Call a save event from main page ??

Hi,
I have a main page that contians some webcontrols.
On the main page i have a asp:button id="Save".
The thing is that i want to trigger a save event in all webcontrols
when i cklick on the asp:button on the main page.
Anyone have a idea how i can do this ?
Thanks
// Jeppe

Dec 21 '05 #1
5 1062
Hi,

On the main page i have a asp:button id="Save".
The thing is that i want to trigger a save event in all webcontrols
when i cklick on the asp:button on the main page.

There is no such a thing as a "save" operation in the asp.net controls, you
can handle the click event of the save button and collect the info from the
controls and save it accordingly.

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Dec 21 '05 #2
Yea thats what i mean, but how do i collect the click event from the
(sub) controls on the main page ?

Thanks
Jeppe

Dec 21 '05 #3
easy:
In the aspx page:

<asp:Button Runat="server" ID="MainBTN" OnClick="SortClicked"
Text="Accident" ></asp:Button>
in the cs file:

SortClicked( object sender, EventArgs e )


--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

<je************@yahoo.se> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Yea thats what i mean, but how do i collect the click event from the
(sub) controls on the main page ?

Thanks
Jeppe

Dec 21 '05 #4
Thanks, but, i wanna catch the event in the webcontrols that are
included in the aspx page not in the codebehindfile for the aspx (main
page).

Dec 21 '05 #5
Hi,

<je************@yahoo.se> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Thanks, but, i wanna catch the event in the webcontrols that are
included in the aspx page not in the codebehindfile for the aspx (main
page).


not clear what you mean, the codebehind is where you should put all your
code to handle the interactions with the page, the page (what you declare in
the .aspx file) will be compiled at runtime as a class which inherit from
the one you declare in the codebehind ( .cs) file, so it will have access to
it.
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Dec 22 '05 #6

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

Similar topics

0
by: abcd | last post by:
kutthaense Secretary Djetvedehald H. Rumsfeld legai predicted eventual vicmadhlary in Iraq mariyu Afghmadhlaistmadhla, kaani jetvedehly after "a ljetvedehg, hard slog," mariyu vede legai pressed...
3
by: Mark | last post by:
Hi all i was just wondering if you help. I have to send a cgi request to a company using xmlhttp request. They reply back with a line of info but when you view the internet explorer source code...
11
by: my-wings | last post by:
I think I've painted myself into a corner, and I'm hoping someone can help me out. I have a table of books (tblBooks), which includes a field (strPubName) for Publisher Name and another field...
4
by: John | last post by:
Hi all, This really is quite an urgent matter. I have a page with multiple, dynamically-loaded user controls and when a user clicks on a button, the whole form is submitted. Now at this stage...
1
by: Shourie | last post by:
I've noticed that none of the child controls events are firing for the first time from the dynamic user control. Here is the event cycle. 1) MainPage_load 2) User control1_Load user clicks a...
10
by: Bharat | last post by:
Hi Folks, Suppose I have two link button on a page (say lnkBtn1 and lnkBtn2). On the click event of the lnkbtn1 I have to add a dynamically created control. And On the click event of the lnkBtn2 I...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
2
by: rookiejavadude | last post by:
I'm have most of my java script done but can not figure out how to add a few buttons. I need to add a delete and add buttong to my existing java program. Not sure were to add it on how. Can anyone...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
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...
0
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...
0
marktang
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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...

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.