Your correct object was created for asp rather than .net
However
1: no newer version exists
2: the code samples I can find all state that server.createobject methods should still work on .net, however this crashes out for me as server is undefined, i.e. I haven't got as far as even utilising...
Code is posted below as you can see this falls over at the very start of the execution.
The thing is if I create an ASP page using javascript then the code works no problem, unfortunately this is an unacceptable solution due to the amount of gridviews etc. that are contained within the site...
Not sure I understand you correctly so forgive me if you've already done this
The easy way to do this...
You need to add ImageBig to the page initially via the GUI same as you have for P1 etc..
Then either set the property of ImageBig to the P1 image or at page load use your code above i.e...
Hi,
does anyone know what the correct syntax is for Server.CreateObject in asp.net where the script language is javascript ?
When I try to make a call to this like below I get a Server is undefined error message
testobj = Server.CreateObject("some app");
why not just do it on the server side with an onclick event..
something on the lines of the code below should work..
initially make the BigImage not visible
if (!IsPostBack)
{
BigImage.Visible = false; //could also be set via the properties of Bigimage
}
then when the user clicks on...
Hi,
does anyone have a code example (or even just the equation used) to perform simple linear regression on a dataset where the output Y = M1X1 + M2X2 + C
Searching the web shows loads of calculators which will do this for you but not one example of the equation used to solve it
Hi,
I'm trying to use Net::Telnet to access a windows box, however the pgm keeps returning back an error "Timed out waiting for command prompt"
From my understanding I need to set the option_accept values Dont & Wont to an integer value, however I cannot figure out which value
Does anyone...
Hi,
I need to write a very simple app to use telnet to connect to a router & retrieve some mac address information - does anyone have any clue how to do this..
Sorry if this is very simple but I have no clue on how to go about this....
Yep - knew I wasn't sane when I allowed it.
But as far as I can understand it LWP does not allow a delete method anyway.
So.. does anyone have a quick piece of code which will allow me to use the PUT method for HTTP::Request.
I've been trying to implement following the instructions on CPAN...
Unfortunately no - FTP is not allowed on any of these web servers
Alternatively I have been trying to PUT a 0 byte file but cannot seem to get it to work any ideas ?
use LWP::UserAgent;
use HTTP::Request;
$request = HTTP::Request->new(PUT => 'http://myserver/mydir/file1.log');
$ua =...
Ok - you'll need ome way to store the choices made either in your code (preferably) or within the database structure itself.
Assuming you will store each selected value within the app code then the following sql should work
All it does is allow for up to 3 values to be passed & return the...
Hi,
I need to be able to generate a list of files from a virtual directory on a 2nd web server.
While the code below works fine for the local system
DirectoryInfo myDir = new DirectoryInfo(Server.MapPath(""));
If I try & utilise a path of http://server2/dirlist/ howvere I get an error...
Create a table with a InUse column
As the first step of the sp code check to see if this has a value of 0, if so then the sp is ok to run.
Next change the value to 1 to prevent anyone else being able to run the sp
Remember to change the value back to 0 at the end of the sp
you need to specifiy the length of the year string
DECLARE @finish_date datetime
DECLARE @last_month datetime
SET @last_month = DATEADD(mm,-1,GetDate())
SET @start_date = CONVERT(datetime,STR(MONTH(@last_month),2)+'/01/'+STR(YEAR(@last_month)),101)
IF MONTH(@last_month)<12
SET...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.