473,434 Members | 1,833 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,434 software developers and data experts.

call a protected sub directly?

I created a sub with the following definition:
Protected Sub cc_onClick(ByVal Sender As Object, ByVal e As EventArgs)
this handles some dynamicly created controls (onClick Events)
the object calling it is a link button.

On Not ispostback i want to call this sub. I know i can create a new sub to
do the same thing but it's here, why not use it?
Does someone know how?
thanks
kes
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
Nov 19 '05 #1
2 3710
WebBuilder451 <We***********@discussions.microsoft.com> ha scritto:
I created a sub with the following definition:
Protected Sub cc_onClick(ByVal Sender As Object, ByVal e As
EventArgs) this handles some dynamicly created controls (onClick
Events)
the object calling it is a link button.

On Not ispostback i want to call this sub. I know i can create a new
sub to do the same thing but it's here, why not use it?
Does someone know how?
thanks
kes


if not Page.IsPostBack then
cc_onClick(nothing,nothing)

--
AZ [Microsoft - .NET MVP]
Mia Home page: http://ciclismo.sitiasp.it
Asp.Net community: http://www.aspitalia.com
Il mio blog: http://blogs.aspitalia.com/az
Nov 19 '05 #2
thanks,
i didn't know you could do that.
I do have a followup question. I need to pass an arguement in to it. Is
there a way to do that?
thanks
kes
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
"Andrea Zani" wrote:
WebBuilder451 <We***********@discussions.microsoft.com> ha scritto:
I created a sub with the following definition:
Protected Sub cc_onClick(ByVal Sender As Object, ByVal e As
EventArgs) this handles some dynamicly created controls (onClick
Events)
the object calling it is a link button.

On Not ispostback i want to call this sub. I know i can create a new
sub to do the same thing but it's here, why not use it?
Does someone know how?
thanks
kes


if not Page.IsPostBack then
cc_onClick(nothing,nothing)

--
AZ [Microsoft - .NET MVP]
Mia Home page: http://ciclismo.sitiasp.it
Asp.Net community: http://www.aspitalia.com
Il mio blog: http://blogs.aspitalia.com/az

Nov 19 '05 #3

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

Similar topics

17
by: Asfand Yar Qazi | last post by:
Basically this: //file 'B.hh' class B { protected: void f() {} }; //file 'C.hh'
23
by: Fabian Müller | last post by:
Hi all, my question is as follows: If have a class X and a class Y derived from X. Constructor of X is X(param1, param2) . Constructor of Y is Y(param1, ..., param4) .
0
by: Pavel Stehule | last post by:
Hello Iam play with SRF function and found difference between behavior system function pg_stat_get_backend_idset and own function in plpgsql; aopk=> \df pg_stat_get_backend_idset Datový typ...
7
by: TT (Tom Tempelaere) | last post by:
Hi there The line marked *** doesn't compile. I wonder why the designers of C# decided to disallow this. Rationale? Are there plans to change this? This feature forces me to make things public...
2
by: Ric | last post by:
Hi, I need to call a function in my asp.net application from a vb.net windows application running on the same machine. Is this generally possible? How can this be realised? Thanks Ric
2
by: harishdixit1 | last post by:
Hello friends i developed a tollbar for Firefox browser. Now This toolbar contains a menu item. A web page will be opened by the user of the Toolbar. This Web page source code has included many .JS...
0
by: sck10 | last post by:
Hello, I sent this out before, but didn't receive any replies. I was also having problems with my reader. My question is how do you call protected void...
5
by: =?Utf-8?B?a21ybmVlZHNuZXRoZWxw?= | last post by:
I have the class structure shown below. When I compile I receive the following erros: 'B.B()' is inaccessible due to its protection level 'C.C()' is inaccessible due to its protection level I...
15
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, I met with a strange issue that derived class function can not access base class's protected member. Do you know why? Here is the error message and code. error C2248:...
11
by: Rahul | last post by:
Hi Everyone, While working with Java, i came across super() which passes values to base class constructor from derived class constructor. I was wondering if this could be implemented in c++ by...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
1
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...
0
isladogs
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...
0
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...
0
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...

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.