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

Error,unable to invoke the methods of one WebForm within another in VS2005

30
hi frenz,

I'm working in VisualStudio 2005 and am trying to create an instance of a WebForm2 within WebForm1, to call the methods of WebForm2. I was able to do the same stuff in VS2003. but in VS2005am stuck.

using(default1 obj=new default1)
{
obj.method1();
......
}

I'm getting the following error,
default1 is not found in this context

Pls, i need some help on this and its urgent.

Cheers,
jai
Mar 13 '07 #1
2 863
jai80
30
hi frenz,

in continuation with my previous posting,...

b'coz in a web application, http being a stateless protocol, invoking the methods written in another form is not possible !!?. so class file can be used for this purpose. Correct me if am wrong.

Cheers,
jai
Mar 13 '07 #2
kenobewan
4,871 Expert 4TB
I think of invoking in relation to the ability to call methods in the owning ASP.NET Page object via client side JavaScript. For what you are trying to achieve, I always use a class.
Mar 14 '07 #3

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

Similar topics

0
by: Jagdeesh | last post by:
Hai Colleagues, I am using Tomcat 4.1.24 and JDK 1.4.0_03 in my winXP machine. I've transferred a set of folders(containing jsp files) into tomcat's webapps directory(to /webapps/bob ,...
4
by: VM | last post by:
In the thread, I create a tableX and fill it with data. When I set the grid's source to this tableX, I get a compiler error "Controls created on one thread cannot be parented to a control on a...
5
by: Brian Conway | last post by:
Can anyone help on this error? I can't find anything on it and not sure what it means Server was unable to process request. --> Requested registry access is not allowed. This error happens...
12
by: Jose Fernandez | last post by:
Hello. I'm building a web service and I get this error. NEWS.News.CoverNews(string)': not all code paths return a value This is the WebMethod public SqlDataReader CoverNews(string Sport)...
2
by: Jerry Tovar | last post by:
I am using .net 2003. I am trying to create a C# ASP.Net webform. When I attempt to create a new ASP.Net project and place a label on my webform, build it and run the webform, I get the following...
4
by: JackBlack | last post by:
Hi, all! Need a little help tracking down a runtime error problem. I'm getting this error: "Unable to cast object of type 'myStruct' to type 'myStruct'... but the two types are identical! I...
3
by: David++ | last post by:
Hi folks, I have built a VS2005 project which includes a C# Web Service, C# Windows Forms app (which uses the Web Service), and a C# PocketPC app (which also uses the web service). When I run...
1
by: delusion7 | last post by:
Trying to create a table and insert records from a webform and I keep getting this message: "Successfully created the registration table. Unable to execute the query. Error code...
4
by: S.Tedeschi | last post by:
Hi all guru, for sure I'm too old for a bunch of no-sleep-nights. M$' drivin' me nut. Switching my ASP.NET 1.1 apps to 2.0 has made me tryin' for several days with no success. -My IIS5.1 (Xp...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.