ASP Classic Coding Unanswered Threads

  


2 Threads:


Thread 2 of 2
Thread Starter  

aka51
Display image
I am attempting to display an image that is stored in an access Database as an OLE Object, the code is as follows but when it rum it shows garbage caracters to the screen , , , <% , , 'Step 2: grab the picture from the database, Dim objConn, objRS, strSQL, strSQL = "SELECT image FROM test WHERE ID = 1 ;", , Set objConn = Server.CreateObject("ADODB.Connection"), objConn.Open "DSN=budget_demo", , Set objRS = Server.CreateObject("ADODB.Recordset"), objRS.Open strSQL, objConn , , %>, , , , <% , 'Step 3: Set the ContentType to image/jpg, Response.ContentType = "image/JPEG", , , 'Step 4: Use Response.BinaryWrite to output the image, Response.BinaryWrite objRS("Image"), , //Response.BinaryWrite objRS("image"), %>, , , , <%, 'Clean up..., objRS.Close, Set objRS = Nothing, , objConn.Close, Set objConn = Nothing, %>
Posted to MB Topic: ASP Classic Coding
1/2/2003
Nothing New Since Your Last Visit
2898
Hits

Thread 1 of 2
Thread Starter  

cheddar
Best way to add controls at runtime.
Can anybody describe the best way to add controls to a web page using asp.net at runtime? I have seen methods that use placeholders and some that do not. I am planning on adding an unknown number of different controls at runtime. on PostBack I will need to be able to validate the entries in those fields and further process the data. , , Thanks
3/30/2002
Nothing New Since Your Last Visit
4139
Hits
www.prestwood.com For service: 916-726-5675
or support@prestwood.com
Copyright (C) Prestwood IT Solutions.
All Rights Reserved.
Printed 5/30/2020