Print Page | Close Window

Yes/No button not working

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=2275
Printed Date: 28 March 2026 at 12:37pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Yes/No button not working
Posted By: simflex
Subject: Yes/No button not working
Date Posted: 29 April 2003 at 7:35am

I need your urgent help, please.
I have a field called itemDesc. This field will ask a question and the user will either answer a yes or a no but NOT both.
So far, this is allowing a yes and no to checked at the same time.
Please take a look at the function.
Thank you!!

Function Build_PersonGrid(strGrid)
 Dim intCount, x

 If request.form("Count") = "" then
  'set default number of lines in the grid, in this case 5(!)
  intCount = 0
 else
  'retrieve current amount of lines in the grid, increment by 1
  intCount = Cint(request.form("Count") + 1)
 end if

 For x = 0 To intCount
  strGrid = strGrid & "<tr>" & vbNewLine
  strGrid = strGrid & "<td><input name=""txtItemDesc"&x&""" size=""70"" type=""text"" maxlength=""70"" value="""&request.form("txtItemDesc"&x)&"""></td>"& vbNewLine
  strGrid = strGrid & "<td><input name=""txtYes"" TYPE=radio  value="""&request.form("txtYes"&x)&"""></td>"& vbNewLine
  strGrid = strGrid & "<td><input name=""txtNo"" TYPE=radio value="""&request.form("txtNo"&x)&"""></td>"& vbNewLine
  strGrid = strGrid & "<td>"
 Next


 'set new Count, and action
 strGrid = strGrid & "<tr><td>"
 strGrid = strGrid & "<input type=""hidden"" name=""Count"" value="""&intCount&""">"&vbNewLine
 strGrid = strGrid & "<input type=""submit"" name=""cmd_AddNewLine"" value=""Add"">"& vbNewLine
 strGrid = strGrid & "<input type=""submit"" name=""cmd_Process"" value=""Process"">"& vbNewLine
 strGrid = strGrid & "</tr></td>"

 Build_PersonGrid = strGrid
End Function




Replies:
Posted By: simflex
Date Posted: 29 April 2003 at 9:40am

please ignore this, i got it.

my dum mistake




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net