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. not a member

not a member

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettoolsquestion
14 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.
  • L Laxman Auti

    Viper825 wrote:

    not a member

    Are you missing runat="server" for that control?? Knock out 't' from can't, You can if you think you can :cool:

    V Offline
    V Offline
    Viper825
    wrote on last edited by
    #3

    no no for instance i made another webform and added a button anddouble click on it it gave me this on the aspx file : Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) End Sub Untitled Page

    Viper Investigates...

    L 1 Reply Last reply
    0
    • V Viper825

      no no for instance i made another webform and added a button anddouble click on it it gave me this on the aspx file : Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) End Sub Untitled Page

      Viper Investigates...

      L Offline
      L Offline
      Laxman Auti
      wrote on last edited by
      #4

      Where is Button1 control in aspx file??? It should present under form html tag. Knock out 't' from can't, You can if you think you can :cool:

      V 1 Reply Last reply
      0
      • L Laxman Auti

        Where is Button1 control in aspx file??? It should present under form html tag. Knock out 't' from can't, You can if you think you can :cool:

        V Offline
        V Offline
        Viper825
        wrote on last edited by
        #5

        normally in the default page (the first one ) i double click on it andit takes me to the default.aspx.vb for instance but this not ! and keep telling hat watever control i drag and double click on it it takes me to default2.aspx for instance instead of default2.aspx.vb ?!

        Viper Investigates...

        L 1 Reply Last reply
        0
        • V Viper825

          normally in the default page (the first one ) i double click on it andit takes me to the default.aspx.vb for instance but this not ! and keep telling hat watever control i drag and double click on it it takes me to default2.aspx for instance instead of default2.aspx.vb ?!

          Viper Investigates...

          L Offline
          L Offline
          Laxman Auti
          wrote on last edited by
          #6

          Viper825 wrote:

          i drag and double click on it it takes me to default2.aspx for instance instead of default2.aspx.vb

          Do you have

          <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default"%>
          

          line at the top of aspx page. check the missing attributes. This is how code behind file looks

          Partial Class _Default
              Inherits System.Web.UI.Page
          
          End Class
          

          If you miss CodeFile attribute into aspx Page, then it adds event handler into the aspx file. Knock out 't' from can't, You can if you think you can :cool:

          V 1 Reply Last reply
          0
          • L Laxman Auti

            Viper825 wrote:

            i drag and double click on it it takes me to default2.aspx for instance instead of default2.aspx.vb

            Do you have

            <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default"%>
            

            line at the top of aspx page. check the missing attributes. This is how code behind file looks

            Partial Class _Default
                Inherits System.Web.UI.Page
            
            End Class
            

            If you miss CodeFile attribute into aspx Page, then it adds event handler into the aspx file. Knock out 't' from can't, You can if you think you can :cool:

            V Offline
            V Offline
            Viper825
            wrote on last edited by
            #7

            at the default it is there but in the other webforms not there.

            Viper Investigates...

            L 1 Reply Last reply
            0
            • V Viper825

              at the default it is there but in the other webforms not there.

              Viper Investigates...

              L Offline
              L Offline
              Laxman Auti
              wrote on last edited by
              #8

              Viper825 wrote:

              at the default it is there but in the other webforms not there.

              It should present, if you want to use code behind for aspx page.. :) Knock out 't' from can't, You can if you think you can :cool:

              V 1 Reply Last reply
              0
              • L Laxman Auti

                Viper825 wrote:

                at the default it is there but in the other webforms not there.

                It should present, if you want to use code behind for aspx page.. :) Knock out 't' from can't, You can if you think you can :cool:

                V Offline
                V Offline
                Viper825
                wrote on last edited by
                #9

                but i want to write vb code for other webforms and it allows me to do that under the script tag insidethat aspx page, i know it should send me to a .vb page but man it is doin it only for the first page not for pages i add later, coz it will tell me that thwe controls are not members

                Viper Investigates...

                L 1 Reply Last reply
                0
                • V Viper825

                  but i want to write vb code for other webforms and it allows me to do that under the script tag insidethat aspx page, i know it should send me to a .vb page but man it is doin it only for the first page not for pages i add later, coz it will tell me that thwe controls are not members

                  Viper Investigates...

                  L Offline
                  L Offline
                  Laxman Auti
                  wrote on last edited by
                  #10

                  Could you send the code snippets from aspx as well as code behind?? Which version you are using for development vs2003 or vs2005??? Knock out 't' from can't, You can if you think you can :cool:

                  V 1 Reply Last reply
                  0
                  • L Laxman Auti

                    Could you send the code snippets from aspx as well as code behind?? Which version you are using for development vs2003 or vs2005??? Knock out 't' from can't, You can if you think you can :cool:

                    V Offline
                    V Offline
                    Viper825
                    wrote on last edited by
                    #11

                    visual web developer 2.0, aspx for the deafult (have a .vb file) <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> Untitled Page

                    testing

                    the new web form that is not not declaring the controls as themembers of this asp file, once you double click on this control it goes to the script : <%@ Page Language="VB" %> Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) End Sub Untitled Page

                    Viper Investigates...

                    L 1 Reply Last reply
                    0
                    • V Viper825

                      hi ther iam new to asp.net , so when iadd any control to the first web form i can access the vb related file default.aspx.vb but when i add any control to anothe new one wheni double clicl on this control it takes me to the .aspx file to the script part as if there is no .vb one , so i run it it keeps telling that this control is not a memeber of this page ,?! any suggestions

                      Viper Investigates...

                      C Offline
                      C Offline
                      chat_sp2001 yahoo com
                      wrote on last edited by
                      #12

                      Hi, at time of the addnew item you must check the rightcorner check box(place code in saperate file) then i create the both vb and aspx file.. i think this will solve your problem bye

                      V 1 Reply Last reply
                      0
                      • C chat_sp2001 yahoo com

                        Hi, at time of the addnew item you must check the rightcorner check box(place code in saperate file) then i create the both vb and aspx file.. i think this will solve your problem bye

                        V Offline
                        V Offline
                        Viper825
                        wrote on last edited by
                        #13

                        where i can find this option, coz it is not in the propertities ?!

                        Viper Investigates...

                        1 Reply Last reply
                        0
                        • V Viper825

                          visual web developer 2.0, aspx for the deafult (have a .vb file) <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> Untitled Page

                          testing

                          the new web form that is not not declaring the controls as themembers of this asp file, once you double click on this control it goes to the script : <%@ Page Language="VB" %> Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) End Sub Untitled Page

                          Viper Investigates...

                          L Offline
                          L Offline
                          Laxman Auti
                          wrote on last edited by
                          #14

                          Why following two statements are different?? i think you haven't added file correctly.

                          <%@ Page Language="VB" %>
                          <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

                          move the code from new aspx file into code behind file.

                          <b>
                          Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
                          End Sub</b>

                          Knock out 't' from can't, You can if you think you can :cool:

                          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