|
No, the session and application objects are specific to each application.
If the two applications are closely related you could host them underneath one web application, then you could share the session/application objects between them.
James
Sonork ID: 100.11138 - Hasaki
"Smile your little smile, take some tea with me awhile.
And every day we'll turn another page.
Behind our glass we'll sit and look at our ever-open book,
One brown mouse sitting in a cage."
"One Brown Mouse" from Heavy Horses, Jethro Tull 1978
|
|
|
|
|
Thanks for your reply~
but the two application is written in different language, how can I put them into one application? what I can do is put them in the same solution,however,that doesn't work.
|
|
|
|
|
Its a bit tricky to word but hopefully you'll at least get the gist of what I'm saying
When I'm talking about applications I'm referring to an application on the webserver. Each application uses the same application object and each session in that application is accessable to all directories underneath it.
So what you could do is to create one application, then place both of your asp.net projects underneath that.
\MyApplicationRoot<br />
Site1<br />
Site2
You can only do this though if you can have them both residing at the same entry point (MyApplicationRoot); otherwise you will have to find some other way (Web Services?).
FYI, ASP.NET restricts you to one language per page, not per project so you can have each page in your application using a different language if you chose :-P I'm not sure if VS.NET supports that behavior though.
James
Sonork ID: 100.11138 - Hasaki
"Smile your little smile, take some tea with me awhile.
And every day we'll turn another page.
Behind our glass we'll sit and look at our ever-open book,
One brown mouse sitting in a cage."
"One Brown Mouse" from Heavy Horses, Jethro Tull 1978
|
|
|
|
|
I'm creating an ASP.NET application where I want to include a number of RadioButtonList controls. The exact number of these controls is determined at runtime; therefore, I can't just write tags for them in the ASP.NET page. When I experimented by adding a control to the page's Controls property at runtime, I got an error message from ASP.NET saying that the control must be declared with the "runat=server" attribute.
Is there a way to create and display controls without using tags in ASP.NET, or is it unavoidable?
"What would this country be without this great land of ours?" -Ronald Reagan
|
|
|
|
|
Yes!
Put any control container on the page (label, panel, table cell, etc). Lets call it lHolder
the lines
YourCustomControl ycc = new YourCustomControl(bla);
ycc.Width = (Unit)500;
lHolder.Controls.Add(ycc); Will add YourCustomControl to the inside of lHolder. So if you wanted a dynamic list of items in your custom control settable by a property or function, you just do the same thing in the correct event of your control, using the data passed in as a template for generation.
// Rock
|
|
|
|
|
Hey, thanks a lot. I tried it, using a Button within a Label, and it worked! This was to test your concept. For the application I'm working on I found out about the Repeater control.
"What would this country be without this great land of our?" -Ronald Reagan
|
|
|
|
|
I am having a problem with a server side component (DLL) i am developing for an ASP page.
Im not really sure what the problem is. I tested the code in a vbproject and it worked perfectly but
when I try it in an ASP page, it doesnt work.
**************************************************************
My ASP page looks like this
<%@ Language=VBScript %>
<%
dim obj
set obj = server.CreateObject("Danny.Lopez")
Response.Write(obj.GetTeam(1))
%>
***************************************************************
This is the error im getting
Error Type:
Danny (0x800A01A8)
Object required
/Project1/Registration.asp, line 10
***************************************************************
This is some of the the code in my ActiveX DLL
Public Function GetTeam(TeamID As Integer) As String
Dim sql As String
sql = "SELECT Name FROM Teams WHERE TeamID = " & TeamID
GetTeam = ExecuteQuery(sql, True)(0)
End Function
Private Function ExecuteQuery(sql As String, Optional CloseConnection As Boolean = False) As ADODB.Recordset
Dim state As Integer
state = DataEnvironment1.Connection1.state
If state = 0 Then
DataEnvironment1.Connection1.Open
End If
Dim rs As ADODB.Recordset
Set rs = DataEnvironment1.Connection1.Execute(sql)
Set ExecuteQuery = rs
If state = 0 And Not CloseConnection Then
DataEnvironment1.Connection1.Close
End If
End Function
***************************************************************
To make sure the DLL worked at all in the ASP page I created a simple function that takes a
string and returns it.
Public Function Repeat(str As String) As String
Repeat = str
End Function
This function worked in an ASP pef
***************************************************************
I feel the error has to do with the data types im passing to my DLL, but im not sure.
Please Help!!!!
Thanks Danny
|
|
|
|
|
The error is in ExecuteQuery
Probably DataEnvironment1.Connection1 = Nothing or DataEnvironment1 = Nothing
Try making a VB Project just for testing your DLL.
Crivo
Automated Credit Assessment
|
|
|
|
|
I have created a web control that has several input boxes. I have a client-side javascript function that adds the values of the input boxes. On the onblur event for the inputboxes it calls that function, but I get an error saying Object expected and its on the line of html onblur="totalAll()". If I put this all in one aspx page it works great. I have tried putting the script in the aspx file that has the web control, I've tried putting it in the web control. Nothing seems to work.
Sonork ID: 100.9944
ICQ: 519642
Hotmail: JoshuaJGuy@hotmail.com
|
|
|
|
|
I cannot view the .net controls after dragging them to my aspx page in design mode and selecting view in browser.
Building the appication does not help either. I think something is not setup correctly on my webserver.
Any ideas?
|
|
|
|
|
Hi. We've received some html pages that have been "translated " to Korean, Japanese and Chinese (two dialects). These pages (unfortunately created in Word!) do not diplay any of their characters properly.
It is my understanding that all of these languages can be correctly displayed using standard Windows operating systems if:
1 - the page's charset attribute is properly set using the content-type meta tag.
2 - The browser is set up to download and install any required language packs automatically.
I've heard that possibly Japanese characters need a Japanese OS?
|
|
|
|
|
Nope, I can see chinese text on the web, although I don't have chinese installed on my computer. So you 2 statements are totally right. When user comes to Japanese page for example, he will be prompted to download the Japanese characters and after that will be able to see the text with no problems
Philip Patrick
"Two beer or not two beer?" (Shakesbeer)
Web-site: www.saintopatrick.com
|
|
|
|
|
Hi,
I need to send emails for registered clients and i wanna know what happened with these e-mail. I mean: i need to attach a script or something else to the send emails and when the client receive the email an note (event datetime) is sent back to me, the same thing must happen when the client read and when he delete the email. Is there anyway ro do that?
Thank u very much,
Dirso.
|
|
|
|
|
Hmm, well, you can use some trick to know if your client read the e-mail.
First, make your e-mail HTML and not text, but you did already I think
Then somewhere in your the HTML body of e-mail you can use any tag that can go to another location, for example - LINK or IMG tag.
I'd prefer to use LINK. Then your LINK tag will look like this:
<LINK href="http://www.yourdomain.com/trackit.asp?customerid=20" rel=stylesheet>
What will happen? When he reads(opens) your e-mail, it will ask for file "trackit.asp" on your domain, and this request you can process and remember from customerid who it was
Philip Patrick
"Two beer or not two beer?" (Shakesbeer)
Web-site: www.saintopatrick.com
|
|
|
|
|
Philip Patrick wrote:
I'd prefer to use LINK. Then your LINK tag will look like this:
What's the functionality of a LINK tag???
Nish
Oh, I don't know why she's
leaving, or where she's gonna go
I guess she's got her reasons but I just don't wanna know
'Cos for 24 years I've been living next door to Alice
24 years just waitin' for a chance
To tell her how I feel and maybe get a second glance
Now I gotta get used to not living next door to Alice
|
|
|
|
|
Nish [BusterBoy] wrote:
What's the functionality of a LINK tag???
It generally used for style sheet files, e.g. instead of placing a STYLE tag in your page, you can save all STYLE tag contents inside separate file and use a LINK tag to "link" to this file like this:
<LINK href="mystylesheet.css" rel=stylesheet>
Actually there are more functionality of this tag, changing the rel parameter but... I coudn't figured what else to do with it
Philip Patrick
"Two beer or not two beer?" (Shakesbeer)
Web-site: www.saintopatrick.com
|
|
|
|
|
Hi,
Thank u very much for your attention. This helped me very much!! But i still need your help. Is there anyway (some trick) to know when the user deletes my email and/or if he forward it to anyone else (and who was this)?
Thank u very much,
Dirso
|
|
|
|
|
... At least I don't know such way
Philip Patrick
"Two beer or not two beer?" (Shakesbeer)
Web-site: www.saintopatrick.com
|
|
|
|
|
I just downloaded and printed the CSS Level 2 spec, then it occurred to me that it might not be supported by many (or any) browsers yet. How many users would I be likely to exclude if I built a website using it?
|
|
|
|
|
|
Amazing! The thing's 4 years old! But, since it's 338 pages, that info saves me a lot of reading Thanks...
|
|
|
|
|
I have an that loads up a pdf file. I would like to have a button on the page that will print out that pdf. Any ideas?
<marquee behavior="alternate" scrollamount ="1"> Joshua </marquee>
Joshua
Sonork ID: 100.9944
ICQ: 519642
Hotmail: JoshuaJGuy@hotmail.com
|
|
|
|
|
Got it. Alot easier than I was thinking. For anyone else who would like to know.
iframename.window.print() will open the print dialog, which for my iframe happens to be Acrobats printer dialog.
<marquee behavior="alternate" scrollamount="1"> Joshua
Joshua
Sonork ID: 100.9944
ICQ: 519642
Hotmail: JoshuaJGuy@hotmail.com
|
|
|
|
|
When asp.net web project is compiled session is expired.
Any way to prevent this? It may be a problem while updating web site since it will destroy currently active users session.
thanks,
Alper
|
|
|
|
|
Could someone tell me where to get an ASP script for file sharing?
A script where users could download/upload files.
I found some free scripts but none had a possibility to add description to a file. (There is something on www.OverApps.com but the part for file sharing doesn't work.)
Thanks!
|
|
|
|