Your full service technology partner! 
-Collapse +Expand
ASP Classic
Search ASP Classic Group:

-Collapse +Expand ASP Classic Store

Prestwood eMagazine

June Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyASP Classic Coding Board   Print This    All Groups  

ASP Classic Coding Unanswered Threads


2 Threads:

Thread 2 of 2
Thread Starter  

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
20 years ago
Nothing New Since Your Last Visit

Thread 1 of 2
Thread Starter  

Best way to add controls at runtime.
Can anybody describe the best way to add controls to a web page using 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
21 years ago
Nothing New Since Your Last Visit
Sales Website: Or visit our legacy sales site:

©1995-2023 Prestwood IT Solutions.   [Security & Privacy]