asp.net

Practical Application of MVC || When to use, or not use MVC

I have seen the ASP.NET community buzzing about MVC. I know the basics of its origin, and that there are many sites (unless I am mistaken, stack overflow itself) based on ASP.NET MVC. From everything I have heard and read about MVC it seems to be the future of ASP.NET development. But since I don't usually dabble in .NET web developme...

Can I make a website full screen without flash or silverlight?

I'm working on something that needs a webpage to go full screen. The screen must become completely white. Is there anyway that I can do this without flash or silverlight? Something like ajax for example? Thanks in advance edit: Im not trying to force anybody into fullscreen, this will be mainly used by a couple of people. Even so I'l...

How to prevent ASP.NET 3.5 SP1 from overriding my action?

In my master pages I have <form ... action="" ...>, in pre SP1, if I viewed the source the action attribute would be an empty string. In SP1 the action attribute is overridden "MyPage.aspx?MyParams", unfortunately, this causes my postbacks to fail as I have additional pathinfo in the URL (ie. MyPage.aspx\CustomerData?MyParams). I have c...

How to use JQuery with Master Pages?

I can get simple examples to work fine as long as there's no master page involved. All I want to do is click a button and have it say "hello world" with the javascript in a .js file, using a master page. Any help very much appreciated :) ...

SQL Server Express / MS Access LINQ Features, Which One to Use?

I have a few ASP.Net database front-end websites where MS Access is the back-end. I am trying to use ASP.Net dynamic data website. Should I change this database to SQL Server Express or something else to make it easier or should this work from with MS Access. ...

Print Report without ReportViewer in ASP.NET

Hi, I am using Business Intelligent reporting servicess to reporting some data from My MS SQL Database. In ASP.NET I create new Reporting Viewer that take data from BI and display the report then I can Print it. My Question is How can I print the report without report viewer? thanks in advance :) ...

Developing a simple photo ASP.NET/MVC application, how to do this?

I found this web site (photoblog) http://www.OneReaction.net/ and I am very curious how this is done: 1) From source code you don't see the image URL 2) How to overlay the copyright information on the image without changing the underlying photo? Ideas? Thanks! ...

What's the secret to getting ClaimsResponse working with DotNetOpenId?

What's the secret to getting ClaimsResponse working with DotNetOpenId? For example, in this bit of code (from Scott Hanselman's blog) the ClaimsResponse object should have lots of nice little things like 'nickname' and 'email address', but the ClaimsResponse object itself is 'null': OpenIdRelyingParty openid = new OpenIdRelyingParty()...

asp.net dynamic data with access

can you use ms access as the backend of a asp.net dynamic data project website. Any links or examples? ...

Asp.net System.Web.HttpContext.Current.Session null in global.asax

I have a custom security principal object which I set in the global.asax for the current thread and all is well, no problems normally. However, I'm just adding a dynamic image feature by having a page serve up the image and whenever that dynamic image page is loaded the System.Web.HttpContext.Current.Session is null in global.asax which...

Asp.net ajax update panel sharing a database connection

I have a dropdown box and a literal tag inside an Update Panel. On the selection change event of the dropdown up requery the database and repopulate the literal tag and then call UPdatePanel.Update(). below, is there are way i can avoid having to create a new Oledbconnection each time as this seems slow. Can i reuse and store: The D...

Ajax callback UpdatePanel.Update() still reloading whole page

I have code in an Update Panel and even though on a button click i am inserting data into a db and simply calling Updatepanel.Update() the whole page is reloaded: Gifts.ASPX <table style="width:100%;"> <tr> <td> <asp:Label ID="Label2" runat="server" Text="Gift"></asp:Label> ...

"aspnet_compiler.exe" exited with code 1" error when including ASP file

Hai Techies, I have a ASP.NET project and when building the project it is showing build suceessfull.But when i am building the deployment project,it is showing build failed with an error message "Error 5 "aspnet_compiler.exe" exited with code 1". I rechecked my project and found that when i am removing the line " <!--#include f...

asp.net message box

Hello friends I am looking for a custom control which could enable me to call message of following type http://extjs.com/deploy/dev/examples/message-box/msg-box.html I have searched 2 days now but no luck with it. I am looking for control which function like .net desktop application messagebox. I know, exactly similar may not be possi...

"Invalid postback or callback argument" with Databound controls

I am getting the following error when an event (Add/Edit/Delete) occurs on my databound control. Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callba...

Is LINQ to SQL the best way to build a Model or create my own classes

I am develop a medium system in ASP.net with MS SQL Server Database and I wonder what is the best way to create a model layer with LINQ or create own classes that dealing with database? ...

Regular expression to convert substring to link

Hi, i need a Regular Expression to convert a a string to a link.i wrote something but it doesnt work in asp.net.i couldnt solve and i am new in Regular Expression.This function converts (bkz: string) to (bkz: show.aspx?td=string) Dim pattern As String = "&lt;bkz[a-z0-9$-$&-&.-.ö-öı-ış-şç-çğ-ğü-ü\s]+)&gt;" Dim regex As New Regex(pattern...

How to use Castle Windsor with ASP.Net web forms?

I am trying to wire up dependency injection with Windsor to standard asp.net web forms. I think I have achieved this using a HttpModule and a CustomAttribute (code shown below), although the solution seems a little clunky and was wondering if there is a better supported solution out of the box with Windsor? There are several files all s...

What are the common issues and best practices when using ASP.NET session state?

For example, I make extensive use of the session in my ASP.NET application but have heard somewhere that objects stored in session can be removed by the system where server memory runs low. Is this true? Is there any session 'callback' functionality to allow you to re-populate scavenged objects? More generally, what other potential pro...

How can I enable live preview for FCKeditor in an ASP.Net site?

Over in this question, Scott writes that it is possible to get the current HTML for what's written in the FCKeditor by using FCKeditorAPI.__Instances['instanceNameHere'].GetHTML(); Could someone provide step-by-step instructions on how to accomplish this in an ASP.NET page? All I currently have so far in the .aspx file is this: <%@ Reg...