asp.net

ASCX controls ASP.NET - Cannot find Visible method

In a particular page i have a ascx control which contains a table. Now I want to set this control visible/invisible but the visible method is not detected by the intellisense. The only methods are 1)Equals and 2) ReferenceEquals Main Page <VPM:VotingPolls Runat="server"></VPM:VotingPolls> Thanks ...

Deserializing JSON objects as List<type> not working with asmx service

I am having trouble deserializing my JSON string. I have a class of type person with public properties for sequence number of type int, first name, and last name. I want to pass an array of these objects in JSON format and have them deserialized as a list so I can loop through them on the server, but ASP.NET says something about not be...

Changing CSS style from ASP.NET code

I need to change the height of a div container(CSS Property Height) from ASP.NET code (VB). How can I do that? Thanks ...

Raising javascript event from an ASP.NET user control and handling in ASP.NET page

In an ASP.NET page I have a user control and I want to perform some action within it using javascript. When that action is complete I want to raise an event (again in javascript) to be picked up by the containing ASP.NET page (again in javascript). The reason I want to do this is because I have more than one user control on the page and...

Typed dataset not recognized when moved to another project

Hi- I moved a typed dataset from one project to an ASP Web Application project. I put the typed dataset into one of the existing directories as it was in the App_Code directory of the previous site but don't see the option to create that asp.net folder in this project. Now, when I try to instantiate the typed dataset, the compiler says ...

How to set Custom Text into DropdownList in ASP.Net

I have dropdown list control in one of my application and when I add Items in it from database Its displaying the first Item into Dropdown list by default but I want to display someother text into this like "Select Item from the List" Is there any way I can do this . Also Can you please help me setting the same value from javascript ...

Bring the data module to work with --- pass-Store-use a connection inside a reusable data module

I want to seperate the data module of a site into an assembly ( a single dll file ) , What is the best way to get-store and pass the ConnectionString of the site in dealing with the web application . Inside the data assembly I made a static class named ConnectionManager . It has a property named DatabaseConnectionName , that I want to p...

What are the current best practices for load testing and profiling ASP.NET web applications?

I am tasked with improving the performance of a particular page of the website that has an extremely high response time as reported by google analytics. Doing a few google searches reveals a product that came with VS2003 called ACT (Application Center Test) that did load testing. This doesn't seem to be distributed any longer I'd lik...

What happens when a user closes their browser waiting for a long running web service call?

I have a similar issue like here: http://social.msdn.microsoft.com/forums/en-US/biztalkgeneral/thread/87d5a6ec-04ee-4c6f-8267-f526ee105f0b I have an asp.net web page that calls a BizTalk web service. The BizTalk orchestration does its stuff and returns a response to the asp.net page. The process could take up to a minute or two. I ge...

Handling dynamically generated controls in asp.net

What's the best way to handle data entered through dynamically generated controls in ASP.NET? Currently, I have a group of controls that are generated in the Page_Load stage, and I need to access the data from them. It seems like it might be possible to just use a hidden field that's read and parsed on postback, but I'd like to know if ...

How can I avoid a "blinking" progress div on a fast result with jQuery ajax?

I am using jQuery for my AJAX calls to an ASP.NET backend using this approach. I am using .ajaxStart and .ajaxStop to show and hide a progress indicator. When the AJAX request finishes very quickly, the progress indicator "blinks" because it is not displayed long enough. One possible solution would be to display only after a minimum ti...

Free DotNetNuke skin resources

Does anyone have any quality resources for some free (or cheap) DotNetNuke skins? Most of the skin resources in the DotNetNuke ecosystem are to costly when you need a simple skin for a site that may not turn any revenue. ...

Webform Validation Frameworks

I find that in most of my web projects a large majority of my time is spent validating user input both on the client-side and on the server-side. I have worked with the ASP.NET form validation controls, but I have always found them to be cumbersome and never really work the way I intend them too. So usually I end up rolling together my...

.Net implementations

I've worked at two companies that implement ASP.Net two different ways. I tend to lean towards A, but my current job follows the B (more typical) approach. I'm wondering which is best, and also, are there formal names for these implementations? A) No project or solution was built. We simply pointed Visual Studio to a directory and sta...

Delete all elements at application close in ASP.Net.

Can anyone help me in this. Am using Asp.NET WITH C#. I am have an number of products in my database. When I run my code all the products values are stored in a database table. Without an exit button, if I close my application, when I run for second time the database table should be empty. I CANT USE !PAGE.ISPOSTBACK because I add di...

How to authenticate users on one site and pass credentials to other site? ( Windows Authentication, ASP.Net)

Hi, We have multiple web-applications running Windows authentication.Users log on to the websites using Domain\Username which is different from the DomainOther\UsernameOther that they use on their local computers. Considering we have 2 sites One.xyz.com and Two.xyz.com both running Windows Authentication (and user logs in to both using D...

How do I retrospectively create unit tests for a .NET application?

I am new to unit testing but am beginning to think I need it. I have an ASP.NET web forms application that is being extended in unforeseen directions meaning that certain bits of code are being adapted for multiple uses. I need to try and ensure that when changing these units I don't break their original intended use. So how do I best go...

Response.Redirect with # anchor, does not work in IE7

Response.Redirect(string.Format("myprofile.aspx?uid={0}&result=saved#main",user.UserID)); said code translates to IE7 - myprofile.aspx?uid=933fdf8e-1be0-4bc2-a269-ac0b01ba4755&result=saved FF- myprofile.aspx?uid=933fdf8e-1be0-4bc2-a269-ac0b01ba4755&result=saved#main why does IE7 drop my anchor? edit: I should mention I am using thi...

Export Crystal Report to Text File - No RTF File

I am using Crystal Report that comes with VS 2005. I need to Export the Crystal Report To Text File. What's the way to do it. ...

ASP.NET Local Development Setup

I would like to start learning ASP.NET on a for-fun project. I'm hoping to setup a local server to do my development on, but I don't want to pollute my user account with a webserver, database, and developer tools. I'm using Vista Home Premium as my desktop OS. Is it possible to setup a separate user in vista and contain all the develop...