asp.net

Response.Redirect bad seed or just misunderstood

Recently I posted a answer to a question that I thought was quite an easy one, The question was about issues with the lifecyle of the page in asp.net where items would only reflect the changes made after the first postback, so I suggested using Response.Redirect(Request.RawUrl) And almost instantly got voted down for this as (Why cau...

ASP.NET Reporting Libraries

What reporting asp.net library would you recommend if you would like to do the following: Generate reports Print reports ...

Always show FooterTemplate, even no data

Is there a short way to make a FooterTemplate (in a GridView) always visible, even when DataSource is empty? ...

Binding Microsoft.Web.DynamicData assembly at runtime failing

I've got a project using DynamicData that was wrote by somebody else. Every time i try debbuging it, I get the message I've attached at the bottom I've already tried deploying the DynamicData dll to GAC, and throwing it into the bin folder, chceking the assemblies full names, installing again VS SP1, and .NET Framework SP1, and chceking...

How to Edit data in nested Listview

I am using listview to display a list of items and a nested listview to show list of features to each item. Both parent and child listview need to able Insert,Edit and delete operation. It works fine for parent listview. But when I try to edit an child item, The edit button does not take it into Edit mode. Can you please suggest me what ...

How to retrieve all key-value pairs in a resource file located in App_GlobalResources

In my ASP.NET MVC application, I manage localized texts in .resx files located in App_GlobalResources folder. I am able to retrieve any text value in any file knowing its key. Now, I want to retrieve all key/value pairs in a particular resource file in order to write the result to some JavaScript. A search revealed that I might be a...

Is it possible to reference a VS2005 website project from another project in the same solution?

I'd like to add nunit testing to a VS2005 C# ASP.NET website project - so that I can excercise methods in the App_Code directory. It's recommended that the tests are added as a seperate assembly so that the testing code does not get delivered with the website - in this lies my question: When I add a new project into the solution which h...

ASp.net Dynamic link buton

I am creating a dynamic link during page_init even and binding onclick to a link button.On click of dynamic link is able post back but it is not raising a onclick eveent (hitting a on click event in debug mode). Page postback and shows up a blank page without triggering a event.Plese can anyone tell what i am doing wrong in the following...

Secured ASP.NET web service and php

What is the best way to call a secured ASP.NET web service from PHP? ...

Data Grid DataFormatString formatting not working

I came accross an issue a few days ago which I'd completely forgotten about, and noticed it wasn't mentioned on SO. In an ASP.Net document, a datagrid was created dynamically as part of a business intellgience tool. The data format string was being set in the code behind, but was not being shown correctly on the rendered page. As it t...

.php to .aspx

Hello all, I had a project for developing a website for a NGO. I had a doubt: The website is already working with lot of flaws and had very few pages. This website is made in Php and They want me to make it more secure. So i want to make this website using Microsoft .NET Framework. If i make this website from scratch and then...

ASP.NET Error on button clicl

I am getting this error while clicking on the button control of an asp.net page .NO idea what to do 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 callback even...

ASP.NET Web Service - Optional Parameters?

I have a ASP.NET web service. This web service works fine. However, the WSDL lists some parameters as optional (minoccurs = 0) and others as non-optional. Some of the optional parameters are actually not optional, others which are marked as non-optional are actually optional. I would like to fix this, but I can't find the location where ...

Dynamic height for AJAX Autocomplete Textbox

Hi, I am using the AJAX autocomplete add-on to the control. I have everything working with a around the . I set the following CSS class: .autocomplete_CompletionListElement { margin: 0px; background-color: White; cursor: default; overflow-y: auto; overflow-x: hidden; height:180px; text-align: left; bo...

Cannot write in App_Data when request is from scheduler

Hello I have a page in an ASP.NET (website) project that writes a file to the App_Data folder. When I request the page from my browser everything works. When I perform this request from a cron-job scheduled job from my provider I get the following error Could not find a part of the path 'C:\xxxxxxxxxxxxxxx\App_Data\Art_P00004.txt'. a...

How to secure webpages in ASP.Net with roles?

In my application I have different roles and offcourse multiple pages. How do I secure webpages that may not be accessed by certain roles? Imagine group 1 has access to webpage a.aspx, b.aspx and c.aspx but not to webpage d.aspx. How do i secure that when a user of group 1 types in d.aspx he cannot view the page? ...

Ajax function throwing WebServiceFailedException

I am using same asp.net page to edit and add data, only with some fields disabled and enabled accordingly. Now when I call webmethod from the add page, it's working fine, but when I call it from edit page, it is not. Though I am using the same javascript function to call the server side method. Please see the code: .aspx: function KeyCh...

SubSonic.SqlQuery ExecuteTypedList<T> returning new objects only

I am using SubSonic in my project. I need to selected rows filtered by some condition. I'm trying to use SqlQuery as follows: SqlQuery q = new Select() .From("TableName") .Where(MyDALObject.Columns.Status) .NotIn(new[] { 1, 8, 9, 22, 23}); IList<MyDALObject> list = ...

ASP.NET button click event not working in IE

in my asp.net page, The asp.net button click is not getting fired in IE,But in mozilla its working fine. Any thoughts ? ...

HiddenField control maintaining viewstate

Hi, I have a strange problem. While populating formfields, the values are maintained when clicking a'submit' button that causes the page to proceed to the next stage. I try to populate a hidden field from the code behind on the event of a 'find 'button click (before clicking this 'submit' button and this works. But the value is not mai...