473,513 Members | 2,263 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Declare int in codebehind and use it in ascx file

2 New Member
I'm writing web application using ASP.NET 1.1 with C#...

What I want to use is to declare one variable, in this case integer in codebehind and be able to retrieve it through <% ... %> tag in ascx page. How do you do this?

Aparently I can't find info on this anywhere on the net and I've been searching for two days now...

thanks in advance

PS. I know that I probably should have written all my code in codebehind but I decided not to and I really need this problem solved right now.
Jul 8 '07 #1
1 1248
kenobewan
4,871 Recognized Expert Specialist
Welcome to TSDN. Why don't you just assign the value in the codebehind too?
Jul 8 '07 #2

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

Similar topics

0
622
by: Colin | last post by:
Hi there, I really need your help on this. I'm trying to learn to using the VS.2003 to create a User Control. In my aspx code has no problem to use the property "grossWaye" that has "register" in...
2
2471
by: Francisco Carvalho | last post by:
I have created a user control that gets loaded by a page. The user control has a codebehind, but when I change the code on the codebehind, it never runs. If on the other hand a run the same code...
1
3364
by: rodrigo | last post by:
This is what I am doing public class GridCustomPaging : System.Web.UI.Page { protected System.Web.UI.WebControls.DataGrid DgSearch;
5
3202
by: news.microsoft.com | last post by:
Getting really frustrated, I've been trying for 6 hours now! Got this very simple web app having a main .aspx page which has a user control (added with the Register directive) and the...
0
2029
by: M K | last post by:
Okay, here is my message: The base class includes the field 'Preview1', but its type (ICUser.uCtrlPreview) is not compatible with the type of control (ASP.previewImg_ascx). What I am trying to...
2
1960
by: N. Demos | last post by:
I have a user control with code behind of which two instances are created/declared in my aspx page. The aspx page has code behind also, as I need to access methods of the usercontrols on page...
0
1518
by: N. Demos | last post by:
Hello, I have a custom usercontrol, of which I have two instances of in my aspx page. Both the usercontrol and page have codebehind. In the page codebehind, I want a member variable for each...
5
979
by: DC | last post by:
Hi, with ASP 1.1 we use "satellite" Projects to develop Usercontrols. We then copy only the .ascx and the .dll to the actual webproject. Trying to migrate such a project to 2.0 does not work...
2
4017
by: newjazzharmony | last post by:
I have included a namespace in the "using" statements at the top of the codebehind page for an ascx page (user control). How can I access the objects in this namespace from the ascx page itself?...
0
7171
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
7388
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,...
1
7114
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...
1
5098
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
4751
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
3240
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...
0
3230
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1607
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
807
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.