|
I'd agree, the machine seems fine for experimental ASP.NET efforts.
|
|
|
|
|
Thanks!
i guess free is an important quality here...
i have vs.net cheap from a ms friend,
but it ain't goin on my ole work desktop.
Am i apache/php bound? Or can i get asp.net free somehow?
(legally of course.)
Thanks again!
...Steve
|
|
|
|
|
The framework is free for download. Your already running W2K so you have IIS.
|
|
|
|
|
Steve Hazel wrote:
Am i apache/php bound? Or can i get asp.net free somehow?
(legally of course.)
As mark has already said, you have no problems with the server software: IIS ships with Win2k, and the ASP.NET runtime installs with the .NET Framework. If you have VS.NET (or one of the free IDEs), then you're set
--
Ian Darling
"The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
|
|
|
|
|
Thanks again Ian n Mark.
So win2000's free IIS and the regular ole .net runtime will give me
the whole enchilada to serve asp.net pages, eh?
Suhhweet.
And so i don't even really NEED vs.net, right?
Just code up some html and aspx in a text editor and I'm good to go, right?
Thanks YET again
...Steve
|
|
|
|
|
Hmmm <thinking>.......
That sounds about right!
Gotta try that out!
|
|
|
|
|
Do I need some kind of license from Microsoft to sell a product that uses an Access database?
With for example MySQL and CodeBase you can buy software licenses for a pretty small amount of money. But what about Access?
|
|
|
|
|
I struck a dead end. I am looking for an elegant replacement for the ASP.NET DateTime.Now.ToString("r")); method. It returns an RSS date in the right format required by the RSS 2.0 specification.
The format is as follows: Thu, 11 Dec 2003 05:00:00 GMT
Does any one know of such a function in ASP/VBScript?
If all fails, I would need to strip the date with DatePart ...
Thanks in advance.
|
|
|
|
|
Is it impossible to specify a table that spans the whole screen? Seems to me that the only browser that really accepts tables specified with height in a percentage is Internet Explorer.. it appears different in Netscape and Opera........
Am i correct?
= = = = = = = = = = = = =
Kim Amunsen
Norwegean University of Technology & Science
Major: Artificial Intelligence
|
|
|
|
|
You may be running into the problem that in more standards-compliant browsers, the height of the <body> element may not be the height of the viewable page area. Try adding html,body { height: 100% } to your stylesheet.
- Mike
|
|
|
|
|
Is there possible for me to reach the Page-object of an another webform that exists in an another frame?
And how do I refresh a page in an another frame by using Response.Redirect(..)?
= = = = = = = = = = = = =
Kim Amunsen
Norwegean University of Technology & Science
Major: Artificial Intelligence
|
|
|
|
|
kimamundsen wrote:
Is there possible for me to reach the Page-object of an another webform that exists in an another frame?
With great difficulty. You'd have to be rendering both pages at the same time. In ASP.NET what happens is that a request arrives at the server and the appropriate page is instantiated, your code does all it needs to and the page is transmitted to the client and destroyed. The server has no knowledge of any pages other than the ones that it is currently processing. From a user's point of view he/she may be working on the same page but to the server they are all just requests to generate new pages - It doesn't see them as the same page.
kimamundsen wrote:
And how do I refresh a page in an another frame by using Response.Redirect(..)?
You'd be better looking for a javaScript solution to that.
Sorry that I have not been much help.
--Colin Mackay--
"In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown)
Enumerators in .NET: See how to customise foreach loops with C#
|
|
|
|
|
I know how to prevent the context menu from showing up but is there a way to just prevent a view source. From the context menu and the view menu?
|
|
|
|
|
No.
Even if you could, your page is stored on the client machine in the temporary internet folders. Even if you found a way to stop that, the user could simply save the file to their disk or leech it.
regards,
Paul Watson
Bluegrass
South Africa
Brian Welsch wrote:
"blah blah blah, maybe a potato?" while translating my Afrikaans.
Crikey! ain't life grand?
Einstein says...
|
|
|
|
|
Thanks Paul. As with anything there would always be a way around it. I was only looking for a way to prevent lesser beings from easly viewing the source.
|
|
|
|
|
I am trying to create a 3 tiered set of look-up field. I have 3 tables that call to Client - Project and Work-Order Tables. Client is just my client name, project has client number and project number and project description, then Work-Order refers to the project-number ID and has a workorder description field.
I want to be able to select in listbox 1 my client, then have listbox 2 be filtered with only projects that have that clients ID, then the same with the third listbox it will return only workorders that contain the ID for the item selected in the second list box.
Here is my rough layout for my JScript/ASP Data backend.
Clnt_Sel lists Clnt_ID and Clnt_Desc
Proj_Sel lists Clnt_Lnk, Proj_ID and Proj_Desc
WO_Sel lists Proj_Lnk, WO_ID and WO_Desc
Your insights would be greatly appreciated!! Thanks
David E.Wright
URS Corporation, Denver Downtown Operations
|
|
|
|
|
ok here's a quick demo of what I think you want to achieve. This example should be fairly easy to make database driven (just create the javascript arrays through the backend). If you need any more advice with this then just give me a shout.
note: I have not tested this in NS, but it should be pretty straighforward to update (don't have time right now to do a cross-browser version).
ps: sorry for the porky code
<body onload="init();">
<script language="Javascript">
function Client(clientID, clientName)
{
this.id = clientID;
this.name = clientName;
}
function Project(projectID, projectName, clientID)
{
this.id = projectID;
this.name = projectName;
this.clientID = clientID;
}
function Work(workID, projectID, workDescription)
{
this.id = workID;
this.projectID = projectID;
this.description = workDescription;
}
var arrClients = new Array();
var arrProjects = new Array();
var arrWork = new Array();
arrClients[0] = new Client(1, 'Company abc');
arrClients[1] = new Client(2, 'XYZ Ltd.');
arrProjects[0] = new Project(1, 'Website', 1);
arrProjects[1] = new Project(2, 'Intranet', 1);
arrProjects[2] = new Project(3, 'Report viewer', 2);
arrProjects[3] = new Project(4, 'Spreadsheet generator', 2);
arrWork[0] = new Work(1, 1, 'Database Design & Implementation');
arrWork[1] = new Work(2, 1, 'HTML Templates draft');
arrWork[2] = new Work(3, 2, 'Implement NTFS security');
arrWork[3] = new Work(4, 3, 'Implement Crystal reports functionality');
arrWork[4] = new Work(5, 3, 'Create graphing module');
arrWork[5] = new Work(6, 4, 'Submit for final budget approval');
function init()
{
frmLists.sClient.options.length = 0;
for(var i = 0; i < arrClients.length; i++)
{
frmLists.sClient.options.length += 1;
frmLists.sClient.options[i].value = arrClients[i].id;
frmLists.sClient.options[i].text = arrClients[i].name;
}
updateProjects();
}
function updateProjects()
{
var clientID;
var idx = 0;
clientID = arrClients[frmLists.sClient.selectedIndex].id;
frmLists.sProject.options.length = 0;
for(var i = 0; i < arrProjects.length; i++)
{
if(arrProjects[i].clientID == clientID)
{
frmLists.sProject.options.length += 1;
frmLists.sProject.options[idx].value = arrProjects[i].id;
frmLists.sProject.options[idx].text = arrProjects[i].name;
if(idx == 0)
frmLists.sProject.options[idx].selected = true;
idx++;
}
}
updateWork();
}
function updateWork()
{
var projectID;
var idx = 0;
projectID = frmLists.sProject.options[frmLists.sProject.selectedIndex].value;
frmLists.sWork.options.length = 0;
for(var i = 0; i < arrWork.length; i++)
{
if(arrWork[i].projectID == projectID)
{
frmLists.sWork.options.length += 1;
frmLists.sWork.options[idx].value = arrWork[i].id;
frmLists.sWork.options[idx].text = arrWork[i].description;
idx++;
}
}
}
</script>
<form name="frmLists" action="whatever.asp" method="post">
<select name="sClient" onchange="updateProjects();">
</select>
<br/>
<select name="sProject" onchange="updateWork();">
</select>
<br/>
<select name="sWork">
</select>
<br/>
</form>
</body>
|
|
|
|
|
Anyone out there know of any "fair" performance benchmarks comparing the like of ASP, ASP.NET, JSP, JServlets, etc? Trying to come up with some numbers for a presentation...
Thanks,
Jeremy Kimball
|
|
|
|
|
Does anybody know how to generate an RSS feed? As I understand it, the xml file generated is static. It is not a dynamic script. i.e., that it is generated once and then available for read by feeders. Is this true? Would I generate it each time a 'latest update' has occured? Does anyone have a sample script that generates RSS?
|
|
|
|
|
There is no rule that says the feed need be dynamic or static. Much like any other file available over the net it can be either. Depends on your requirements.
There are as many ways of making an RSS feed as there are ways to make a webpage.
Here are two methods; Create a valid RSS 2.0 document using XmlTextWriter and Google to RSS.
regards,
Paul Watson
Bluegrass
South Africa
Brian Welsch wrote:
"blah blah blah, maybe a potato?" while translating my Afrikaans.
Crikey! ain't life grand?
Einstein says...
|
|
|
|
|
Thanks,
If I was to make an RSS of the 'latest updates'. How would the dynamic rule work? When I first thought of it, it seemed like only when I press the RSS icon the file is generated - but that can't be true. It has to be generated before hand so that you can use feeders to read the data....
So when will be the right time to export the 'latest update' rss feed?
Thanks in advance.
|
|
|
|
|
You naturally don't want your RSS file being re-generated everytime someone hits it, rather you only want it re-generating on update to content on your website.
So I would put the RSS updater code in the same block as the code that saves/updates your website. That way the RSS is only updated when the site updates.
regards,
Paul Watson
Bluegrass
South Africa
Brian Welsch wrote:
"blah blah blah, maybe a potato?" while translating my Afrikaans.
Crikey! ain't life grand?
Einstein says...
|
|
|
|
|
Thanks, you have been lots of help. You have ensured my understanding.
Also, thank you for the link to the RSS article - I didn't notice it before.
I live to code.
|
|
|
|
|
Something doesn't sit right...
I noticed the RSS on codeproject and on other sites as well. It seems that it is not a static file, but instead it is generated on demand. The file is of '.asp' or '.aspx' extension. I figured it should be '.xml'. Am I wrong?
What is the prefered method by RSS feeders?
Also,
Weird thing - I can't view the source of the RSS page on codeproject.
|
|
|
|
|
I need to update a database table with the time the user logs out of my site/when their session ends.
I've been using a global.asa file with the following Session_OnEnd code, but it doesnt seem to be working for me........ can anybody help?
Sub Session_OnEnd
set conn = Server.CreateObject("ADODB.Connection")
conn.Open "DSN=....."
query = "UPDATE User_LogTime SET Logout_Time = "now()" WHERE SID="&Session.SessionID&"
conn.Execute(query)
conn.Close
set conn = Nothing
End Sub
|
|
|
|