|
Using WEB forms I would like to introduce the control that generates the "INPUT TYPE=”file”...", wich let me to see a FileDialog to upload local data to the server. However I do not find this control in the HTML toolbox. Does it mean I should introduce this control manually? i.e. not using the design WEB Forms??
Best regards
|
|
|
|
|
Hi all...
I have an .html file that should run an .exe file
that is located where the .html file is located.
I tried in PerlScript like this:
<SCRIPT language="PerlScript" runat="server">
sub MyButton1_onClick
{
system("MyFile.exe arg1 arg2");
}
</SCRIPT
And my Internet Explorer gets stuck...
Please
ASAP
|
|
|
|
|
|
The .exe file is a cosole application that does nothing exept of a print screen...
but i tried to run "notepad.exe" and it works.
do you have any idea on how to run a console application ??
BTW:
I know 2 commands to run an .exe in perl:
system() and exec();
---
the system() returns the application exit code,
so it needs that the application will exit
[there for, the PerlScript waits for the system() tio finisih];
the other one (exec()),
it runs the application in another thread,
there for, do not return the exit code.
there for, the PErlScript continues.
*************
Still needs help
|
|
|
|
|
Well, i got a laptop that's decent.
It's my new home.
What do I do with my ole desktop?
It's a win2000 p3(maybe 2) 600MHz ish machine.
Well, i already know i want to use it as a webserver
for reporting.
What's your vote?
1) linux+apache route?
2) use iis?
I'm familiar with php, but wouldn't mind messing with asp.net
Is an older type box like this ok for asp.net?
Not interested in regular asp.
Haven't messed with installing linux, etc.
Can i find a free linux that lives on top of win2k?
Thanks for any pointers!
...Steve
|
|
|
|
|
|
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?
|
|
|
|