asp.net

Binding a DataTable to a FormsView control in ASP.NET

Hi, I have a FormView control which uses the DataSource control for binding. It has the Item Template and therefore automatically displays the New, Edit , Delete buttons which then pick the appropriate queries from the DataSource control queries. If i had to do the mapping of the New, Edit and Delete buttons of the FormView control fro...

How do you remove the padding from Modifed Base 64 for URL?

This Wiki article on Base64 URL says "For this reason, a modified Base64 for URL variant exists, where no padding '=' will be used, and the '+' and '/' characters of standard Base64 are respectively replaced by '-' and '_', so that using URL encoders/decoders is no longer necessary and has no impact on the length of the encoded value, ...

How can i have Response.Redirect() work from MasterPage?

Hello, I have a problem: when i call a Response.Redirect() from the MasterPage it doesn't work. Well, debugging i can see that until the Pre_Render() method the target page is loaded, but then is rendered the previous page. Here's some code to better explain: (from MasterPageMain.master.cs) protected void Page_Init(object sender, Even...

Ajax in ASP.NET MVC Framework

I want a nice "on mouse over"-effect on a word. I want my system to show a 2*1 (inches) rectangle with some information in it. Please guide me to an url or show an example ...

Complex ASP.NET web applications and nant

Working on an intranet where we have about 20 different web apps - some .net, some classic asp. Currently each .net app is its own solution. There are advantages to this - we can build & deploy just one app, without affecting other apps, and all the apps share a session - but we can't use master pages, and there are real challenges us...

is it a good idea to create an enum for the key names of session values?

instead of doing session("myvar1") = something session("myvar2") = something session("myvar3") = something session("myvar4") = something is doing enum sessionVar myvar1 myvar2 myvar3 myvar4 end enum session(sessionVar.myvar1.tostring) = something session(sessionVar.myvar2.tostring) = something session(sessionVar....

Test for authentication from client using asp.net and ajax

From the client, is there a way to get a true/false value from an asp.net page to show you have authorization to access the page. Using Forms Authentication I get redirected to a login page. I just need a simple boolean. Aaron ...

How to parse a "cut n paste" from Excel.

For part of a web application the user needs to import some data from a spreadsheet. Such as a list of names and email addresses. Currently we do this by asking the user to browse for and upload a CSV file. Unfortunately, this isn't always possible as various corporate IT systems only allow users to access files from document management...

Inherit css property of a:link on to asp:label text attribute

Ok, this might be an impossible question but I am adding a user control to an existing cms system (Kentico using their InlineControl base class) and I added a label that I have overriden the click event to show a div area below it. What I am having problems with is inheriting the already set css attribute of color, font-family; etc.. fr...

simple aspx page, client side input and ssrs report viewer control

i am trying to use some html input controls (instead of the asp.net server controls) to capture input for a report's parameters and would like to post the parameter values to a ReportViewer control, and load the report from Report Server. do i have to simulate a postback to make this happen? ...

How can I override an inline style with an external css?

I am trying to restyle a table generated by an asp.net gridview control. The problem I have is that the gridview is generating an inline styles. How do I make the browser render my css rather then the html style attribute? ...

What is the best way to use FDF with ASP.NET?

Hi, I need to build a PDF based on FDF. I saw that Adobe has the FDF toolkit but saw others using ITextSharp. I couldn't find anything on Adobe's toolkit and ASP.NET but saw examples on ITextSharp. I wanted to know which I should use and if it is Adobe, does anyone have an example. Thank you. ...

How well does ASP.NET Dynamic Data work with Nhibernate today?

I know there are a few people working on getting Nhibernate to support ASP.NET Dynamic Data. Anyone got real life experience of using it? ...

Repeater's SeparatorTemplate with Eval

Hi, is it possible to use Eval or similar syntax in the SeparatorTemplate of a Repeater? Id' like to display some info of the last item in the separator template like this: <table> <asp:Repeater> <ItemTemplate> <tr> <td><%# Eval("DepartureDateTime") %></td> <td><%# Eval("ArrivalDa...

ASP.Net: Authentication via Browser's Login Window

I have what appears to be a fairly common scenario: I have a database that contains a list of users/passwords, and ideally, when someone visits the site, I'd like to use their windows name (internal), otherwise whatever name the user provided (external). My main question is how do I send a response to the browser forcing it to prompt f...

ASP.NET Web Application Testing Experiences

Hi Everyone, In our project, we have 20 simple web controls, 8 composite web controls including Ajaxable Custom Grid. And all modules are developed dependent to these controls. And now I afraid to change a control, because it effects modules more then I think. It's too late I know but I need to write some test cases for my controls. ...

Programmatically stop navigation

In .NET (C#, specifically), how can I stop navigation? Situation: User has clicked a link and fired off the _Click() event. The click event fires off a save method, which verifies some information. If any of the information isn't as desired, we want to stop the rest of the click event from occurring. ASP.NET's built-in validation won...

ASP.NET Dynamic Radiobutton - How to add validation

At the moment I have something like this ` <%# Eval("orderBy").ToString()%>) <%# Eval("question").ToString()%> " type="radio" id="True" value="True" class="styled" /> " type="radio" id="False" value="False" class="styled" /> ` And in the code behind I caputure the values as Request.Form("question1") for example and this a...

Enable/Disable table with javascript for multple instances on a single asp age

I just posted one question and got it answered very quickly, thank you. I have a new problem, being I have a asp label which gets text dynamically set on it during instanation and then I have a onmousedown function tied to it call a javascript function to enable a table area that sitting below that is display - none by default. It all ...

"Out of memory" exception on call to web service

I have an ASP.NET web application that calls a .NET DLL, that in turn calls a web service. The web service call is throwing an exception: Unable to generate a temporary class (result=1). error CS0001: Internal compiler error (0xc00000fd) error CS0003: Out of memory Stack Trace: at System.Xml.Serialization.Compiler.Com...