|
Morning people,
This morning's delight is a VS2003 web application that i have opened and upgraded in VS2005. After the upgrade VS told me to convert to web app so I've done that aswell.
When i run the code i get this message:<br />
<br />
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. <br />
<br />
Parser Error Message: Could not load type 'Foo.Global'.<br />
<br />
Source Error: <br />
<br />
<br />
Line 1: <%@ Application CodeBehind="Global.asax.cs" Inherits="Foo.Global"%><br />
<br />
<br />
<br />
Source File: /global.asax Line: 1
I read somewhere that i don't need an inherits in .net 2.0 so i deleted it. It now gets to the login page and this happens:
Parser Error Message: Could not load type 'Foo.logon'.
Now i've read that if i use the App_Code folder for my C# files they should be located OK but i seem to have all sorts of App_* folders to chose from but App_Code isn't one of them.
Thanks for any help you can give
Russell
|
|
|
|
|
In VS2005 instead of CodeBehind we have CodeFile
<l>Thanks and Regards
Sandeep
|
|
|
|
|
Also for Global asax we dont have any other attribute other than Language ?
<l>Thanks and Regards
Sandeep
|
|
|
|
|
what are we supposed to do when such error occurs???
Gautham
|
|
|
|
|
Might be to remove the Global.asax and add new one as he has converted it from 3003 to 2005 ?
<l>Thanks and Regards
Sandeep
|
|
|
|
|
If theres no App_Code folder just create one, VS will do this when you try to add a new source file to the web site.
|
|
|
|
|
Dang, I had exactly the same problem when I first switched from VS2k3/ASP.NET 1.x to SD/ASP.NET 2.0
Too bad I dont remember how I solved it.
Make sure you set in IIS you application to use 2.0 version of ASP.NET - I *think* that was the problem.
Russell Jones wrote: Now i've read that if i use the App_Code folder for my C# files they should be located OK but i seem to have all sorts of App_* folders to chose from but App_Code isn't one of them.
If you are using VS2k5 just right click on project and select "New ASP.NET Folder..."->"App_Code". Or something like that
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|
|
i found a few issues going on here.
I created an App_Code folder and stuck all my c# files in it. The error changed and i still wasn't finding the code i needed.
When i did some searching on the web i found that my files had codebehind and not code file in the <page> section at the start. I've changed them all over and it seems to be working apart from a database permissions error, but that's due to a wrong Username password issue so i'm pretty confident that it's up andrunning reasonably well
Thanks
Russell
|
|
|
|
|
Dear All,
i am making web application using asp.net ,C# (Visual studio 2005).
i am using treeview in a form which i populate through database. now i want to fire event on node selection that is i want each node show display link. on selection of it, some event(Select_Change()) fire. i have writtten treeview as follow
<asp:treeview id="LinksTreeView"
="" font-names="Arial" forecolor="Blue" enableclientscript="true" populatenodesfromclient="true" ontreenodepopulate="PopulateNode" onselectednodechanged="Select_Change" runat="server">
<nodes>
<asp:treenode text="Report"
="" selectaction="Select" populateondemand="true">
i am able to populate it. but node does not fire a event on its selection. which i intend to do
please guide me .
thanks
regards
imran khan
|
|
|
|
|
hello everybody
I'hv created scrollbar with <span> tag
I can capture the onscroll event and also get scroll value on runtime.
but I am not able to set Min and Max value, smallchange and large change
for scroll bar.
Pl. help me out
Shital
|
|
|
|
|
What do you mean by a scrollbar? How have you built it?
|
|
|
|
|
I'hv created scroolbar with following code
<body onload="sliderInit();">
<span id="slider" style="position:absolute; overflow-x:hidden; overflow-y:scroll; width:20px; left:35px; top:58px; height:364px;"
onscroll="Scroll(slider);" ></span>
</body>
//this function creates span with vertical scroll bar
function sliderInit() {
for(counter = 0; counter <= 50; counter++)
document.all.slider.innerHTML += " <BR>";
}
//this function is for scrolling
function Scroll(spanObj) {
//do some stuff
}
can u suggest some solution
shital
|
|
|
|
|
Hai,
I am a asp.net c# programmer .i need your help in my project i want to show the total size of the physical drive and application in which my project is running...pls anybody help me....
Regards alex.
|
|
|
|
|
HI
make use of System.IO.DriveInfo in your application and play with it definatly you will get what you want
<l>Thanks and Regards
Sandeep
|
|
|
|
|
Hi,
Thank you very much.I got the size of disk.i want to know the size of our application in runtime...if you know pls help me..it's very urgent..
thanks alex.
|
|
|
|
|
Hi
What you mean by runing application ? i am confused
Is it mean that your application dll/exe then you can find that
System.IO.FileInfo fi = new System.IO.FileInfo("Path of your dll/exe");
long size = fi.Length;
it is only for server side .......
i think if you want for client side then you need to do in javascript again there might be some securities issues ?
<l>Thanks and Regards
Sandeep
|
|
|
|
|
Application means...
suppose a website host in the server..root directory is say x ,x contains all the files and folder related to that project. so i want to know the size of the folder x
i think u understand what i ment..
thanks for your help..alex.
|
|
|
|
|
Do you mean on the server, or the client ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
i want to know in the case of server in both the cases.
i got the value of the disk size.But i didn't get the size of my application in server ion runtime...
|
|
|
|
|
Hi frieds.
I am working in asp.net(c#).
I am going to make one application in which there will be a fingerprint hardware at some locations . When a registered individual puts his/her fingerprint on the fingerprint scanner , the persons fingerprint will be scanned into the system and there will be match with the one in the data base. Once this happens, the person’s details will be displayed on the computer.
Plz give me suggetion or some link how to make it?
how to enroll finger by scanner n how to check it
thanks in advance
Pathan
|
|
|
|
|
to this
u need a fingerprint scanner..(hope u have ) then u have to read its apis from where u will extract the data... and save it into database.. normally these days these hardware companies gives this facilities...
Ravi Kant Srivastava
(System Analyst)
HandsOn Technology & Engineering
Gurgaon
(India)
e-mail:ravikant@hte.co.in
|
|
|
|
|
Hi,
I am using the below code in my page, to call the Javascript function to open a popup calendar and the Selected Date will be assigned to the TextBox1. It works fine in my page.
<a id="idViewCalendar" href="JavaScript:GetDate('<%= TextBox1.ClientID%>')"><img id="idimg" src="../Images/DateImage.gif" onmouseover="" alt="Popup Calendar" border="0" /></a>
But Now, I wish to use this Anchor tag within the EditItemTemplate of the GridView. In that Template, I am having a TextBox and this Anchor Tag.
How can I pass the Client ID of the TextBox to the Popup Calendar Page? If this way is wrong, how can I proceed further? Pls guide me.
Note: If I am using the same code in my GridView, it gives the error like, TextBox1 is not Declared.
-- modified at 4:29 Thursday 8th February, 2007
Regards,
Jay
|
|
|
|
|
use the following line inside the javascript method GetDate to get the clientid of TextBox1
var txt1 = document.getElementById("TextBox1")
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
Hi,
Actually I am passing the 'Client Id' from the below code, when it is in Page.
<a id="idViewCalendar" href="JavaScript:GetDate('<%= TextBox1.ClientID%>')"></a>
When it is inside a GridView, then How can I pass the clientID of the TextBox1 (which is also inside the GridView) using the above format?
Otherwise how can I pass the "TextBox" id to the GetDate() method. Because When I tried as per your suggestion, It passes the 'null' to my Calendar.
How can I resolve it. Pls help me.
Regards,
Jay
|
|
|
|
|
I am using an update panel in my ASP.NET 2.0 AJAX enabled website for file management.
inside the update panel I am using a Grid to show the file details .while updating the file info in edit mode , the file upload control is used .On clicking update the posted file is nothing . How can we solve this problem ?
-- modified at 4:11 Thursday 8th February, 2007
|
|
|
|