asp.net

ASP.NET MVC2: modifying master css property depending on query string parameter

I am migrating a web site to a new one using ASP .NET MVC2. In the original site, master page has code-behind to check a query string parameter value. Depending on this value, code-behind dynamically modify some CSS property to hide / display master page elements. As MVC2 has no code-behind because we are supposed to perform everything...

ViewState alternatives in ASP.NET Webforms

Are there any other ViewState alternatives? I've heard a lot Like Session, holding the state of some of the page's controls' state and getting destroyed the moment the user leaves the page. I know I'm describing ViewState itself, but I'm looking for a pattern of sorts or suggestions so I can avoid ViewState altogether. An example of...

how to create a browse button

hi, how can a asp.net button be used to browse and upload items from my computer.use c# language if needed ...

ASP.NET MVC - HybridViewResult (ViewResult /PartialViewResult)

Is it possible to build a hybrid ViewResult that returns in depedency of an AjaxRequest or HttpRequest a PartialViewResult or ViewResult? IsAjaxRequest --> return PartialViewResult !IsAjaxRequest --> return ViewResult As far as I know my HybridViewResult should derive from ViewResultBase. But how to implement the FindView method? ...

querystring in asp.net

how to use querystring in asp.net. ...

show image onclick javascript

Hi, How can i load the original image when the tumbnail version of the image has been clicked? Im using ASP.NET in combinaton with javascript. The original images are big, so they have been scaled on server side. This makes the site load faster. But somehow, both versions (original and tumbnail) of the images are being downloaded. I'm...

ASP.NET - reload a dropdown?

Hello, I have a dropdown which shows filesnames and when the index is changed, the slected file is offered for download. I also have a button which creates new files ... now after a new file was created, the new filename should also be shown in the dropdown. It works fine, when I refresh the page, but this is not what I want. I tried p...

Validating textbox using javascript in MasterPage

Hi, I am using javascript for customValidator to validate textboxes in ASP.Net. The code works perfectly when I am using a normal page, but as soon as I put that inside a MasterPage, the code doesn't work. Below is the code for my aspx page. If I put this code inside a MasterPage it doesn't work. Could you guys advise me how to make th...

Unable to deploy and use WebORB enabled C# program

I have tried to deploy a WebORB .NET C# ASP.NET (C#.NET) application, but I am unable to get it to work. It will run successfully, but it doesn't do anything, and I get the feeling I am making some silly mistake. I have a Flex client which should read the data coming from the WebORB server, and the WebORB console shows that the Flex clie...

ASP.NET and jQuery - call from codebehind

Hi This is a problem i've tried so solve before but gived up. Basicly i'm using ModalPopupExtenders (from AJAX.NET) to display Panels with a few content (text, controls, etc). And i'm calling it from codebehind. And it works well. But now i want to replace the ModalPopup with some jQuery dialog box. The problem is calling it from code...

asp panel default button not working

Hi All, I am using ajax colllapsible panel extender in my project. So in one of the Price Range function panel i have 2 text boxes and one asp button that will handle the function of price range. Well i'm trying to set button as default button inside that asp panel but it does not work. I tried my page in firefox, IE & chrome also. It j...

What does string builder do???

what string builder command do in the asp.net cs file. ...

Add a unsupported tag into ASP.NET HtmlTextWriter

Hi I'm trying to introduce HTML5 into my apps , but I'm struggling to find a way to use HtmlTextWriter with a new tag. Would anyone be able to tell me how I can render an <aside>or a <section> tag using HtmlTextWriter and WriteFullBeginTag? I'm using webforms - C# or VB solution accepted. Thanks in advance Sniffer ...

Caching ASP.NET users related data within WCF service.

My requirement is to call WCF web service from ASP.NET code behind and pass some data for example: void Add(int x, int y); Result of the operation should be somehow stored within WCF web service (member variable). Later user should be able to call double Equals(); and get the result of the operation. Of course since it's an open w...

Benefit of useing UseSubmitBehavior in asp.net button

Benefit of useing UseSubmitBehavior in asp.net button? ...

Page contains both secure and nonsecure items

I'm working on a legacy web application - frames and a mixture of html, asp and aspx. The entire site is https. For some strange reason when I hit a specific page I get the magic message that says the Page contains both secure and nonsecure items. (IE obviously doesn't want to tell me what those resources are) I have checked the page...

How do i implement Inversion of control using Castle Windsor

Hi I having some problems implementing IOC using windsor. I have several different implementations of a data access class and i want to use windsor to be able to specify which data access class to use when using a business object. See the code below public interface IPersistable { bool Save(); bool Delete(); } public class Add...

Error on server when trying to show Crystal Report

I am getting below error while generating report using crystal report: Error in File C:\Windows\TEMP\repEnquiry {095737EB-07B4-437D-9E86-85780B7417B0}.rpt: Access to report file denied. Another program may be using it. For this i did google and found some solutions but still its not working: what i tried: -given full access to aspne...

User Control loaded Programatically with a DataPager doesn't Page

I have an asp.net user control with a listview and a DataPager that work as expected if it's loaded statically from an aspx page the usua way. <%@ Register Src="~/Controls/TricksSummaryOneSubTypeUC.ascx" TagName="sub" TagPrefix="uc1" %> ... <uc1:sub ID="skdlj" runat="server" TypeId="7" SubTypeId="706" /> But If load it dynamically in ...

Where have to begin the ASP.Net

i am software developer in c#.net and i also know ADO.Net and SQL. Now i like begin to learn asp.net, how can i start asp.net ,what should i know before starting asp.net . And also i need i need articles and ebooks for asp.net beginners. ...