If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Convert asp button to response.write

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-21-07, 01:17
edx edx is offline
Registered User
 
Join Date: Aug 2005
Posts: 11
Exclamation Convert asp button to response.write

Hi there,

I am a newbie in asp field. Now i come to a situation where i need to generate a real time button when user click on a main button, this real time generated button will link to other pop up page called 'Print.asp', 2 values are needed to pass to the pop up page..

Here the code for button which is working:
************************************************** ****
<TD colspan="3" class="TextNormal"><input name="btnGenerate2" type="button" class="Button" value="PRINT TEST" onclick="window.open('Print.asp?PgNum=<%=PgNo%>&Ty pe=<%=request.form("reportType")%>')">
</TD>
************************************************** ****

Can someone please help me to convert it into a response.write format?It should be something like:
************************************************** ***
Response.write "<TD colspan='3' class='TextNormal'><input name='btnGenerate2' type='button' class='Button' value='PRINT TEST'....

************************************************** ****

I keep getting syntax error for the window.open portion where i totally dpnt have any ideas to convert it, please help...
Reply With Quote
  #2 (permalink)  
Old 06-21-07, 11:12
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
You don't have a semicolon in your call to window.open...

You can't call response.write in "real time". asp is server side...
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On