I.T. Discussion Community!
-Collapse +Expand
ASP Classic
Search ASP Classic Group:

Advanced
-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  

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
16 years ago
Nothing New Since Your Last Visit
2831
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
17 years ago
Nothing New Since Your Last Visit
4021
Hits
Follow PrestwoodBoards on: 


©1995-2019 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech