ASP Forum
passing asp recordset varriable to vbscipt
bhushan98 | Posted 10:38pm 27. March 2009 Server Time |

Hello Sir,

I am a newbie to asp development. I am having a problem for how to pass a asp recordset value to vbscript function.  

the code I tried is mentioned below :
**** Below function is having a varriable grs which is to be transferred to other vbscript function on the lost focus of an another textbox.
<%
function status()
set rs = server.CreateObject("adodb.recordset")
sql = "select sum(bill_amt)as grs, sum(tds) as gtds from firmdt where code="& session("code") &" and fy ='"& trim(session("fy")) & "';"
rs.Open SQL, objconn
response.write("Gross = " &  rs("grs") & "&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; T.D.S. = " & rs("gtds"))
grs=rs("grs")
end function
%>


*** text box calling vbscript function
<input type="text" name=txtgross id=txtgross size="20" onBlur="vbscript:clctax()"> </td> <tr>

****** Called vbscript function

<script language = "vbscript">
Function clctax()
dim bill
msgbox(form1.txtgross.value)
bill=cdbl(form1.txtgross.value)
msgbox("<% =grs %>")
if  (gros +  bill) > 20000 then
tax = (grs+bill) * (cdbl(form1.txttax.value)/100)
msgbox(tax)
end if
End Function
</script>
....


But the code is not working, kindly guide me to solve the problem

Thanks in advance.

lymanknap | Posted 8:36am 6. August 2010 Server Time |

3A5gmM  <a href="http://kdwezgciegzi.com/">kdwezgciegzi</a>, [url=http://fkyaecanyznp.com/]fkyaecanyznp[/url], [link=http://eyvkbhfjhooq.com/]eyvkbhfjhooq[/link], http://sabrwowxlera.com/
lymanknap | Posted 9:06am 8. August 2010 Server Time |

http://www.pinkcollarclub.net/businessinsurance.html business insurance 33234 http://www.tongfeng666.com/homeinsurance.htm insurance homeowner 812 http://www.pinkcollarclub.net/lifeinsurance.html ing life insurance buaqv http://www.arcataenglishcockers.com/ health insurance quotes 8-(((
lymanknap | Posted 12:46am 9. August 2010 Server Time |

http://www.mega1031.org/ homeownersinsurance hohh http://www.slotsguidance.com/ slots %DD http://www.getlifeinsurancequotes.net/ ny life insurance >:-OOO http://www.getautoinsurancerates.net/ auto insurance %]]
choonchan | Posted 2:47pm 15. August 2010 Server Time |

http://www.detroitcrushin.com/ order accutane online =PP http://www.randommadnessintorrance.com/accutane.html online accutane =( http://www.copiat.info/ cheap ambien perscription 8223 http://www.randommadnessintorrance.com/accutane-online.html buying accutane :-]
mkaymer | Posted 10:01am 21. August 2010 Server Time |

http://weightlosspillsonline.org acomplia >:-OOO http://edpillsonline.net buy cialis online =]]] http://tramadol911.com tramadol apap brnqr
mkaymer | Posted 6:12am 24. August 2010 Server Time |

http://www.hlpharmacy.net/ propecia fvxedq http://www.lovemez.com/ levitra 8-]] http://www.puremeds.net/ Prednisone 495 http://www.medleader.net/ compare viagra cialis levitra gegrg http://www.tramad0l.com/ tramadol =-]]
mkaymer | Posted 4:27am 29. August 2010 Server Time |

http://www.robkellysurf.com/home_insurance_quotes.html home insurance quotes bsffc http://www.arcataenglishcockers.com/life-insurance-rates.html garden state life insurance =-[ http://www.ambermadison.tv/ florida auto insurance 8DD http://www.arcataenglishcockers.com/ health insurance quotes laigfl
mkaymer | Posted 6:22am 29. August 2010 Server Time |

http://www.fantagebetas.com/home-insurance.html home inspector insurance :( http://www.fantagebetas.com/life-insurance.html transamerica life insurance 824 http://www.fantagebetas.com/ auto insurance 881 http://www.steppingintothelight.net/ auto insurance quotes 305
mkaymer | Posted 9:53am 29. August 2010 Server Time |

http://www.pragmablog.com/ acomplia loss weight :DD http://www.basesparalariqueza.com/ acomplia diet no pill prescription required %(( http://www.ussui.com/ valium %-D http://www.goldmeasures.com/ online accutane 9809


Reply to Post passing asp recordset varriable to vbscipt



Back to Forum Page