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