Edited by Nancy Michell
MSDN Magazine April 2004
View Complete Post
My project is recently migrated from 2008 to 2010
actualy we developed project in VS 2005 in that we created setup file but when we migrated to vs2008 setup file giving problem to us.
now when we make setup file it is including .aspx.cs files also but this if we publish our project it wont including source code.
why setup file including .aspx.cs files is there any way to change.
plz replay ASAP
ÃÂ i am creating a simple web portal, but i am stuck in a aspx page which created by inheriting master page ,
there is some jscript code, but i don't know where to put this code in that page.
please help out ppls.ÃÂ
thanx in advanceÃÂ
Not sure which category to put this question in, so I will put it in here.
Just to give you an idea of the layout of my solution, I have the main project, along with 2 class libraries, BLL and DAL. (Business Logic Layer and Data Access Layer)
The BLL refers to the DAL and the main project refers to the BLL.
I had a test website and the code worked fine, but the same code will not work on the real project. The only difference is that in the test project, the code was on an aspx code behind, whereas in the real project, it is an ascx code behind (Web User Control )
The code is:
Dim connectionString As String = ConfigurationManager.ConnectionStrings("ASPNETDBConnectionString").ConnectionString
Dim recordEntry As New UserRecord(connectionString)
recordEntry.UserName = "TestName"
recordEntry.BMI = bMI
recordEntry.BMR = bMR
recordEntry.FTM = fTM
recordEntry.TDEE = tDEE
recordEntry.TodayDate = dateForToday
I'm not sure if this is the right place to ask this, so, sorry if it's not. I have to create a web application. I can handle that. But, it has a requirement I've never done before. I need to create an API for that application, so other apps can get or set information from/to my webapp.
I've been searching a lot and still don't have a starting point. Seems that MVC is really good to do that, but I'm not familiar with MVC, so I would need a starting point. I was thinking to do it in aspx (Framework 4), but do not know how to do that with aspx either.
Can anyone help me to get started with this?
Thanks in advance
My organization uses a CMD file to install updated files for a major enterprise application. Currently, we send out an email to users with a link to the file and instructions to run it, BUT inevitably users don't update their machines until their in field and try to start the app.
We're now liking the idea of using an ASPX page to prompt the users to run the updates and to capture the fact that the updates have been run. I realize that we can't capture the success or failure of the update. But we'd like to capture the user accessed the page.
Is it possible to embed into the markup for the page a link to the file on the local intranet that the users can click on to run the file?
The user accessing the page would capture that they did just that. We'd deal with wether or not the update was actually installed or if it failed later with them directly.
Hi again, i have a client that needs me to create a custom view on thier webpage similar to Microsoft Word.
It goes about that, when I click on an image it redirects me to another page and must create a custom view for a certain paragraph on that page. I am not sure how to do this and wonder if anyone knows how.
I am using C# programming language if that helps at all.
I face this "Jscript runtime error: Object does not support property or method" whenever im trying to run this page.
Im using Microsoft Visual web developer 2008, i wonder if this is related to my problem, i not sure there is anything i need to add as reference or update anything.
Anyway, it happen that last time i tried use the same type of jquery code in another project and it seems to work well without an error.
But now when im try to use it again in this recent project i created, it come out with this error and i have no idea how to solve it even look through google and this forum.
So below is my code that i need to use.
I've a problem with my Visual Studio.
On the 13th of August 2010 i installed a Windows update on my vista sp2 pc. For this date my Visual Studio 2008 sp 1 always has closed itself by opening an aspx-page in designer view. There is no error message just closing the window. I restored a backup of my windows from the time before updating it and it helped, i could open aspx pages in the design view till the update has been installed again automatically after rebooting the pc. I can't disable windows updates, cause it's my pc at work and safety is very important. I hope you could help me out of this disaster.
I want to write own control which can contain other. And I want to define content of the control in the .aspx file where the control is defined. I have written such control. But now I have issue with ViewState of inner controls of my control. The following samle illustrates the issue: I defined two asp:DropDownList ID="ddl1" and ID="ddl2" One of them is inside of my control and other is outside. When posback is occurred asp:DropDownList ID="ddl1 loses state and becomes empty. How to say ASP.net to store state of inner controls defined by this way?
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyControl.ascx.cs" Inherits="DynamicControls.Controls.MyControl" %><div class="box"> <div class="Header-Left"> <div class="Header-Right"> My Control </div> </div> <div class="Content"> <asp:PlaceHolder ID="contentPlace" runat="Server" /> </div>&
I'm currently having a problem with one of our old .Net 1.1 applications. For generating the user interface, a lot of incude statements were used.
In these includes, the variables from the parent files are used.
Now I have to use at least .Net 2 and Visual Studio 2010. The problem is that VS tries to compile these include files, which of course failes.
Is there any way to restore the old behavior again?
Hello, I'm updating around 15 pages from .asp to .aspx (.net 2.0)
My question is, do I have to put a header redirect 301 (permanent redirect) on each old file, or can I put it in global.asax file with a case checking for any of the 15 files?
I some tries to go to old.asp will it execute global.asax anyway?
What would the best aproach be?
I have a classic asp web application. I am trying to add an aspx(C#) page to the existing asp application.
The existing asp pages have include pages for header and footer. How to add the classic asp include files in aspx page.
Also, How to deploy the aspx page in the existing classic asp web application.
Years ago I had an interest in this language (which I think is a cool achievement).
There was writing on the wall that it was not a first class citizen, it never got editing support in VS.
I haven't given it much thought for years.
There is a compiler for it in .NET 2. (jsc.exe)
I see that it's slated be in .NET 4 (though the DLR language managed JScript isn't).
I used the language in .NET 1 for it's eval and I see that others are doing the same. (I also see that there are at least a few commercial uses, like Sony in Sound Forge and Vegas.)
Does anybody here have a good handle on the spectrum of people who are using it, the attitude of management in MS and any IDE support for the language?
When is the .NET Garbage Collector unable to reclaim memory? The answer might surprise you. Stay tuned.
MSDN Magazine January 2007
Font Sizing, Internationalization in JScript, and More.
MSDN Magazine June 2003
In a previous article, the author devised a simple method to detect Graphical Device Interface (GDI) objects that are not properly released by Win32-based applications on Windows 9x platforms. Because some newer versions of Windows require a slightly different approach to GDI leaks, the author has updated his techniques for those operating systems. He builds and explains two tools designed to detect and eradicate GDI leaks in applications running on Windows XP, Windows 2000, and Windows NT.
MSDN Magazine January 2003