asp.net

AJAX Hover panel hiding under containing DIV with position: relative

Hi- I have a gridview that is contained in a DIV with position: relative so it scrolls within the DIV and headers don't scroll. Inside the gridview I have ajax hover panels on a column. The issue is when I have a large number of rows causing the grid to scroll, the hover panels don't stay with their row or are partially hidden under ...

Multiple reCAPTCHAs in one ASP.Net page

Hi, It is possible to add multiple reCAPTCHAS in one form? I tried doing so, even giving the multiple reCAPTCHAS different IDs, but when I load the page in the browser, only one of them is shown. Is this by design? I need the two reCAPTCHAS because one is for Login, and the other one is for the Register form, which will be shown on the...

asp.net focus lost when scrolling

I have an asp.net webapp with a small bug where anytime you click the page scrollbar the focus gets reset to the first control. I'm seeing this problem in IE 7 and 8, only in my asp.net app, not on any regular webpage (and not in firefox). It seems that its not just a browser lacking-features issue or an existing IE bug (as it behaves ...

ASP .NET - How to get the value from a stored procedure via a SQLDataSource

Just starting to learn ASP.NET (C#) and I am using Visual Studio 2008. I have a stored procedure: ALTER PROCEDURE dbo.StoredProcedure1 AS SET NOCOUNT ON SELECT MAX(issue_id) FROM tableb as max_issue_id RETURN Which is linked to a sqlDataSource. How do I retrieve the value from the stored procedure by using the sqlDataSource? I...

Which is better, and when: using statement or calling Dispose() on an IDisposable in C#?

Suppose I have the following: using(var ctx = DataContextFactory.Create(0)) { ... Some code ... } Why not just do the following and lose a couple of curly braces?: var ctx = DataContextFactory.Create(0); ctx.Dispose(); Thanks for the advice! ...

ASP.NET UpdatePanel throwing "Invalid Postback" exception for Repeater buttons

I have a simple repeater inside of an UpdatePanel that contains a label and two image buttons. The OnClick property is set in the attributes of each button at design time. When I click either of the buttons, I recieve the "Invalid postback or callback argument. Event validation is enabled........". I have done the exact same thing in oth...

Control label in other page in asp.net using C#

i want ask about control label or link i have label in home page and I want change this label content from admin page how to control and change it? ...

Changing C# datalist item programmatically

I have a datalist i want to programmatically run some checks and then change the text that is been displayed. Can this be done ? Any examples? ...

ASP.NET membership - 2 application ID records

I have an ASP.NET site under development on my computer. It has it's own sqlserver database. For some reason the membership provider system seems to create two application records for the project. This causes problems for me since the membership system is creating two records, one for each application record, for each user in the system....

How do I run a unit test on a method in a classic ASP.NET project using VS2008?

I just wrote some new utility methods within a non-page class for an existing .NET webforms application and decided to try to unit test using the VS unit test framework rather than testing by hand. I've used the unit test tools before, but only on EXE and MVC projects, and am encountering an error connecting to the WebHostAdapter no mat...

How can I tell what user a VB.Net application is running as and how can I change it?

We have an app that needs to access network resources. It's written in VB.Net. The application can't access the files on another server via a UNC path. How can we find out what user the application is truly running as and how can it be changed? We tried this KB from Microsoft... but it didn't work. ...

Find assigned EventHandlers in debug in asp.net / C#

I am having an issue with asp.net and a third party control that is embedded in a user control. I want to assign an event handler to one of the third party control's events. It allows the assignment but the event handler never get's touched. I believe that I am either messing up the event handler assignment or assigning it at the wron...

Are there any 3rd party components that let you read/create/edit PDF/Word/Excel documents in ASP.NET?

Are there any 3rd party components that let you read/create/edit PDF/Word/Excel documents in ASP.NET? ...

Using ASP.NET login controls wih deny="?"

I have a website built with ASP.NET (3.5) and want add some level of security into it. I am using the login controls to help with this. I have one issue though. I have within my web.config the following. <authorization> <deny users="?"/> </authorization> This work fine when a user has not logged in before (ie. if they goto ...

encrypting web.config failed error

hi guys, I know that ppl have already asked questions regarding encrypting web.config. im also trying to encrypt my test config file, but im getting this error. aspnet_regiis -pef "connectionStrings" "C:\encryptedWeb.config" Encrypting configuration section... The configuration for physical path 'C:\EncryptedWeb.config' cannot be opene...

Umbraco: Backend User Control

I have successfully created and integrated successful user control in the Umbraco dashboard. The page begins with a search control that returns a list of editable items. In my user control I am having issues with directing the link for the edit page. I'm trying to link directly to it. Here's that code: <asp:hyperlinkfield datana...

Problem in using Isolated class

Hi I have to store some hidden information in Isolated space. For that I am using System.IO.Isolated class like IsolatedStorageFile isf = System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedStorageScope.User | IsolatedStorageScope.Assembly, null, null); Stream writer = new IsolatedStorageFileStream(filename, FileMode.Crea...

ASP.NET MVC AJAX Sys is undefined error

I am getting a "Microsoft JScript runtime error: 'Sys' is undefined" error on one of my pages in an MVC application when I attempt an AJAX call. The AJAX call is made from a partial view which is embedded in more than one page. It works fine on all of the pages except one. I have read posts pointing to the web.config file settings and...

C# :GDI+ : OverWriting an Image using Save Method of Bitmap

I have an ASP.NET C# page where i am resizing the images in a folder .I am using GDI+ to do this.I want to resize the images and replace with the old images.So when i am trying to save with the existing name ,Save method is throwing an error .But if i give a different name it is getting saved.But i want to have the same file name for the...

HTML Layout, ASP.Net, Browser Difference.....there had to be a better way

OK first of all let me say i'm not much of a design guy. Most of the work i do is usually on the backend/infrastructure (WCF,DB,Buisness Objects). We don't have a formal web designer unless you consider someone with a communication major who uses frontpage type programs to design web pages a web designer. I know basic HTML of course but ...