Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. johnv20

    text/javascript version of Server.CreateObject for asp.net

    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...
  2. johnv20

    text/javascript version of Server.CreateObject for asp.net

    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...
  3. johnv20

    Detailsview image swap

    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...
  4. johnv20

    text/javascript version of Server.CreateObject for asp.net

    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");
  5. johnv20

    Detailsview image swap

    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...
  6. johnv20

    prevent access based on hostname

    Hi, does anyone if its possible to prevent read access to a SQL 2005 db based on the client hostname attaching..
  7. johnv20

    linear regression

    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
  8. johnv20

    RAID-1 - Converting from SAS 5/iR to Perc 5i Controller. How easy?

    why don't you just ghost the os & data to a separate location you can then rebuild & restore from the original image
  9. johnv20

    Net::Telnet keeps timing out waiting for command prompt

    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...
  10. johnv20

    C# telnet

    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....
  11. johnv20

    delete files using LWP

    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...
  12. johnv20

    delete files using LWP

    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 =...
  13. johnv20

    delete files using LWP

    Hi, I know this should be very simple but does anyone have any code which is used to delete a file over a url using LWP ?
  14. johnv20

    Drill down searching

    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...
  15. johnv20

    Drill down searching

    How do you know which value for column A should be picked ? Also can you post what you already have in order to aid in understanding the problem ?
  16. johnv20

    Generate directory listing from remote web server

    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...
  17. johnv20

    Stored Procedure Help Please

    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
  18. johnv20

    Problem with datetime to text string conversion.

    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...
  19. johnv20

    Summarised View Of Call Out Rota

    try select a.EmpID, a.CallDate, min(a.CallHr) AS ST, max(a.CallHr) as ED from TestTable a group by EmpID, CallDate
  20. johnv20

    data type conversion

    try select cast(NS.Numerator as varchar)

Part and Inventory Search

Back
Top