|
Hi,
I would like know why ASP.Net has introduced the new directories and what is their significance. Are they meant for just logical seperation and to help in easily organising stuff or any other strong reason. And if we consider app_code folder which is meant for code files like .cs, .vb etc. What if I place any codefile outside of this folder.Because when I placed a .cs file in app_code folder and tried to compile it it was not compiling.
Can someone let me know what these folders are really for...
Thanks:
Rakesh
|
|
|
|
|
rockyl wrote: Are they meant for just logical seperation
It's ASP.NET 2.0 or later architecture.
rockyl wrote: And if we consider app_code folder which is meant for code files like .cs, .vb etc. What if I place any codefile outside of this folder
If you want to share some classes in whole application, you can keep them inside app_code. Classes inside app_code will be compiled automatically at runtime. ASP.NET treats whole app_code as single assembly.
rockyl wrote: I placed a .cs file in app_code folder and tried to compile it it was not compiling.
What was the error you are getting ?
|
|
|
|
|
Hi,
I am trying to print a document and then save it!
I first opened the document using Open(ApplicationClass, Word..) then
I activated the printer which is required then
I used printoutold
After printing a dialog box appears asking the user to enter a name to save the printed file.
Is there a way that i could avoid this user interaction and give the name of the file directly so that after printing it directly saves at the given location.
gauthee
|
|
|
|
|
|
Hi all, I get the following error when trying to build my website but can't figure out why.
error CS1002: ; expected
<%for(int a = 0; a < AdItems.Tables[0].Rows.Count; a++)
{
%>
<tr>
<td>
<div class="casinopromotions"><img src="<%=ResolveUrl(AdItems.Tables[0].Rows[a]["image_url"].ToString()) %>" alt="<%=AdItems.Tables[0].Rows[a]["image_alt_text"].ToString() %>" width="<%AdItems.Tables[0].Rows[a]["image_width"].ToString() %>" height="<%AdItems.Tables[0].Rows[a]["image_height"].ToString() %>" />
</div>
</td>
</tr>
<%
}
%>
Any suggestions and pointers to possible causes will be greatly appreciated
Thanks in advance
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
Don't worry, I found my problem. I did not include the = after the <% for width and height
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
I would rather suggest a CodeBehind check instead of using IF ELSE in .ASPX page increasing the clutter.
|
|
|
|
|
Its just one for loop, not if else, but will check if I can do it in codebehind, thanks for the suggestion
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
I developed an ASP.NET Application and I want to ensure that who ever uses my application, is installed with .NET Framework 2.0 on their system. If not, the application should first install the .NET Framework 2.0 and then runs the application.
Let us assume the .NET Framework 2.0 is not installed on one system. So now, how I can make my application to run the .NET Framework 2.0 to run (install) on a click of the link.
|
|
|
|
|
You can provide a link to the framework, sure. You realise they don't need it installed to view your site, right ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: You realise they don't need it installed to view your site
25 MB download + 5 minute installation + 500 MB diskspace to view a website. I would just close the 'X' icon at the top right of the window, if that is the case.
|
|
|
|
|
Aslong as the framework is installed on the server hosting the website, the users wouldn't need the framework installed, is there a specific reason that you want to install the framework on the users?
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
Hi All!
In ASP.NET application, we have to give refferences of namespace in pagename.aspx.cs as:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using FE_SymmetricNamespace;
using System.IO;
is there is any way to give refferences in web.config file instead of using each page?
|
|
|
|
|
I Never Look Behind wrote: web.config file
You can access web.config key elements using System.Configuration
|
|
|
|
|
Hello frnd,
i have a datagrid/GridView having one combobox and one radio button on it and at the end of the end there is a button named "Add" when i clicked that button sasme row should be add to data grid/Grid View
please help...
thankx in advance
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
would you please discribe the problem more and be more specific
|
|
|
|
|
Try this link
http://www.dotnetjohn.com/articles.aspx?articleid=27
|
|
|
|
|
Hi,
I have created such a web application that, user can upload photos by simply drag and drop method, means user have to drop the photo on the one cotrol on the web page. then he will get path of that photo in listbox. So I have to take that path and upload that file to server. It is working fine for local PC by File.Copy method. But it dose not working on server.It gives error as "Illegal characters in path."
can any one help me??????
Thanks!
I solve the above error but now one error is throwing i.e. Could not find a part of path
-- modified at 5:58 Tuesday 7th August, 2007
|
|
|
|
|
|
how to store class objects in data table using c#.net? please help me out.
|
|
|
|
|
You can't store objects in datatable.
|
|
|
|
|
|
please provide some code or explanation how to store user defined class objects using c#.net. actually i have one class and want to store its objects in my web application. please help me for that. so what to use cache,view state or session object and how to do it?
|
|
|
|
|
You obviously know the differnt ways to store objects, surely you're then able to find out how to do it ?
viewstate is no good because it doesn't transfer between pages, and it requires sending your objects to the client, which is a security issue, and a bandwidth issue. So, it really depends on what the objects are, but I believe for both the session and viewstate, they need to be serialisable.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi all,
i am using one image button up and listbox two are server controls . probelm as follows,
"when i am click on up button if did not select any value in list box i have to poup a message in java script.pls help me in this .
Thanks And Regards,
Guru
|
|
|
|