asp.net

Possible to have compiler support (type safety) for avoiding double encoding for anti-XSS during Web development?

Is it possible to have compiler support to enforce the cleanup of data (XSS encoding)? This question got me thinking about double encoding and the other times when encoding is needed. Seems like it would work great for Linq, but possibly I may need this feature in other scenarios as well. http://stackoverflow.com/questions/3774776/mic...

How to hide a node from appearing on menu not on breadcrumb (using SqlSiteMapProvider)

Hello, I am using wicked code sqlsitemapprovider or it's VB version. Most of the things are going OK! But when I wanted to hide some of the nodes from appearing on menu while staying shown on sitemappath I cannot figure it out. I tried to change the sqlsitemapprovider code but was unsuccessfull. I have found David Sussman's (from sp.net...

alternative to event log for asp.net site running on a webhost

When I run a IIS site locally, all site failures (aspx compilation bugs, exceptions in code, etc) are logged to the system event log. I can check the event log to see the HTTP request path and the exception details. When I run the site on a webhost, I don't have access to the event log. How can I get the same level of error informatio...

ASP.NET Web Framework for developer that worked with Smart Client Software Factory

I am looking for guidance in choosing an ASP.NET web framework so I can move my applications to the web. In the last 3-4 years I have developed software based mainly on Smart Client Software Factory and Composite UI Application Block. What web framework would you recommend for me? Thank you! ...

use json object in c#

http://xurrency.com/api this webservice is returning a json response message. how can I use this message as an object in my .net project (asp.net web app) ...

How to compress viewstate

when i click on asp buttons it is giving me error as "The state information is invalid for this page and might be corrupted." on searching for this error,someone told me that viewstate is storing large amount of data. so i want to compress the viewstate. can anybody tell me how to compress the viewstate in asp.net project c# 3.5 ...

How Can We Have A SCROLLABLE GridView With Fixed Header???

Hi my dear lords : How Can We Have A SCROLLABLE GridView With Fixed Header???(in vs 2008 - asp.net with c#) Fixed Header is my problem! i test many ways for doing that and see some live demos / but they did not work. can u show me a simple way 4 doing that with an example? thanks in future advance ...

Determining the availability of sufficient memory for an operation

Can we Determine the availability of sufficient memory for an operation? if yes, then how can? Thanks ...

ajax or html error on mozilla?

The web site was built on asp.net platform. Ajax enabled. It works very well on ie or chrome, but it does not work on mozilla...? You see arrows work great but the numbers does not appear? how can i fix.. http://dexiab-2.hosting.parking.ru//Default.aspx#world the link to see the detail.. ...

HyperlinkField in Gridview not showing blue underline for links

Hello, I have a hyperlinkfield in Gridview control. I am using the below shown stylesheet for the gridview. But for some reason, the hyperlinkField column in the gridview is not in blue color and there is no underline. How can I display the hyperlinks as regular hyperlinks as blue in color and underline? Thanks /* table style */ table...

Sys is undefined .net 4.0

Hi, I know it is missing the ScriptResource.axd but how do i add this handler in .net 4.0? thanks ...

submit form cause validation error in other form.

hello, i have post detail page (asp.net, umbraco cms), with search box and post replay box. the problem is that when user try to search using the search box, it cause validation error in the post replay box. the search is client side form. the post replay is server side form. you can view it live at: http://www.thereturnvalue.com/blog/20...

Update access db from textbox value

Hi..im new in c# and asp.net world! I have a problem. In access db i have 2 table ( book, loan ) with a referential integrity constraint ( book.ID = loan.ID ). In my project i have some textbox and when i change a value of textbox i must update the tables. protected void Button1_Click(object sender, EventArgs e) { cod = Request["c...

Why data binding does not remember the old values?

I have a classic ObjectDataSource and a ListView in my page. The List view just displays some data and when switched to edit template it allows the user to change the values. I want the user to edit just some values -- so I bind just these ones in the edit template. The problem is that the other values suddenly turn to nulls or 0. I tri...

Removing / Ignoring Session items that will cause .NET deserialization errors

I'm trying to be clever by allowing a small validation method to be defined "inline" in ASCX templates as an Action<,>, like so: <%= OnValidation(delegate(FormSubmission form, FormResult errors) { // form checks in here, append errors to errors variable if required }) %> It actually works a treat, but in order to ensure it can be ...

Creating mp3 song previews in Silverlight /ASP.NET

Hi, what's the best way to create mp3 song preview from full mp3 song.Also I need to give the provisions for the user to choose the starting and ending point for the song. Is there any opensource API's for this? Or Is this be possible with silverlight,If so where should I start? Thank You. ...

ASP.Net MVC Recaptcha and Strict Doctype

I am using this this Recaptcha approach in my MVC project however it does not validate to Strict 1.0 DOCTYPE. Can anyone help? Thanks ...

Sample source code or tutorial for using JPolite Portal with ASP.NET?

I'm looking for a tutorial on how to use Jpolite with ASP.NET. Does anyone have this? ...

Combine two objects into one

I'm preparing to pass values to a method: private string BuildMessage(int templateID, string body, object data) where the data param is an array of name/value pairs. To prepare my values for that data param I need to combine the properties of a strongly typed class with the values of a simple 2d array. What's the best way to merge ...

DataGrid view in asp.net is not displaying data

I want to dispaly column in datagrid view using custom query statement but i want to send value to parametrized data in query how can i do this ? my code is below select c.customer_id, c.customer_first_name, c.customer_last_name, c.customer_address, c.account_number, c.account_type, a.account_balance, t.transfer_amount_balance, t.s...