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 TouchToneTommy 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. Slonoma

    Get Bytes Sent to Page

    Thought I should throw the quick and easy code in there, so here you go: protected void Page_Load(object sender, EventArgs e) { byte[] rawPDF = new byte[Request.InputStream.Length]; string path = @"C:/testPDF.pdf"; FileStream textFilestream = new...
  2. Slonoma

    Get Bytes Sent to Page

    I was able to find this object: Request.InputStream. Thanks for your help guys! The trouble with programmers is that they get high on their own supply. -Dimandja
  3. Slonoma

    Get Bytes Sent to Page

    Once I get a reference to it I should be fine, I have been working with reading and writing these PDFs as BinaryStreams from files and databases(cool stuff, I might add). So now I just need to know how to reference the byte array being sent to the page. The trouble with programmers is that...
  4. Slonoma

    Get Bytes Sent to Page

    You had to ask.... :) We have dynamic PDFs being rendered in a page. The user will enter/change data in the PDF fields. When the user clicks the 'Submit' button on the PDF page itself, the PDF is sending itself as a byte array to the specified page. And that is where I stand - trying to...
  5. Slonoma

    Get Bytes Sent to Page

    Hi All, I am trying to retrieve the bytes sent to a page (probably use a BinaryReader). What is the easiest way to do this? I'm assuming there is some property in the Page object in which I can read from - but I don't know where to find it. I am using VS2005 .NET 2.0 C#. Thanks! Slo-No...
  6. Slonoma

    Stream Text File

    I would think that the default setting for .txt in IIS would be notepad. I went ahead and added it anyway, but to no avail. Thanks for the suggestion though. Slo-No The trouble with programmers is that they get high on their own supply. -Dimandja
  7. Slonoma

    Stream Text File

    Hi all. For a C# webapp, I'm having a hard time streaming a text file. Heres my code: DateTime fileDate = (DateTime) Session["ExportFileDate"]; Response.Clear(); Response.Buffer= true; Response.ContentType = "text/plain"; Response.Charset = ""; this.EnableViewState =...
  8. Slonoma

    Response.Redirect Question

    Worked great! Thanks! The trouble with programmers is that they get high on their own supply. -Dimandja
  9. Slonoma

    Response.Redirect Question

    Hi All, Can anyone tell me how to redirect to a page that is in a directory above the current directory? For example: Currently at /pages/thisfolder/thatfile.aspx want to redirect to /pages/thisfile.aspx Thanks! Slo-No The trouble with programmers is that they get high on their own...
  10. Slonoma

    RowFilter/DataGrid Question

    Thanks obislavu, It works great. I did have to some tweaking. the field contains items like "Nike Brands" as well as "Nike Brands Contact" and can combine them like "Nike Brands Contact, Nike Brands". So if I looked for "Nike Brands", it would return everything with "Nike Brands" as well as...
  11. Slonoma

    RowFilter/DataGrid Question

    Hi all, I am displaying a report using a DataGrid. I am using a RowFilter to get only the records I need to display. One of the fields, contains 3 different string values. I need to display that record based on if ANY of those values are equal to what the user selected from a dropdown...
  12. Slonoma

    smtp problem

    Thanks for the help. Turns out if I sent an RSET command before the MAIL command it works... But the server returns that it does not know what RSET is. I hate computers. The trouble with programmers is that they get high on their own supply. -Dimandja
  13. Slonoma

    smtp problem

    Hi all, I am writing a simple mail program with C++. Here is ths code: //MAIL command to server write(sock, "MAIL FROM:", 10); write(sock, this->sender.c_str(), sizeof(this->sender.c_str())); write(sock, "\n", 1); And here is the error I get when I run it: To Server: MAIL...
  14. Slonoma

    Search Table Question

    Thanks for the tips everyone! I'm going to throw the AT END statement in there and see if that takes care of it. Sorry to cause such a commotion! Slo-No The trouble with programmers is that they get high on their own supply. -Dimandja
  15. Slonoma

    Search Table Question

    Thanks for the quick reply Frederico, I'm pretty new to COBOL and have never used a SEARCH table command. Does the AT END command go where NEXT SENTENCE is? Thanks again, Slo-No The trouble with programmers is that they get high on their own supply. -Dimandja
  16. Slonoma

    Search Table Question

    here is the code 845500 SET MFWR-INDX TO 1. 845550 SEARCH MFWR-WHSE-COUNTRY-TBL 845600 WHEN (WHSE-WHS = MFWR-CNTRY-WHS (MFWR-INDX)) 845650 AND (WHSE-BAY = MFWR-CNTRY-BAY (MFWR-INDX)) 845700 AND (WHSE-ROW =...
  17. Slonoma

    Search Table Question

    Hey All, When you do a search table, what is returned if the record you are looking for is not found? Slo-No The trouble with programmers is that they get high on their own supply. -Dimandja
  18. Slonoma

    The Da Vinci Code

    Jeff, I agree, this is a good book regardless of what you're into. But the Vatican worrying about this publication? I don't think so. The book is a lot of propaganda surrounding a little bit of truth... I think the Catholic church has more important things to worry about, like priests and...
  19. Slonoma

    Union query

    In your UNION all statement, label each table like this: select field1, field2, field3, 'Table 1' from table1 UNION ALL select field 1, field2, field3, 'Table 2' from table2 This will allow you to differentiate which table each record came from.... then you can do your count based upon that.
  20. Slonoma

    Pass Database UserId,Password

    I'm looking into the same thing... Oracle and CR9. Anyone have an answer yet? Thanks, Slo-No

Part and Inventory Search

Back
Top