473,569 Members | 2,844 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I have a function inside of the .ascx file. How can I call it from another .ascx file

1 New Member
I am using different user controls in same page.
I have a function inside of the .ascx file. How can I call it from another .ascx file
Language C#
Nov 14 '06 #1
0 1199

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1549
by: Lily | last post by:
Hi all, Any help is greatly appreciated. I have two ascx called MyFirstAscx.ascx and MySecondAscx.ascx. These two are contained in MyPage.aspx I have a function in MySecondAscx.ascx called MySecondPageSub that I would like to call when a button in MyFirstAscx.ascx is clicked.
4
3504
by: George Durzi | last post by:
I created a simple user control which contains a hyperlink to link the user to a topic in a compiled help file. I named all my help topics to have the same name as the aspx they are for. So in the user control help.ascx's html, I have this: <a href='<%# GenerateHelpLink()%>' class="mischrefcontent2" id="hrfHelp" runat="server"...
2
7140
by: comp | last post by:
I have a user control inside an aspx page. I was able to create a Public property inside the ascx file and call it from the aspx but whatever I do, I can't find the way to cause an event from inside the ascx file to call any function/sub/property etc. The error I'm getting is "Reference to a non-shared member required an object reference".
6
2608
by: Martin Eyles | last post by:
Hi, I have a .aspx page which has a .ascx file included through the lines <%@ Register TagPrefix="aspcustom" TagName="menu" Src="Menu.ascx" %> and <aspcustom:menu id="Menu1" runat="server"></aspcustom:menu> both of these files have vb.net code behind. I am processing some information from a post back in the code behind for the
0
1454
by: yousuf | last post by:
I have a dataList that pulls from a database table - Im trying to do the normal Edit, Update, Delete, Cancel - on it. when I put the following inside a user control - .ascx file it dosn't work, but when I leave it in the Page, it works fine <script language="C#" runat="server"> void populateList(){ //prepare data adapter, connect...
8
3010
by: fernandezr | last post by:
I would like to use a user control as a template inside a repeater. Some of the fields in the control should be hidden depending on whether or not there is data. I'm still a ASP .Net newbie so the way I'm going about doing this might be a little off. I'd appreciate some help. Below is the code I have thus far but I'm not sure how to...
1
2696
by: ThazKool | last post by:
I am trying to get the name of the ascx file from inside a C# script tag inside the ascx file. I have looked through all the properties of the control, but I cannot find anything that gives some sort of path or name. Can anyone help? Thanks, ThazKool
3
4024
by: Bert | last post by:
Hi How can you call a function on a user control(.ascx) ? what is the syntax for this? thanks Bert
1
6101
by: Brad Baker | last post by:
I have created a usercontrol (ascx file) which contains a formview, inside of the formview I have an EditItemTemplate and an ItemTemplate. Both the EditItemTemplate and ItemTemplate have link buttons which call some code to changed the formview mode from Edit to ReadOnly or vice versa. When I run the code though and click the link buttons, the...
0
7695
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7922
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8119
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7668
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...
0
7964
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5509
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3653
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...
0
3637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1209
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.