I create a simple website with visual studio 2008(asp.net3). I use some control server that is supported only .net3 such as ScriptManeger. When i compiled the website in .net2, some errors are appears.
I want use this website in ubuntu web server. In ubuntu Server 10.4 i can use asp.net2 to run aspx pages, but i don't know how run my website page with aps.net3?
currently iam using .NET1.1 version in next few days i will be migrating this .NET1.1 application to .NET3.5 version...so my question is how to migrate this .NET1.1 to .NET3.5..? How to migrate this & what precuations i need to take.?
My development computer crashed a few weeks back. I took this as the perfect opportunity to upgrade my developmental tools as well as migrate my web app from .net 2 to .net 3.5.My question deals with themes and calling themes from an httpmodule.
I have isolated the problem in two project which are the same except one targets 3.5 and the other 4.0This is breaking my app, and really causing major headaches.This is the mapping of the route:
[Code]....
Which uses a custom contraint:
[Code]....
This is the controller Action [Code]....
In Home/Index.aspx I have created a few links:
[Code]....
All link have a different link text wich I use here to reffer to themThis generates the following links which are in my opinion faulty in both frameworks, but 4.0 offers no workaround.In 3.5:
actionlink = /Home/Special (?) actionlink routevalues = /MyPrefix (This is what I want) routelink= / (?)
I open a pop up page(child page) by using jquery(jquery.colorbox.js) in asp.net application. now when I click on search button I want to close the pop up page(child page) and refresh the UpdatePanel1 by using search parameters. for above I need to execute server side function in parent page. code to close pop up:
child.aspx: <script> function closePopup() { [Code]....
When I add an update command to my page and run the page I get this error message
Server Error in '/MYApplication.
Incorrect syntax near '-'.Must declare the scalar variable "@recnum".
Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Incorrect syntax near '-'.Must declare the scalar variable "@recnum".
Source Error:
[Code]....
Stack Trace: [Code]....
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
I'm building a dynamic form using XML and XSLT. Anyway I'm using a custom asp.net control for CKEditor, it's an HTML editor.
When I try to add the controls from the XSLT using Page.ParseControl(<the-string-from-the-xslt-here>), I get a warning saying:
Unknown server tag 'FCKeditor.CKEditor'
And of course, if I remove the control from the XSLT everything is working fine and all the regular asp.net controls like TextBox etc get rendered to the string just fine. Does anyone know what I can do about it?
I need to make an ajax call from my javascript and access a control on my page. Using a webmethod wont work then since it's static, do I have any other options?
I have a webapplication based on MonoRail, where we utilize the routing feature from MonoRail. On the first request after the application has started, the routing isn't initialized. To circumvent this, I have the following code in Application_OnError():
public virtual void Application_OnError() { if ( // identified as routing error ) Server.TransferRequest( Context.Request.RawUrl, false ); return; }
Problem beeing that on our development server (which runs server 2008 R2, with IIS 7.5 and .NET 3.5) returns a blank page without headers, but on my workstation (which runs win7, IIS 7.5 and .NET 3.5) it works fine.
What could be the cause of this? If the code in Application_OnError() throws an exception, what would be the expected output?
I have verified the following:
The access-log shows one entry, I'm not sure if a TransferRequest would show up as a second entry when invoked successfullyThe application actually do some work according to my internal logs, and it doesn't die since a subsequent requests works flawlessly (because routing will be active)
I have a parent page with two data controls. I want to be able to open a child window, do something on it, and when it closes I want to rebind only one of the two data controls on the parent page. I have the control I want to update within an UpdatePanel so would like to call rebind it and call UpdatePanel.Update().
I have a Asp.Net application eg its name is ABC and I have a server eg whose name is XYZ, where the application is hosted from. The default page for the application is Home.aspx.Now the requirement is I want Home.aspx to open automatically when the server name is typed in the URL. Currently for accessing the Home page I writehttp://XYX/ABC/Home.aspx but I want Home.aspx to open if I writettp://XYZCan anyone suggest how I can achieve this. I have one solution that is making a HTML page as default in IIS and then redirecting it to the respective link.
I'm implementing Outputcache in my application and it works fine, but the first time always take a lot to load and the next following request will be faster...
I would like to know if there is a way to initiate the page caching on the server side and serve the cached page upon the very first request, rather than have it triggered by the user one first time.
I have a requirement where a user logs on to a server where exists a website. The user bring up the site on a browser on that server and loads a power point presentation slide. At that time, users using their laptop clicks on the link to that site and sees that particular PPT slide loaded on the server. Then the operator/user on the server clicks on the second slide and the laptop would now see the second slide. Is this possible to do? If yes, then what technology to use? DHTML? or something else.
Sometimes when transferring to a different page, I have to use response.redirect instead of server.transfer, and when I do, the name of the page always shows up in the url such as [URL]
I use server.transfer when I can, but unfortunately I haven't found a way to use it unless the transferred page refers back to the parent when leaving.
How can I mask what page is being viewed after doing a response.redirect to another page.
as u know, you can call Server.Transfer() or place some values in Session["objName"]=value; inside your page. but i'm writing a class which has not page, so it does not have any Server or Session object.
how can call this objects or methods outside of the page (within my class) ?
I have a custom listbox control intern it has "hidden input server control".and i want assign values to that hidden control.That custom control is in table which runs at server.When i try to find hidden control using Page.Findcontrol and <tblserver>.findcontrol it is returing with null.Can you please help on this.
Note: If i use Request["HiddenCtrl"] am gettting values,but i want assign values to that control.
I was wondering if there was anyway to populate the page with asp.net code like "<asp:Repeater ID="rptProducts" runat="server">MORE_CODE</asp:Repeater>" and then have the server use that code on the page. I'm not sure if i'm making sense. Like writing the asp.net front end code to the page dynamically before the .net engine generates the output html.
I'm very much a newbie to ASP.Net and am getting the "a page can only have one server-side form tag" error. I have searched the internet for clues, but my understanding (or lack of) means I can't adapt other peoples solutions to resolve my problem.My master page has the following code:
I have custom server control contains templatefield when an out button clicked the field disappear , when can I rebind the control (inside its class) supposed that Control.Page.OnInit+=new EventHandler(rebind()) doesn't do any things ?