473,388 Members | 1,956 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,388 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 1061
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
0
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...
0
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...

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.