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

Runtime importing - please help.

Hi,

I currently have a .net page

default.aspx - as so:

<%@ Page Inherits="webmail.telnet_test" Src="./mail_code/telnet.cs"
Trace="true" Language="C#" %>
<html>
<head>
</he... etc

and the c# file

../mail_code/telnet.cs - as so:

// C# Document
using System;
using System.Text;
using System.IO;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net.Sockets;
using System.Web.UI;
using System.Collections;
using System.Text.RegularExpressions;
//using mail_parts;

namespace webmail
{
....

without any problems. But, what I'm desperatly trying to do - and there
must be a way (I hope) is to inlude another namespace, in a different
file at runtime - without any pre compiling. E.G. I want another file
called ./helper_files/special.cs (or some such) then I want to be able
to say using some_namespace, where some name_space is defined in
../helper_files/special.cs without being told The type or namespace name
'some_namespace' could not be found. Is this going to be possible?
Otherwise all my code for each .net aspx page will have to be in 1
physical file or precompiled! Can anyone help, or is it just the way
things will have to go?

Thanks

Ian

Jan 16 '06 #1
1 1006
anybody? please :-)
go****@ifdesign.co.uk wrote:
Hi,

I currently have a .net page

default.aspx - as so:

<%@ Page Inherits="webmail.telnet_test" Src="./mail_code/telnet.cs"
Trace="true" Language="C#" %>
<html>
<head>
</he... etc

and the c# file

./mail_code/telnet.cs - as so:

// C# Document
using System;
using System.Text;
using System.IO;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net.Sockets;
using System.Web.UI;
using System.Collections;
using System.Text.RegularExpressions;
//using mail_parts;

namespace webmail
{
...

without any problems. But, what I'm desperatly trying to do - and there
must be a way (I hope) is to inlude another namespace, in a different
file at runtime - without any pre compiling. E.G. I want another file
called ./helper_files/special.cs (or some such) then I want to be able
to say using some_namespace, where some name_space is defined in
./helper_files/special.cs without being told The type or namespace name
'some_namespace' could not be found. Is this going to be possible?
Otherwise all my code for each .net aspx page will have to be in 1
physical file or precompiled! Can anyone help, or is it just the way
things will have to go?

Thanks

Ian


Jan 17 '06 #2

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

Similar topics

7
by: Darren | last post by:
I have been attempting to create a reservation planning form in excel that imports Data from an Access database and inserts that information automaticly into the correct spreed sheet and the...
3
by: Mark | last post by:
All, As you can see below, I have had problems with inquisitive souls looking at data they shouldn't be. I though disabling the ability to create new databases using my workgroup would stop this...
5
by: dixie | last post by:
If I sent a user an empty database container - dB with no tables and I needed them to import their tables into it and one of their tables was a hidden table with the prefix Usys, is there any way...
7
by: Timothy Shih | last post by:
Hi, I am trying to figure out how to use unmanaged code using P/Invoke. I wrote a simple function which takes in 2 buffers (one a byte buffer, one a char buffer) and copies the contents of the byte...
0
by: google | last post by:
Hi, I currently have a .net page default.aspx - as so: <%@ Page Inherits="webmail.telnet_test" Src="./mail_code/telnet.cs" Trace="true" Language="C#" %> <html> <head>
8
by: SMcK | last post by:
I posted on this subject back a couple weeks ago and learned enough to know how much I don't know. I'm thinking I need to simplify and ask fewer questions. I've been creating Access databases...
8
by: gngui | last post by:
Hi, Please Please Please anyone out there, if you have a solution, i will highly appreciate as i have searched the internet for 5 days now with no hope. 1st, the versions i am using are Ms Access...
0
by: Mani Chandra | last post by:
--- On Wed, 13/2/08, Mani Chandra <mc_i2020@yahoo.co.inwrote: Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
2
repath
by: repath | last post by:
I tried the code with automation: For Each sheet In objWorkBook.sheets 'for each sheet in excel loop Debug.Print "Imported sheet is :"; sheet.Name DoCmd.TransferSpreadsheet acImport,...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...

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.