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. Invalid Charcter

Invalid Charcter

Scheduled Pinned Locked Moved ASP.NET
helpsysadminquestion
9 Posts 3 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.
  • D Offline
    D Offline
    danasegaranea
    wrote on last edited by
    #1

    Hi all, I am gettting the invalid charcter error msg

       <button onclick="\_\_doPostBack('btnClear','')" id="btnClear" class="btn" title="Alt-C" accesskey="C" style="width: 56px">Clear</button> 
    

    <button id="btnSave" runat="server" class="btn" onclick="btnSave_OnClick" type="button">Save</button><br />

    Can some one help ? Dana

    N T 2 Replies Last reply
    0
    • D danasegaranea

      Hi all, I am gettting the invalid charcter error msg

         <button onclick="\_\_doPostBack('btnClear','')" id="btnClear" class="btn" title="Alt-C" accesskey="C" style="width: 56px">Clear</button> 
      

      <button id="btnSave" runat="server" class="btn" onclick="btnSave_OnClick" type="button">Save</button><br />

      Can some one help ? Dana

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      What is this Button tag ? Do you mean asp:button ?

      All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

      D 1 Reply Last reply
      0
      • N N a v a n e e t h

        What is this Button tag ? Do you mean asp:button ?

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

        D Offline
        D Offline
        danasegaranea
        wrote on last edited by
        #3

        It is HTML Button with Runat Attribute set to TRUE

        N 1 Reply Last reply
        0
        • D danasegaranea

          It is HTML Button with Runat Attribute set to TRUE

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          Well, the examples give by you runs well at my end.

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

          1 Reply Last reply
          0
          • D danasegaranea

            Hi all, I am gettting the invalid charcter error msg

               <button onclick="\_\_doPostBack('btnClear','')" id="btnClear" class="btn" title="Alt-C" accesskey="C" style="width: 56px">Clear</button> 
            

            <button id="btnSave" runat="server" class="btn" onclick="btnSave_OnClick" type="button">Save</button><br />

            Can some one help ? Dana

            T Offline
            T Offline
            Trishul Tandel
            wrote on last edited by
            #5

            use html input tag

            Best Regards, Trishul Tandel Software Developer

            D 1 Reply Last reply
            0
            • T Trishul Tandel

              use html input tag

              Best Regards, Trishul Tandel Software Developer

              D Offline
              D Offline
              danasegaranea
              wrote on last edited by
              #6

              This is the view source of the page

              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

              <html xmlns= "http://www.w3.org/1999/xhtml">
              <head><title>

                      Subject Master
              

              </title>

                  <link href=Spaceinvador.css type="text/css" rel=Stylesheet />   
                  <style type="text/css">
                    BUTTON.btn
                          {
                              border:groove inset 1px #000000;
                              background:#84B0DC; 
                              filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#84B0DC',endColorstr='#ffffff', gradientType='0')
                              progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='#8b9b99', Positive='true');
                              color:#00000;
                              font-family: Verdana;
                              font-size: 8pt;
                              font-weight:bold;
                          }
                      
                  </style>
              </head>
              
              <script language ="vbscript" type ="text/vbscript" >
                  
                  Function Call\_Mandatry()
                                   
                      If Len(Trim(document.frmSubjectMaster.txtDescription.value))>0 Then
                      
                          document.getElementById("imgMandatory").style.width=0
                          document.getElementById("imgMandatory").style.height=0  
                          document.getElementById("imgMandatory").style.visibility ="hidden"
                          
                      Else
                      
                          document.getElementById("imgMandatory").style.width=7
                          document.getElementById("imgMandatory").style.height=14 
                          document.getElementById("imgMandatory").style.visibility ="visible"
                         
                      End If   
                            
                  End Function
                  
              </script> 
              
              <script language ="vbscript" type ="text/vbscript" >
                      Function BValidateNumber(key)
                      
              	        BValidateNumber = (key >= Asc("0") And key <= Asc("9"))
              	         
                      End Function
              
                      Sub ValidateNumber()
                      
                  		window.event.returnValue = BValidateNumber(window.event.keycode)
                  		
              	    End Sub
                        
              </script> 
              
              <script language ="javascript" type ="text/javascript" >
               
              function Delete()
              {
                  if(confirm('Delete Subject?'))
                  {
                      return true;
                  }
                  
                  else
                  {
              
              T 1 Reply Last reply
              0
              • D danasegaranea

                This is the view source of the page

                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

                <html xmlns= "http://www.w3.org/1999/xhtml">
                <head><title>

                        Subject Master
                

                </title>

                    <link href=Spaceinvador.css type="text/css" rel=Stylesheet />   
                    <style type="text/css">
                      BUTTON.btn
                            {
                                border:groove inset 1px #000000;
                                background:#84B0DC; 
                                filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#84B0DC',endColorstr='#ffffff', gradientType='0')
                                progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='#8b9b99', Positive='true');
                                color:#00000;
                                font-family: Verdana;
                                font-size: 8pt;
                                font-weight:bold;
                            }
                        
                    </style>
                </head>
                
                <script language ="vbscript" type ="text/vbscript" >
                    
                    Function Call\_Mandatry()
                                     
                        If Len(Trim(document.frmSubjectMaster.txtDescription.value))>0 Then
                        
                            document.getElementById("imgMandatory").style.width=0
                            document.getElementById("imgMandatory").style.height=0  
                            document.getElementById("imgMandatory").style.visibility ="hidden"
                            
                        Else
                        
                            document.getElementById("imgMandatory").style.width=7
                            document.getElementById("imgMandatory").style.height=14 
                            document.getElementById("imgMandatory").style.visibility ="visible"
                           
                        End If   
                              
                    End Function
                    
                </script> 
                
                <script language ="vbscript" type ="text/vbscript" >
                        Function BValidateNumber(key)
                        
                	        BValidateNumber = (key >= Asc("0") And key <= Asc("9"))
                	         
                        End Function
                
                        Sub ValidateNumber()
                        
                    		window.event.returnValue = BValidateNumber(window.event.keycode)
                    		
                	    End Sub
                          
                </script> 
                
                <script language ="javascript" type ="text/javascript" >
                 
                function Delete()
                {
                    if(confirm('Delete Subject?'))
                    {
                        return true;
                    }
                    
                    else
                    {
                
                T Offline
                T Offline
                Trishul Tandel
                wrote on last edited by
                #7

                please select line where your error occure

                Best Regards, Trishul Tandel Software Developer

                D 1 Reply Last reply
                0
                • T Trishul Tandel

                  please select line where your error occure

                  Best Regards, Trishul Tandel Software Developer

                  D Offline
                  D Offline
                  danasegaranea
                  wrote on last edited by
                  #8

                  This one

                  <button id="btnSave" class="btn" onclick="btnSave_OnClick" type="button">Save</button> <input onclick="__doPostBack('Button1','')" name="Button1" type="button" id="Button1" value="button" class="btn" /><br />

                  T 1 Reply Last reply
                  0
                  • D danasegaranea

                    This one

                    <button id="btnSave" class="btn" onclick="btnSave_OnClick" type="button">Save</button> <input onclick="__doPostBack('Button1','')" name="Button1" type="button" id="Button1" value="button" class="btn" /><br />

                    T Offline
                    T Offline
                    Trishul Tandel
                    wrote on last edited by
                    #9

                    Save solution : Save If you are using button tag then it not allow to use type="button" Best Regards, Trishul Tandel Software Developer

                    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