1
vote
3answers
588 views

Using a Dedicated Class & Constructor to initialize Stored Procedure for SQL Transaction

I will try to be as concise as I can: The goal: trying to universalize a specific section of a project, that is dealing with the SQL database transactions. To assist you with your answer, I've ...
1
vote
1answer
908 views

Better way to populate and save checkboxlist items to the database

I posted this question on stackoverflow and was instructed to post here. I have inherited an application that has code to save and populate values in a asp.net checkboxlist control. The existing code ...
1
vote
1answer
645 views

Making a property virtual to cause EF to load the property?

I am walking through a sample MVC4 ASP.Net tutorial available on PluralSight.com, by Scott Allen. I am in a section #5, Working with Data (part 2), "Listing Reviews". This application has a database ...
1
vote
1answer
259 views

How can I implement the generic repository pattern and improve the performance for the code below?

I've used EF-DB first approach and have written a simple app to retrieve the data from the database and show it in the view. The code is simple and ok for a beginner like me, but how can I implement ...
1
vote
0answers
1k views

DataTable 'adapter' To Html table generator

this is a project i am working on it generates an html table out of a query result. (the result DataTable of an sql command via SP) this section of the project ...
3
votes
2answers
313 views

How to improve a try on a dual Mode JavaScript textBox WaterMark?

I was just trying to make an alternate Ajax watermark from "insert date" (first mode) to "mm/dd/yyyy" (second mode). After some trial and error, I succefully implemented a solution using JavaScript. ...
1
vote
0answers
845 views

AJAX MaskedEditValidator isValidEmpty property manipulation [closed]

thanks for visiting , this is my initial question that lead me to modify the behavior of AJAX MaskedEditValidator - ...
2
votes
1answer
81 views

Simple retrieving sessionId rows from indexed SQL column is slow

I have to select all the rows from a database table containing a defined (long)sessionId where the sessionId row is indexed. But it is slow, and since the code to access it is really simple, I'm ...
7
votes
3answers
386 views
2
votes
2answers
2k views

Is WebClient.DownloadData acceptable for getting data from a website?

Currently on my ASP.NET website when I define a new user I write their data to a .txt file like this: ...