Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
17 views

Stream data from DataReader to the OutputStream in ASP.NET Web API [migrated]

Consider the following code from SomeApiController: public IEnumerable<string[]> Get() { using (var conn = new SqlConnection(asyncConnString)) using (var cmd = conn.CreateCommand()) ...
2
votes
0answers
49 views

Cross-browser double form submit prevention

We developed a potential solution for the double form submit prevention and we need some review on it. To be able to execute this code on asp.net we needed to add our function call directly into the ...
5
votes
7answers
138 views

Comparing string arrays

My code does what I need it to do, but I think I am missing the "right" way to do this with comparing the arrays. Essentially what I need this to do is compare a textbox entry against two different ...
0
votes
0answers
16 views

how to get rid of iframe without losing its functionality?

default.aspx file contains <iframe "src="ChatScreen.aspx" id="I1" name="I1">Chat</iframe> in chatscreen.aspx.cs i have protected void Page_Load(object sender, System.EventArgs e) { ...
0
votes
1answer
41 views

Managing Stylesheets and .Js files when pages keep getting added

This is my first question in code review , I am using Asp.Net/C# in my project.I keep a seperate CSS file and a .js file for every page that I add to my project.For example: For a page ...
1
vote
1answer
59 views

Is this a good way to manage web.config appSettings

I wanted a pattern to manage web.config appsettings. I want to be able to have a default setting if the config setting was missing. I also wanted the check for the value in the config file to happen ...
1
vote
0answers
78 views

Ajax Splitter Panels CSS Issues / Review

Hi I'm mocking up a very simple little utility application that will let a user view old mail out of a legacy app. It will basically consist of one WebForm, I'm doing a mockup and I have a *VERY ...
4
votes
2answers
102 views

Session Wrapper

I have two types of session wrappers: Type 1: public class SessionHandler { public static SessionHandler CurrentSession { get { SessionHandler session = ...
0
votes
0answers
35 views

Delete certain files from a folder through NANT

I am trying to delete files such as .exe;.pdb;.sln;.build from my Publish folder.My NANT build script includes the delete section which i have given below: <delete> <!--Remove unnecessary ...
2
votes
1answer
158 views

Query String Serializer

I have a ASP.NET Web Forms project, and I want to build calls to .aspx pages in a strongly-typed fashion. I ended up rolling my own serializer that takes simple structs and saves them to/loads them ...
1
vote
1answer
137 views

How to Organize my Solution in Visual Studio 2010, for a Asp.NET project using Ado.Net Entity Data Model

For ASP.NET projects. I am starting developing with Visual Studio 2010, and will work with Ado.Net Entity Data Model and Linq. I'm used to develop using Visual Studio 2005, and SubSonic as my ORM. ...
0
votes
2answers
127 views

Critique my Database design/help me simplify my C# code please

I wish to create a database for a webpage where users are able to add their own events to a timetable. Users will be able to decide if the events should be recurring (weekly) or not. Users should be ...
2
votes
1answer
153 views

Asynchronous Programming Code Review

I did a load test for an ASP.NET MVC application. It was basically for 2 different pages which are doing the same thing but one was synchronous and the other was asynchronous. The result was shocking. ...
1
vote
0answers
128 views

asp.net controls to dump key/value pairs

I just wrote this code and am curious if it looks good and readable or if maybe it's over optimized (or other issues). Are there alternative (better) ways to factor out the common parts other than my ...
1
vote
1answer
133 views

is this way of using ExecuteReader proper [closed]

this is the code I use to retrieve data from Database using ExecuteReader : protected SqlDataReader ExecuteReader(CommandType CmdType, string CmdText, ...

1 2 3 4 5 6
15 30 50 per page