Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. error in response.form("")

error in response.form("")

Scheduled Pinned Locked Moved ASP.NET
help
10 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sonia Gupta
    wrote on last edited by
    #1

    <% If (Request.Form("Submit1") = True) Then Response.Write("Hi") End If %> Untitled Page i got the error at runtime Conversion from string "" to type 'Boolean' is not valid. please help...

    Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

    _ C I 3 Replies Last reply
    0
    • S Sonia Gupta

      <% If (Request.Form("Submit1") = True) Then Response.Write("Hi") End If %> Untitled Page i got the error at runtime Conversion from string "" to type 'Boolean' is not valid. please help...

      Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

      _ Offline
      _ Offline
      _mubashir
      wrote on last edited by
      #2

      YES, see Submit1 is empty and you cannot convert "" into a boolean.


      Mubashir Software Architect Storan Technologies Inc, USA Every job is a self portrait of the person who did it.

      S 1 Reply Last reply
      0
      • S Sonia Gupta

        <% If (Request.Form("Submit1") = True) Then Response.Write("Hi") End If %> Untitled Page i got the error at runtime Conversion from string "" to type 'Boolean' is not valid. please help...

        Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

        C Offline
        C Offline
        Chetan Patel
        wrote on last edited by
        #3

        <% If Request.Form("Submit1") Then Response.Write("Hi") End If %> try this and enjoy

        Best Regards, Chetan Patel

        S 1 Reply Last reply
        0
        • S Sonia Gupta

          <% If (Request.Form("Submit1") = True) Then Response.Write("Hi") End If %> Untitled Page i got the error at runtime Conversion from string "" to type 'Boolean' is not valid. please help...

          Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

          I Offline
          I Offline
          Imran Khan Pathan
          wrote on last edited by
          #4

          R u passing 'true' or 'false' value as a submit1 var if yes try this Request.Form("Submit1") = "True" Best regard Pathan

          GOD HELP THOSE WHO HELP THEMSELVES

          S 1 Reply Last reply
          0
          • I Imran Khan Pathan

            R u passing 'true' or 'false' value as a submit1 var if yes try this Request.Form("Submit1") = "True" Best regard Pathan

            GOD HELP THOSE WHO HELP THEMSELVES

            S Offline
            S Offline
            Sonia Gupta
            wrote on last edited by
            #5

            All this is happening in a aspx page. Submit1 is a html button <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <% If Request.Form("Submit1") Then Response.Write("Hi") End If %> Untitled Page

            Sonia

            Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

            P S 2 Replies Last reply
            0
            • C Chetan Patel

              <% If Request.Form("Submit1") Then Response.Write("Hi") End If %> try this and enjoy

              Best Regards, Chetan Patel

              S Offline
              S Offline
              Sonia Gupta
              wrote on last edited by
              #6

              http://www.codeproject.com/script/comments/forums.asp?msg=2151022&forumid=12076#xx2151022xx[^]

              Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

              1 Reply Last reply
              0
              • _ _mubashir

                YES, see Submit1 is empty and you cannot convert "" into a boolean.


                Mubashir Software Architect Storan Technologies Inc, USA Every job is a self portrait of the person who did it.

                S Offline
                S Offline
                Sonia Gupta
                wrote on last edited by
                #7

                http://www.codeproject.com/script/comments/forums.asp?msg=2151022&forumid=12076#xx2151022xx[^]

                Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

                _ 1 Reply Last reply
                0
                • S Sonia Gupta

                  All this is happening in a aspx page. Submit1 is a html button <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <% If Request.Form("Submit1") Then Response.Write("Hi") End If %> Untitled Page

                  Sonia

                  Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

                  P Offline
                  P Offline
                  Piyush Vardhan Singh
                  wrote on last edited by
                  #8

                  u r passing string value and checking boolean value so its give error

                  Piyush Vardhan Singh Programmer TAS NewDelhi India

                  1 Reply Last reply
                  0
                  • S Sonia Gupta

                    All this is happening in a aspx page. Submit1 is a html button <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <% If Request.Form("Submit1") Then Response.Write("Hi") End If %> Untitled Page

                    Sonia

                    Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

                    S Offline
                    S Offline
                    Sandeep Kumar
                    wrote on last edited by
                    #9

                    Hi, Replace following things

                    Sonia Gupta wrote:

                    If Request.Form("Submit1") Then

                    If Request.Form("Submit1") = "submit" Then and

                    Sonia Gupta wrote:

                    I tried with the modified changes it's working... The problem in ur code is Request.form("Submit1") returns string value....so its giving error.. and one more thing.....for submit button it should contain name attribute, when ever u click on that button the value will be passed to form

                    Regards, Sandeep Kumar.V

                    1 Reply Last reply
                    0
                    • S Sonia Gupta

                      http://www.codeproject.com/script/comments/forums.asp?msg=2151022&forumid=12076#xx2151022xx[^]

                      Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

                      _ Offline
                      _ Offline
                      _mubashir
                      wrote on last edited by
                      #10

                      What is the issue? Your submit1 control has a value "" (empty). And you cannot convert that empty value into boolean.


                      Mubashir Software Architect Storan Technologies Inc, USA Every job is a self portrait of the person who did it.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups