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 bkrike 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: *

  • Users: yahoo182
  • Content: Threads
  • Order by date
  1. yahoo182

    getting variable from web request

    Hi there, I am pretty new to asp.net can anyone tell me how extract a variable form a webrequest, say if i have http://www.domain.com/test.aspx?value1=abc&value2=xyz thanks! :)
  2. yahoo182

    returning an xml file from c#.net

    hi there, I want to return an xml document from a cs.net file. Can anyone point me to the standard .net libraries that I can use in order to do this? Much appriciated, :)
  3. yahoo182

    mysqldump over netowrk: copy table instead of entire network

    Hi there, mysqldump over network is working just fine like the following. mysqldump -ukzu -p jokes | mysql -h 192.168.1.190 -ukzu -p jokes I was wondering how I would copy a table in "jokes" instead of the whole db. Say if my table name was named "people" in the jokes table. Thanks! :)
  4. yahoo182

    connect to sql server form aspx

    Hi there, in the following code, I am trying to connect to my sql server from C# aspx code. However, when I run it, i seem to get the following error. In my sql server security/login setting, I have testuser to access the Northwind db and permit db role as public. any sort of input is...
  5. yahoo182

    empty object or column names error

    Hi there, I have a c sharp file that reads in a text file and add the fields to my MYSQL server db. My table is defined as: "CREATE TABLE images(hotelID int, Name varchar(40), Caption varchar(20), URL varchar(100), Supplier varchar(20), Width int, Height int, ByteSize int, ThumbNailURL...
  6. yahoo182

    if exists function in MS SQL

    Hi there, I am currently porting a code form Mysql to MSSQL, In mysql the following sql statement works fine: "DROP TABLE IF EXISTS "+tableName but when I run it against MSSQL, they are saying that they dont allow an IF there: Does anyone know how I should go about implementing this? Thanks :)
  7. yahoo182

    command to output a specific line in a file

    Hi there, I know in Unix, the head command can be used to show the first few lines of a file. However, what if we want to show only a specific line of it. Say if we wanted to show line 5 of a file named test.txt, is there any command that does this? thanks!
  8. yahoo182

    using the split function but not splitting | char

    Hi there, I have a script that splits the fileds seperated by a special character. The code works fine when the character is , but does not when I have a textfile seperated by | My code is as follows. Can anyone give me some hints ? Thanks :) open(FILE, "test.txt") or die "$!"; my $string...
  9. yahoo182

    Code works in apache but not in IIS

    This works in apache but for some reason not in IIS6 (windows2003). I am using PHP4.* on both systems. I have tried the IP address instead of localhost but I still get the same reasult ..... any input will be much appriciated. Thanks! // establish db connection $dbcnx =...
  10. yahoo182

    host unknown when try to copy db over network

    Hi there, I am trying to do a db copy over a network using the following command mysqldump --opt db_name | mysql -h 'other_hostname' db_name but whatever I put in the 'other_host' part, whether it is an IP address or a valid domain name, I get unknown Mysql server host error. Another...
  11. yahoo182

    writing stream reader content to text file

    Hi I think I am pretty close, but basically I have a streamReader that reads the xml file StreamReader xmlStream = getXMLFromServer(url); while (xmlStream.Peek() != -1) { Console.WriteLine(reader.ReadLine()); } and what i need to do is to save this entire stream as a xml file in...
  12. yahoo182

    converting a serverxmlhttp jscript into c# desktop app

    Hi there, I need to convert the fllowing Jscript asp snipplet into a C# function, but I can't seem to find how I can create this serverxmlhttp object in my C# desktop app function. Any hlep is much appriciated var xmlhttp = Server.CreateObject("Msxml2.SERVERXMLHTTP.4.0"); \...
  13. yahoo182

    reading all files in a directory and storing their name in an array

    Hi there, What I am trying to do now is to read in a directory that contains about ~100 xml files and store their name into an dynamic ArrayList collection. Does anyone have a clue how I can do this is C# ? I am quite a newbie to this language. Thanks !
  14. yahoo182

    a simple xml question

    Hi there, I have a xml document that is passed from the server like so: xmldoc = getXMLFromServer(url); and I need to store the value of the deptAirp element into a string variable with JScript <info> <record> 23</record> <deptAirpt> LAS </deptAirp> </info> Thanks :)
  15. yahoo182

    trying to import a text file that has a non-standard encoding

    Hi there, I have written a applicaiton that reads in a text file and then parses each line to store a record in MySQL. I'm having problem with only this one file where when I open with notepad, there is no new line and instead the line breaker character is replaced with a number like 105788...
  16. yahoo182

    creating a variable in xsl

    Hi there, I am trying to loop through my xml file and create a variable "count" The code I have is <xsl:for-each select="hotel/images/image"> <a href="javascript:void(0);" onClick="slideshow('slideshow.php?id=4110&count=count')" target="_blank"> <img src="{ThumbnailURL}" border="0"/> </a>...
  17. yahoo182

    link a css stylesheet to xsl output

    Hi there I have the following code and this is part of my xsl output. However, I get an error saying that the </head> tag is not closed. Do you know how I would like a external css to my xslt output? <head> <LINK rel="stylesheet" href="main.css" type="text/css"> </head>
  18. yahoo182

    showing xml value in a JS function

    Hi there, I need to show an XML element value in a javascript function like so. function CreateWindow() { myWindow = window.open("", "tinyWindow", 'width=600,height=500'); myWindow.document.title="<xsl:valueof select="hotel/Name"/>"; } But this does not seem to work. I have also tried...
  19. yahoo182

    opening a new pop up window

    Hi there, I have a main HTML file, and what I am trying to do is to have a link, and when this link is clicked on, a new pop up window will jump up with the code that is defined in my main HTML window. Any help is much appriciated. Thanks :)
  20. yahoo182

    Microsoft.Data.Odbc gives me error

    Hi there, I am able to sccessfully open a connection to MySql db. but when I try to execute the following code, I get an error string tableName="images"; OdbcConnection MyConnection = new OdbcConnection(MyConString); MyConnection.Open(); OdbcCommand MyCommand = new OdbcCommand("DROP TABLE IF...

Part and Inventory Search

Back
Top