asp.net

Limit the number of results in a Nested ASP.NET ListView

Similar to my other question: I have a ListView bound to a Dictionary. Then I have a nested ListView for the dictionary's value's integers. I need to limit the number of items bound to the nested list to something like 5, and show a more button in the template. I can't find a way to get the more button to work, and to correctly limit...

Problem in Z-index of menu and ajax ModalPopupExtender in ASP.net

I using Ajax ModalPopupExtender but problem with this is menu in appication is display over the ModalPopupExtender. I also set z-index=1 for ModalPopupExtender and z-index=100 for but problem not solved. ...

How can I translate the following GridView inline style to classes for a stylesheet?

I believe the GridView is rendered as a table, so how could I translate the inline style of the following GridView to an external stylsheet using classes? <asp:GridView ID="gvQuotes" runat="server" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" C...

Problem with Url.Content in ASP.NET MVC

For some reason, I am getting a runtime exception when I try to use Page.ResolveURL or Url.Content within the default masterpage (Site.Master) in my newly created asp.net mvc application. This is very odd, because I have been using the ResolveURL helper function in .NET for years without issue. Here is my code snippet: <link href="<%= U...

can a wcf service be exposed using ssl and consumed by a .net 1.1 client?

Hi, I haven't seen anything explicitly saying this can't be done, but I want to confirm... We have a client who needs to consume a web service and they are still using .NET 1.1 I would love to use this as a reason to learn some WCF, I just want to make sure it's compatible.. from what I've read, it looks like I can host the WCF servi...

Finding JS error - "Stop running this script?"

I am working on a ASP.NET webpage that is rather complex with ajax, callbacks, javascript etc. I encounter this error intermittently: Stop running this script? A script on this page is causing IE to run slowly... Any help in finding the culprit is really appreciated. ...

What interacts with the DotNetNuke UserLogin function found in the AspNetMembershipProvider?

I'm trying to figure out where the login functionality is that interacts with the UserLogin function of the AspNetMembershipProvider section, there's no references to where the login functionality exists. I know this is the function to intact with the data, I just need to find where in the source code the login is so I can customize the ...

Query Notification Error

Hi, We have this weird issue regarding SQL Query Notification service. We have a main web application running with QN service so the cache item in the web get notification from SQL when the monitoring data changed. And it runs well. What is weird is when the other supporting web service tries to register QN subscription into SQL...

Catch error in GridView automatic databinding

I have a gridview with a DataSourceID set, so the databinding happens automatically. The problem is that sometimes, the procedure defined in the SqlDataSource takes a very long time to finish, so the binding comes with a timeout expired error. How can I catch this error without manually databinding the gridview and surrounding it with t...

How to add an entry into 'add/remove programs' for a .net windows app

How to add an entry into 'add/remove programs' for a .net windows app? ...

Why can I not get application object in classic ASP when I add a .NET Wildcard mapping to directory?

We're migrating a site from classic asp to .NET. In the process, I need to use .NET authentication to secure the classic asp pages. This works great with wildcard mapping...unless the classic asp pages try to use something like the Application object. I have tried adding an HTTPHandler to pass the request to the asp.dll, but to no avai...

ASP.NET: Shortest way to render DataTable to a string (HTML)?

What is the shortest way to convert a DataTable into a string (formatted in HTML)? Programmatically binding to a UI control and rendering to an ASP.NET page is not acceptable. Can't depend on the ASP.NET page lifecycle. The purpose of this shouldn't matter, but to satisfy curiosity: This is for logging/debugging/dump purposes in algo...

What is the best way to reuse business logic across Informatica ETL and ASP.NET CRUD pages?

I don't know the first thing about Informatica but I am looking for ways to resolve duplicating business logic that for inserting and updating records in a table. The problem is doing it in an efficient manner. 1) We have web pages that insert, update and delete records one at a time. 2) We have Informatica ETL load programs that take ...

Nested Form Problem in ASP.NET.

I want to show a pop-up on click of a button. The pop-up should have a file upload control. I need to implement upload functionality. The base page has nested forms. Totally three forms nested inside. If I comment the two forms then I can able to get the posted file from Request Object. But I was not suppose to comment the other two for...

How to get WebResource.axd querystring in correct case?

I am getting the css files for minifying and compressing from QueryString["path"] everything works correctly for my own css files like main.css. But when I try to acess the webresource files I receive a 500 error. The parameter which comes after the webresource.axd is case sensitive and I receive it from QueryString["path"] lowercase. T...

Reporting Services - Report Paramaters Losing State

I am embedding a report into my ASP.NET app using the report viewer control. When I change a paramater value and click View Report, I'm losing my paramater selection. Any ideas? ...

custom server control on MOSS publishing page

The question was: I've got a page in a MOSS 2007 publishing site that uses a layout (the page inherits from Microsoft.SharePoint.Publishing.TemplatedRedirectionPage),and I need to write a codebehind for this page, but still let the layout templating mechanism work. My attempt was to write a class that inherits from...

How much does loading images or saving images to the server affect the server load?

If too many images are being loaded from the server at once (or over a period of time) will it slow down the website for users? What about saving images to the server? Would a website that puts a lot of stress on the server makes the website more vulnerable to DOS attacks? If our website needs to save and load mass amount of images, i...

Repeater, Custom Paging, PagedDataSource, possible?

HI, I'm having a Repeater bound to a ObjectDataSource. I retrieve my data using a Typed DataSet and my TableAdapter do query a subset of data according to a startIndex and pageSize. I'm all set for custom paging and it actually works. However, I would like to know if it's possible for my TableAdapter to return a PagedDataSource, to bind...

JQuery Ajax

I'm using JQuery to make AJAX callbacks to asp.net page methods. All works well. However, when I click a hyperlink to go to a new page while a long running callback is in progress, target page doesn't respond normally. Seems like it's waiting for a callback to finish because target page responds in same amount of time it takes for a c...