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. masterpage+js

masterpage+js

Scheduled Pinned Locked Moved ASP.NET
csharpjavascripthelp
8 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.
  • N Offline
    N Offline
    niki_nilu
    wrote on last edited by
    #1

    hello sir i am using master page in webapplication. and i used c# language. i have one .js file. i want to use it in my application. i want to add form tag because i want to write this code

    where i add form tag.bec i used masterpage. pls help me its really urgent. gayatri

    Gayatri

    E N 2 Replies Last reply
    0
    • N niki_nilu

      hello sir i am using master page in webapplication. and i used c# language. i have one .js file. i want to use it in my application. i want to add form tag because i want to write this code

      where i add form tag.bec i used masterpage. pls help me its really urgent. gayatri

      Gayatri

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      where do you want the form tag? or are you asking where to put it? Normally it would go in your aspx page can you explain again

      N 1 Reply Last reply
      0
      • N niki_nilu

        hello sir i am using master page in webapplication. and i used c# language. i have one .js file. i want to use it in my application. i want to add form tag because i want to write this code

        where i add form tag.bec i used masterpage. pls help me its really urgent. gayatri

        Gayatri

        N Offline
        N Offline
        niki_nilu
        wrote on last edited by
        #3

        sir please tell me a solution.

        Gayatri

        1 Reply Last reply
        0
        • E eyeseetee

          where do you want the form tag? or are you asking where to put it? Normally it would go in your aspx page can you explain again

          N Offline
          N Offline
          niki_nilu
          wrote on last edited by
          #4

          sir i want form tag in my webform. in that web form i used masterpage. so when i take form tag that time i gave error. so i ask you where i put it. when i put it in content.that time i have error. i want to use .js file. the code --- // JScript File function valForm() { if(!valid_required(document.form1.txtFirstName.value)) { alert("First name is required field.") return false } return true } this i want to use in my webform's html source code my code=----- <@> CodeFile="Client.aspx.cs" Inherits="Client" Title="Untitled Page" %>

          this code i have run time error--A page can have only one server-side Form tag. so pls help me.

          Gayatri

          I E 2 Replies Last reply
          0
          • N niki_nilu

            sir i want form tag in my webform. in that web form i used masterpage. so when i take form tag that time i gave error. so i ask you where i put it. when i put it in content.that time i have error. i want to use .js file. the code --- // JScript File function valForm() { if(!valid_required(document.form1.txtFirstName.value)) { alert("First name is required field.") return false } return true } this i want to use in my webform's html source code my code=----- <@> CodeFile="Client.aspx.cs" Inherits="Client" Title="Untitled Page" %>

            this code i have run time error--A page can have only one server-side Form tag. so pls help me.

            Gayatri

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

            niki_nilu wrote:

            this code i have run time error--A page can have only one server-side Form tag.

            Master Page already has a form tag. you can use your javascript in head tag in master page.

            please don't forget to vote on the post that helped you.

            N 1 Reply Last reply
            0
            • N niki_nilu

              sir i want form tag in my webform. in that web form i used masterpage. so when i take form tag that time i gave error. so i ask you where i put it. when i put it in content.that time i have error. i want to use .js file. the code --- // JScript File function valForm() { if(!valid_required(document.form1.txtFirstName.value)) { alert("First name is required field.") return false } return true } this i want to use in my webform's html source code my code=----- <@> CodeFile="Client.aspx.cs" Inherits="Client" Title="Untitled Page" %>

              this code i have run time error--A page can have only one server-side Form tag. so pls help me.

              Gayatri

              E Offline
              E Offline
              eyeseetee
              wrote on last edited by
              #6

              As far as I am aware you cant have a form tag inside another form tag which is what you would be doing if you included a masterpage in another page as there would be two form tags.

              1 Reply Last reply
              0
              • I Imran Khan Pathan

                niki_nilu wrote:

                this code i have run time error--A page can have only one server-side Form tag.

                Master Page already has a form tag. you can use your javascript in head tag in master page.

                please don't forget to vote on the post that helped you.

                N Offline
                N Offline
                niki_nilu
                wrote on last edited by
                #7

                master page code <@> Chanakya

                now error is Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

                Gayatri

                I 1 Reply Last reply
                0
                • N niki_nilu

                  master page code <@> Chanakya

                  now error is Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

                  Gayatri

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

                  niki_nilu wrote:

                  nvalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

                  Set EnableEventValidation="true in page directory regard kHan

                  please don't forget to vote on the post that helped you.

                  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