|
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
|
|
|
|
|
at the default it is there but in the other webforms not there.
Viper Investigates...
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
visual web developer 2.0,
aspx for the deafult (have a .vb file)
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<title>Untitled Page
<asp:button id="Button1" runat="server" style="z-index: 100; left: 156px; position: absolute;
top: 201px" text="testing ">
<asp:linkbutton id="LinkButton1" runat="server" style="z-index: 102; left: 182px;
position: absolute; top: 20px">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
<title>Untitled Page
<asp:label id="Label1" runat="server" style="z-index: 100; left: 54px; position: absolute;
top: 87px" text="Label">
<asp:label id="Label2" runat="server" style="z-index: 101; left: 52px; position: absolute;
top: 143px" text="Label">
<asp:button id="Button1" runat="server" onclick="Button1_Click" style="z-index: 103;
left: 53px; position: absolute; top: 211px" text="Button">
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.
<script runat="server">
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
End Sub
</script>
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
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
|
|
|
|
|
where i can find this option, coz it is not in the propertities ?!
Viper Investigates...
|
|
|
|
|
hi friends
i got the error likk this in asp.net
Access to the path "c:\inetpub\wwwroot\RealEstate\Data\653828_71956576005006007.jpg" is denied.
plz tell me the solution
|
|
|
|
|
saravanan05 wrote:
Access to the path "c:\inetpub\wwwroot\RealEstate\Data\653828_71956576005006007.jpg" is denied.
Please check the access permissions to ASPNET user for this file.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
hi friends
I need javascript for password field for checking minimum 6 char and maximum 20 char.
Thanks in advance
Pathan
GOD HELP THOSE WHO HELP THEMSELF
|
|
|
|
|
Imran Khan Pathan wrote: I need javascript for password field for checking minimum 6 char and maximum 20 char.
<SCRIPT LANGUAGE="JavaScript">
function validatePwd() {
var invalid = " ";
var minLength = 6;
var pw1 = document.myForm.password.value;
var pw2 = document.myForm.password2.value;
if (pw1 == '' || pw2 == '') {
alert('Please enter your password twice.');
return false;
}
if (document.myForm.password.value.length < minLength) {
alert('Your password must be at least ' + minLength + ' characters long. Try again.');
return false;
}
if (document.myForm.password.value.indexOf(invalid) > -1) {
alert("Sorry, spaces are not allowed.");
return false;
}
else {
if (pw1 != pw2) {
alert ("You did not enter the same new password twice. Please re-enter your password.");
return false;
}
else {
alert('Nice job.');
return true;
}
}
}
</script>
HTML code
<form name=myForm onSubmit="return validatePwd()">
Enter your password twice.
<br>
(At least 6 characters, 20 characters max, and spaces are not allowed.)
<p>
Password: <input type=password name=password maxlength=20>
<br>
Verify password: <input type=password name=password2 maxlength=20>
<p>
<input type=submit value="Submit">
</form>
</center>
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
HI all,
In my application am using drop down list which holds the user ids.currently it holds 51 ids,in selected index changed event or in any other event also,it showing only 50ids,pls suggest me how to find the duplicate values in drop down list control.
Thanks in advance
Have a Nice Day Dudes
|
|
|
|
|
Could you please elaborate bit more??? What is your requirement for drop down list?
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
HI Laxman,
IN debugging am able to see only 60userids,when am traversing through the FOR loop.but primarily there are 61 user ids.
that too one specific id only not able to see.
Here i need to find the duplicate values in the drop down list,coz i feel that only for one specific duplicate value in that list control its working like that.
so pls guide me if any
Have a Nice Day Dudes
|
|
|
|
|
Kushi Bobby wrote: so pls guide me if any
Create an ArrayList of (key,value) pair and bind that arraylist to DropDownList.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
Hi all,
I m creating a crystal report . i hve sucessfully retrieved data in report , can anyone tell me how do i resize the page of report ? my data in report is overlapping due to limited page size .How can i resize ReportViewer?
|
|
|
|
|
Hi All,
How to restrict the resource utilisation to 30% when a client machine request to server.My application is using more than 60% of resorces of server how to restrict this.
Regards,
Vijaya
vijaya
|
|
|
|
|
vijayaBTS wrote: My application is using more than 60% of resorces of server
How come you know that it is using ?
|
|
|
|
|
Iam using microsoft application center tool test my application using that %processortime is 100%
vijaya
|
|
|
|
|
Hi All,
How to improve the .net application performance from application point of view irrespective of database changes.
Regards,
Vijaya
vijaya
|
|
|
|
|
|
Will Caching increase the memory usage in server ?
|
|
|
|
|
There are many, many ways. But first thing you should do is some profiling... to find what takes most resources.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|