|
I'm not sure...but here is just a suggestion
Open IIS MMC, check the ASP.NET version setting of your site
<< >>
|
|
|
|
|
goto windows\microsoft.net\framework directory and find .net Frameworke version that your application use it and from it's location find aspnet_regiis.exe and execute it such as "aspnet_regiis.exe /i"
We Can Do Anything, If We Want It
|
|
|
|
|
Hello,
take a look at the following line of code...
<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false" Inherits="_Default" %>
however, if I put the class _Default in a namespace, say MyNamespace and try the following line:
<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false" Inherits="MyNamespace._Default" %>
VS generates an error:
Could not load type 'MyNamespace._Default'
Any help would be highly appreciated...
- A programmer's national anthem; "AAAAAHHHHH!!!!"
|
|
|
|
|
remove the _ (underscore) from the
<br />
Inherits="MyNameSpace._Default"<br />
to
<br />
Inherits="MyNameSpace.Default"<br />
|
|
|
|
|
Thanks for the reply pal, have tried that already, doesn't matter what the name of the class is, it still won't compile...
- A programmer's national anthem; "AAAAAHHHHH!!!!"
|
|
|
|
|
signbit wrote: however, if I put the class _Default in a namespace, say MyNamespace and try the following line:
<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false" Inherits="MyNamespace._Default" %>
Just to be sure, did you put codebehing class (in .cs file) into same namespace?
I don't feel like firing up IDE, but I think that pages are always in some namespace (default project namespace), and you don't prefix class name in Inherits page directive. Did you try it without MyNamespace, add it only in codebehind?
"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
|
|
|
|
|
I am using list box but i am not able to get the value of the item selected. and it gives index as -1 everytime.
Mohinder Singh
|
|
|
|
|
maybe u bind your listbox in pageload or prerender event.
in this state in first time bind your listbox and set that index to -1 automaticaly
make sure your list box bind once
or take it to:
if(!IsPostBack)
BindMyListBox();//this is your bind procedure
We Can Do Anything, If We Want It
|
|
|
|
|
try using listbox1.selecteditem.text
hope it helps
Kunal
|
|
|
|
|
Hi i create one project...,
now i want to submit the project to my client...,
i dont like to give my back end code to my client...,
just i like to give my screen design...,
With that the project want to run...,
How to do that?,
I am beginner in this,so plz explain me some what briefly..,
Magi
|
|
|
|
|
Hi Magi,
You have to send only dll and aspx files.
Open Project->Copy Project from your IDE.
From "Web Access Method:" Select "Front Page" and from
"Copy:" select "only files needed to run this application" option.
Mehedi Hasan
|
|
|
|
|
Use public website method in VS 2k5
<< >>
|
|
|
|
|
Hai to all,
can anyone halp me for which site is good to get faq's of asp.net for 1+yrs experience.
can any one send me some material otherwise.
I wanna attend interviews as 1+.
kissy
|
|
|
|
|
if given ur mail id i could send few docs!!
Gautham
|
|
|
|
|
Hello friends ...
good morning..
I want to use make client side validation on a button using javascript such as textbox is empty or not. After that I want to put textbox value into database using server side code using c#.
Is it possible? I am using html controls making them runat= server
How?
|
|
|
|
|
u can use RegularExpressionValidator or RequiredFieldValidator and set ControlToValidate property to your control such as textbox
We Can Do Anything, If We Want It
|
|
|
|
|
Ok ..But is it possible that both client side script on onclick (for validation ) will run first and then server side code (for database entry) will run .
|
|
|
|
|
no problem.
u can validate the control with many validators
We Can Do Anything, If We Want It
|
|
|
|
|
|
iamdking wrote: both client side script on onclick (for validation ) will run first and then server side code (for database entry) will run .
why do u want to validate twice.. try using the EnableCLientScript Propert of the validator by setting it false for Server side validation.. and settin it true for client side.. create 2 such validators.
iamdking wrote: for database entry)
supposedly 5 was the size, and 6 chars are entered, a exception will be generated, which can be caught and aptly handled.. but y wud u need this.. simply set the texbox maxlength to 5.
Kunal
|
|
|
|
|
Is it possible to convert a .WAV file to a .MP3 file using .NET?
Does anybody know of a resource site with a tutorial or sample code?
Thanks,
rajmani
|
|
|
|
|
Yes. Hope this This[^]will help you.
Regards,
Satips.
|
|
|
|
|
hi all
I have page main contain a iframe
On the page main have treeview and i use Ajax
tag UpdatePanel contain tree view but it not contain iframe
when i click event SelectedNodeChanged on tree view i want ReLoad iframe
On the function i try javacript but it not run
protected void treeview_SelectedNodeChanged(object sender, EventArgs e)
{
string strScript = "";
strScript += " window.parent.frames['ifmap'].ReLoad();";
//OR parent.frames['ifmap'].ReLoad();
strScript += "";
Page.RegisterStartupScript("ClientScript", strScript);
}
this is ReLoad() in iframe. it will postback to server with event LinkButton1
function ReLoad() {
__doPostBack('LinkButton1','');
}
How can i Reload or refresh my iframe on above function by any ways ?????
so when i use ajax and tag <asp:updatepanel id="UpdatePanel1" runat="server">
Any function javacript into not run. if i reject this tag so function javacript run good. ????
1. How can i refresh or reload iframe so use ajax. ?????
2. How do i run any function javacript into tag <asp:updatepanel id="UpdatePanel1" runat="server"> ?????
|
|
|
|
|
|
sorry i am very pressing ;P
|
|
|
|