How can I past a VBScript variable into ASP?
470920
I am assuming that the code - \nstrSQL = "SELECT * FROM tbl_Hardware WHERE Hardware_ID = 2" \n\nis in a <script language=vbscript> block....\n\nIf I am correct, then that part of the code will be available on the client side, whereas the code that you have in the <%%> block is a sever side code available on the server side.\n\nIf the value of strSql does not change on the client side then one way of doing this is\n\n<%\ndim sql\nsql = "SELECT * FROM tbl_Hardware WHERE Hardware_ID = 2" \n%>\n<script language=vbscript>\nstrSQL = <%=sql%>\n </script>\n<%\nSet rs = cnnLogin.Execute(sql)\n%>\n\nIf the Value of the strSQL changes on the client side, then you need to pass it back to the server on submit using some sort of hidden fields.\n\n-jainnys\nMind Experts Inc\nhttp://www.mindexp.com
1118192
I don't use vb.net myself (C# I use).\n\nIf you want to keep the 0's in the front though, it has to be a string, not an integer.\n\nYou convert it over to integer, add the next number, then cast it back to string, and pad the length to the desired number of 0's\n\nPseudo code:\n\nLicenseNoNum = CastToInt(LicenseNostr)\nLicenseNoNum = LicenseNoNum + 1\nLicenseNoStr = CastToStr(LicenseNoNum)\nWhile LicenseNoStr(Length) < 8\nLicenseNoStr = '0' + LicenseNoStr.\n\nYou could also just store it as an integer, and perform the cast for printing, which might be all you were looking for.
325795
I don't think its an option from the menu. Ofcourse, VBA script can be written for that to happen.
292649
You can use my genious code I made:\n\n<script type="text/javascript">\n// Please leave this line in:  by htmlPro@army.com\nvar date='<!-- #echo var="DATE_LOCAL" -->'\ndocument.write(''+ date)\n</script>
1179894
yes using widows Api\nHere is a sample created in visual basic\n\nhttp://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=22553&lngWId=1&txtForceRefresh=62020068412516566
680737
It depends on the IDE and language you're using, but if it's VB, click "Project", then "Add Class Module". Then the sky is the limit!
96085
Call substring first, then call encode. It looks like you are using ASP or ASP.NET. You should use bind variables so that you do not need to worry about SQL injection attacks.
670070
 Dim frmName As String\n   \n frmName = "form2"\n   \n Select Case frmName\n  Case "form1"\n   Form1.Show\n  Case "form2"\n   Form2.Show\n  Case "form3"\n   Form3.Show\n  Case Else\n   MsgBox "Invalid form name"\n End Select\n\n***EDIT***\nIn VB, you can't convert a string object into a form object.  This is why String.Show doesn't work.  However, you can use a "select case" on the string and if the string matches the form name (i.e. form2), then show the form.\n\nAnother alternative is to loop through the forms collection until you find a form with the same name as your string.\n\nIn any case, if you create a project with 2 forms (called form1 and form2).  Add a button to form1 and paste the above code into the click event of the button.  When pressed, form2 will be displayed.
693009
This code is from 4guysfromrolla.com.  There are other ways to accomplish this as well.  Hope this helps!\n\n\n<script language="vb" runat="server">\n  ...\n   \n  Sub dgPopularFAQs_ItemDataBound(sender as Object, e as DataGridItemEventArgs)\n    ' First, make sure we're NOT dealing with a Header or Footer row\n    If e.Item.ItemType <> ListItemType.Header AND _\n         e.Item.ItemType <> ListItemType.Footer then\n      'Now, reference the LinkButton control that the Delete ButtonColumn \n      'has been rendered to\n      Dim deleteButton as LinkButton = e.Item.Cells(0).Controls(0)\n\n      'We can now add the onclick event handler\n      deleteButton.Attributes("onclick") = "javascript:return " & _\n                 "confirm('Are you sure you want to delete FAQ #" & _\n                 DataBinder.Eval(e.Item.DataItem, "FAQID") & "?')"    \n    End If\n  End Sub\n</script>\n\n<form runat="server">\n  <asp:datagrid id="dgPopularFAQs" runat="server"\n      ...\n      OnItemDataBound="dgPopularFAQs_ItemDataBound">\n\n      ...\n  </asp:datagrid>\n</form>
614180
In VBA (as used in PowerPoint) declaring a variable and assigning a value must be separated.\n\nDim astring as String\nastring = "Test"\n\nIn VB 2005, VB.NET, etc. - your expression would be fine.\n\n*** Additional Stuff ***\nSounds like you're really struggling ... In the code module for the presentation you'll need to put the code in a procedure ... here's an example\n\nSub TestThis()\n    Dim astring As String\n    astring = "Test"\n    MsgBox (astring)\nEnd Sub\n\nAfter this, you'll be able to run this code as a macro ... Tools >> Macro >>> Macros ... then select the "TestThis" macro and run it ... you'll get your message box.\n\nGood luck!
908020
http://www.vb-helper.com/tips7.htm\n\nSorry I don't personally know about VB so I done a search for you\nI hope this helps, :)
210515
for vbscript or javascript or what ?\n\nIf you are on about vbscript then scriptomatic 2.0 is a good resource:\n\nhttp://www.microsoft.com/downloads/details.aspx?FamilyID=09dfc342-648b-4119-b7eb-783b0f7d1178&DisplayLang=en\n\nwww.computerperformance.co.uk\n\nhttp://www.adminscripteditor.com/main.asp\n\nThere are one or two others but I cant find them as of now but if i do I will post back with them, that should give you a good start, also if you want to get info about systems then WMI ( windows management instrumentation  ) is what you will use for a reasonable amount of info :)\n\nIf you need any help or if you can be more specific of what you want your script to do then I will try and help as best as I can :)
921335
Use the URL parameters\n\nmypage.asp?var1=someval1&var2=someval2\n\nand so on and so forth. \n\nYou can parse that in your ASP code.
105939
you can easily do this using asp.  do a google search for asp password scripts
120605
Perhaps this code:\nhttp://www.codeproject.com/vb/net/MyLanApp.asp\n\nCan help.
225594
The easiest way is to simply embed PHP code within your JavaScript.\n\nFor example, if I wanted to pass the value of the PHP variable "$myName" to the JavaScript variable "theName", my code might look like this:\n\n<script type="text/javascript">\nvar theName;\ntheName = "<?php echo $myName; ?>";\n</script>\n\nSince your server will parse the PHP before sending it to the client, this code will set the variable properly.
81681
What operating system are you using and what script, if you could post back with the script :) that would help.\n\nI also suggest you take a look here :\n\nhttp://www.webwizguide.info/asp/default.asp\n\nIt has guides, tutorials, faq's common issues etc.