asp

ASP .NET upgrade to .NET or move to MVC

Hello, I'm fairly new to the .NET ASP and MVC. My company has developed an application using ASP2. They are considering upgrades: I'd like to know what the big advantages would be in moving to ASP .NET 4 and also would there be even greater advantages in using MVC4. Just some background. The application is internal and will not face...

Placing an ASP.NET ImageButton inside a TableCell

I'm trying to put an imagebutton in a tablecell, but the only property to add anything to a tablecell I know of, is the Text property. And that's for text, only accepting Strings. How do I add the Imagebutton instance instead? ...

how to pass value of text to "a href"

Hi all, I need you help me with asp code. I got a home page that contained User Name and Password for user to log in by using a href attribute and i don't know how to pass the value of text to a href to login.asp file. Please help me! Example: User Password ...

Append login and note/comment in one page, single click action?

Hi,I have saved two pages evernote.com/mobile/Login.action and http://www.evernote.com/mobile/CreateNote.action?paginatedQuery.page=0&amp;paginatedQuery.queryDefinition=RECENT%3A locally and want to create a single page for logging-in and creating note. Login page has this code- <div id="pageContent"> <div id="login_box"> <div id="l...

LINQ to SQL where ID not in some_list

Hey, I'm trying to make a LINQ to SQL statement which filters results where the ID is not in some list of integers. I realise the .contains() method cannot be used in Linq to SQL but for the purposes of explaining what I'd like to do, here's what I'd like to do: nextInvention = (from inv in iContext.Inventions where...

ASP.NET Membership multiple signed in?

Hey Is there any way (Via IFRAME or something like that) to enable me browse to 2 different pages on the same browser on 2 different accounts in the ASP.NET membership? Thanks ...

how to Embedded Code Blocks in ASP.NET Web Pages?

where we use <%@ %> <%= %> <%# %> etc. what else asp tags can be added in asp.net web pages? ...

NHibernate log4net performance problem - how to disable?

I was profiling our ASP .NET application to try and reduce the CPU usage and fond some strange behaviour regarding NHibernate and log4net. Over 50% of the time on our app is spent in the log4net GetLogger and CreateRepository methods, which are called from ExecuteReader in NHibernate. The screenshot below is a jetBrains dottrace hotspot...

Remove specific inline style with jquery

There's an asp menu I'm using that is auto inserting style="width:3px;" into my menu table tds creating a nasty gab in between my tabs. I'm testing to remove this inline style with jquery instead of our developer customizing the menu just for this cosmetic blemish. below is a simple example: <table border="1" cellspacing="0" cellpaddin...

ASP Bizarre Session COM+ Object Lost!

Hello Dear, I'm needing a lot of help from yours. I have an application in ASP, not ASP.NET ... Which uses several COM+ components developed for me. Below is an example of using one of the components. Dim componentXPTO Dim xpto componentXPTO = Server.CreateObject("NAMESPACE.XPTO") Set xpto = componentXPTO.myFunction(variables) Set...

Post to Web Service from ASP, from Remote Server

Hi Guys I'm trying to Post Data to a Web Service, from ASP (VBScript), using the CreateObject("Microsoft.XMLHTTP"). Trick is, I am able to post the Web Service if it resides on the same server. But the moment I post the web service from a remote server or different server, I assume its as if the post data never got sent. Below is an ex...

Mergin two tables from different databases

Hi all, I have two tables from two different databases. For example: Table: Articles1 - Database: db1 Attributes: id date headline text Table: Articles2 - Database: db2 Attributes: id date headline text Now i want to make an article feed with articles from both tables combined and sorted by date. From my knowledge it isnt possible ...

Problems with AJAX CascadingDropDown and DropDownList SelectedValue in EditItemTemplate.

Hi guys. I am having problem in EditItemTemplate of FormView. When I use such code in InsertItemTemplate everything works: <asp:DropDownList ID="Lic_PosiadaczLicencjiIDDropDownList" runat="server" SelectedValue='<%# Bind("Lic_PosiadaczLicencjiID") %>' /> <asp:CascadingDropDown ID="CascadingDropDown1" runat="server" TargetCo...

Could not load file or assembly App_Licenses

I was working normally but now i'm getting this error: Could not load file or assembly 'App_Licenses, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) I have researched for answers on the web but i cant find any specific h...

ASP.NET MVC passing several data instances from controller to view

I'm trying to build an ASP.NET MVC 2 application. I want to pass data to a view from a controller. I am able to pass it when it is only a single data structure. In the controller: private ArticlesDBEntities _db = new ArticlesDBEntities(); public ActionResult Articles() { return View(_db.ArticleSet.ToList()); } an...

Classic ASP recordset not allowing field update

I have a strange one here.. I create a recordset using Classic ASP Set rs = server.CreateObject("ADODB.Recordset") rs.ActiveConnection = g_conn rs.CursorLocation=3 ' adUseClient rs.LockType= 3 ' adLockBatchOptimistic on error resume next rs.Open ...

Late binding in child AppDomain (.Net)

I am trying to develop a plugin architecture in .Net. The application will be a .Net application. There will be directories which holds the plug-ins. Each directory will represent a plugin. Each plugin directory will also contain all the dependency dlls as well. The plugins need to be stored in separate AppDomain as the plugins may ...

Return recordset from function in classic ASP

Hi, I'm at a loss on how I can return a readable recordset from a function in classic ASP. This is what I came up with, but it's not working: Response.Clear Response.CharSet = "utf-8" Response.ContentType = "text/plain" Dim Count Set Count = Test Response.Write Count.Fields(0).Value Function Test Dim Query, Connection, Comman...

ASP Image gallery / sales option

Can anyone recommend a good image gallery, with password protect-able galleries? The website I am looking to install it on is a wedding photographers site so she can upload te weddings for her clients to view, the site is on a shared windows server with 1&1. Thanks in advance for any ideas :) ...

What is the best way in ASP.MVC2 to choose an image to display in the controller

I am playing around with an ASP.MVC site, I want one of three images to be displayed depending on the value of an enum in the strongly typed model I have. I could use an IF/Case statement in the view but it should be the responsibility of the controller I feel, what's the best way to implement this? ...