asp.net

Webservice unavailable

I have an ASP.NET C# 3.5 web application that consumes another ASP.NET web service as a web reference. The web service is built into some proprietary hardware device. The problem is that that device has been having troubles and not alwasy accessible. My web application is suffering brcause of it, as it takes over a minute to load. It doe...

ASP.Net: Tight loop In presentation layer

For a single web request, We fetch more than 1000 rows of data from an external system and we need to re-format the data into much better presentation format before we display it to the end user on the web page. When we loop through the data in ASPX pages, it is creating a hard loop (or tight loop?) which is consuming more than 95% of ...

Custom Asp.net Navigation Menu

Are there any recommended ways on developing a custom navigation menu in ASP.Net similar to how the built-in Asp.Menu navigation/web.sitemap works? We need to replicate the exact menu structure that a DNN site has for another custom built web application, and its ability to be generated on the fly in case of any addition to the parent m...

Passing querystring Ids URL Routing using namespace system.web.Routing

I'm new to URL routing. Case 1: I can implement URL Routing for URL:/content/category.aspx mapped to /Reservation Case 2: I'm not quite sure how to handle the query string values. For example: URL:/content/category.aspx?SID=5&CID=191 I want this to map to: /Reservation Code written for Case 1: Global.asa Sub Application_Start(By...

How to fetch Gmail contacts?

I have a scenario in my current application where I want to fetch the Gmail id's of my users. Could anyone tell me the way with piece of code in C#? Note: I am developing a web-base application in asp.net with C#. ...

Scroll bar reset on GridView in ASP.NET

I am using a GridView and ListBox in a page. Gridview contains the data from db bind as DataSource. When clicking on an item in GridView the listbox displays the subitems. My problem occurs when there is a scrollbar in GridView. When I select the last item from the gridview, the subitems are displayed and the scrollbar is going to up. I...

ASP.net Page Loading popup

Hey guys, I was wondering if it is possible to have a modalpopup show up on page load, saying that the page is loading. I have a page that gets a lot of data from an external source which means it takes a bit before any of the controls are actually filled. I would like to have a popup or something similar that tells the user the page is...

Best practice to join nhibernate and ASP.NET membership/role/profile services

Hi! I've got a generic ASP.NET (MVC) application, that uses NHibernate as the model persistence layer, and ASP.NET Membership/role/profile services as the user management layer. The question is what can be considered as the best practice to create linkings between the domain data and the users. (For example is I want to create a forum ...

How to port this Linq to VS 2005

Hi guys, I have following code in VS2008 If Linq.Enumerable.Contains(Of String)(selectedUsersRoles, RoleCheckBox.Text) Then RoleCheckBox.Checked = True Else RoleCheckBox.Checked = False End If I need the above code in VS2005 What can i do instead of linq in above code?Can any...

Adding "Export to XML" to Dynamic Data Site.

Am working on a business layer for a complex web application and am temporary using the Dynamic Data Site functionality to allow data to be entered into the many tables that I need to maintain. I don't want to spend too much time on this DDS since the business layer needs to be finished first. Once the business layer is done, it gets shi...

Binding a simple sort dropdown to a list in MVC.

Hi guys, Im trying to bind a dropdownlist in ASP.NET MVC to a class. Luckily for me this will be a number between 1 and 10, however I'm not getting the output in my HTML that I would expect. I've set both the value and text properties which are populated ok in the View, but the selected value refuses to render. This is within the initia...

safari browser fails to handle cookie based asp.net sessions

any ideas why my SESSION code works with IE+Firefox+chrome but fails with safari.. page1.aspx has code: Session("sessioncreated") = Now.Ticks page2.aspx : problem is here( when user comes to page2:) If Session("sessioncreated") Is Nothing Then ' critical error - SAFARI comes here, data is lost else ' all other browsers come...

C# - Show the differences when comparing strings

In my asp.net project, I have two strings (actually, they are stored in a Session object, then i do a .ToString() ) This project is part of my free Japanese language exercises on my website (Italian only for now, so i won't link/spam) For now i do an if (original == inputted.ToLower()) , but I would like to compare the strings and high...

Firefox and Updatepanel

Hello. I have a problem with FireFox and ASP.NET UpdatePanel. I have in a form a checkbox and an UpdatePanel. When I check the checkbox, an asp:panel which is into the UpdatePanel should become visible. <asp:CheckBox ID="cbMoreOptions" runat="server" Text="plus d'options" AutoPostBack="True" OnCheckedChanged="cbOptions_CheckedChanged" /...

Change color of scrollbar of listbox in ASP.NET

How to change the color of scrollbar of a listbox in ASP.NET? ...

CheckboxList - Use web.config value in text field

Hi there, The scenario I'm dealing with is I have a set of entries in a database that have an image associated with them. This image needs to be 'accepted' or 'rejected' via a web interface. I'm using ASP.NET WebForms. I'm attempting to databind my recordset of entires to a CheckBoxList control. I would like to combine data from my da...

Error in javascript to open new window - netilla platform asp.net

Hi, I have got a weird problem opening a simple .aspx page using a Javascript on the click of ASP.net server control. It works perfectly fine in my local system. Scenario: The application is deployed to production server. Clients get remote access to the application thr' Netilla platform which runs in https mode. Code snippet: Protec...

Expanding gridview's row.

One of gridview's column is a "Content" column that can have few lines of text (it can be literal, textbox or label ). In "default" mode i want it to show only the first line and a link button: "(more)" or "(read)". Clicking on this link should expand the column and display full content. What is the best way to do this? ...

Detecting viewstate tampering

It has been seen in my asp.net project that the viewstate has changed. Is there anyway to check whether my ViewState has been tampered with? (ideally with C#) ...

Asp.net error creating usercontrol from WebMethod

I'm referencing the article reference To create a UserControl dynamically and pass it back to a page via jQuery. When I just do a simple text in the UserControl "Hello World" everything works great... however, when I tried putting interactive controls on the control, I got the following message in my WebMethod (so the jQuery call stuff...