Click here to Skip to main content
15,922,015 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Data Grid .. Pin
Christian Graus21-Aug-07 21:55
protectorChristian Graus21-Aug-07 21:55 
GeneralRe: Data Grid .. Pin
nandhububbly21-Aug-07 22:56
nandhububbly21-Aug-07 22:56 
QuestionAccess to the path 'c:\inetpub\wwwroot\FinalUploadProgress\web.config' is denied. Pin
-- Abhi --21-Aug-07 21:40
-- Abhi --21-Aug-07 21:40 
AnswerRe: Access to the path 'c:\inetpub\wwwroot\FinalUploadProgress\web.config' is denied. Pin
greekius21-Aug-07 22:12
greekius21-Aug-07 22:12 
QuestionSimple connection - What is wrong With This code? Pin
greekius21-Aug-07 21:26
greekius21-Aug-07 21:26 
AnswerRe: Simple connection - What is wrong With This code? Pin
Michael Sync21-Aug-07 21:30
Michael Sync21-Aug-07 21:30 
AnswerRe: Simple connection - What is wrong With This code? Pin
Parwej Ahamad21-Aug-07 21:30
professionalParwej Ahamad21-Aug-07 21:30 
AnswerRe: Simple connection - What is wrong With This code? Pin
N a v a n e e t h21-Aug-07 21:34
N a v a n e e t h21-Aug-07 21:34 
May be in this case you won't be getting dr object. Some exception happened before you issue ExecuteReader(), that will force to execute finally block. In finally block you are trying to close datareader that is not yet instantiated. To avoid this, make sure dr is not null before you try to close it.

greekius@hotmail.com wrote:
also What do u offer to improve this code?


You need to look for some good articles that explains SQL Injection attacks. Your code is too close to that. I feel better approach would be using parameterized queries or Stored Procedures.


GeneralRe: Simple connection - What is wrong With This code? Pin
N a v a n e e t h21-Aug-07 21:36
N a v a n e e t h21-Aug-07 21:36 
GeneralRe: Simple connection - What is wrong With This code? Pin
Parwej Ahamad21-Aug-07 21:43
professionalParwej Ahamad21-Aug-07 21:43 
GeneralRe: Simple connection - What is wrong With This code? Pin
N a v a n e e t h21-Aug-07 22:02
N a v a n e e t h21-Aug-07 22:02 
GeneralRe: Simple connection - What is wrong With This code? Pin
Parwej Ahamad21-Aug-07 22:08
professionalParwej Ahamad21-Aug-07 22:08 
GeneralRe: Simple connection - What is wrong With This code? Pin
greekius21-Aug-07 22:16
greekius21-Aug-07 22:16 
QuestionEnable-Disable web.config section. Pin
-- Abhi --21-Aug-07 21:19
-- Abhi --21-Aug-07 21:19 
AnswerRe: Enable-Disable web.config section. Pin
SimulationofSai21-Aug-07 22:35
SimulationofSai21-Aug-07 22:35 
GeneralRe: Enable-Disable web.config section. Pin
-- Abhi --21-Aug-07 23:08
-- Abhi --21-Aug-07 23:08 
QuestionOut parameter from Stored procedure [modified] Pin
manowj21-Aug-07 20:53
manowj21-Aug-07 20:53 
AnswerRe: Out parameter from Stored procedure Pin
Michael Sync21-Aug-07 21:26
Michael Sync21-Aug-07 21:26 
QuestionHelp with CheckBoxList Pin
paulsgregg21-Aug-07 20:34
paulsgregg21-Aug-07 20:34 
AnswerRe: Help with CheckBoxList Pin
Michael Sync21-Aug-07 20:58
Michael Sync21-Aug-07 20:58 
QuestionUser Roles Pin
Illegal Operation21-Aug-07 20:30
Illegal Operation21-Aug-07 20:30 
QuestionLife cycle of ASP.Net page Pin
Milind Panchal21-Aug-07 20:27
Milind Panchal21-Aug-07 20:27 
AnswerRe: Life cycle of ASP.Net page Pin
Michael Sync21-Aug-07 20:53
Michael Sync21-Aug-07 20:53 
AnswerRe: Life cycle of ASP.Net page Pin
DavidNohejl21-Aug-07 21:56
DavidNohejl21-Aug-07 21:56 
AnswerRe: Life cycle of ASP.Net page Pin
Nouman Bhatti21-Aug-07 23:31
Nouman Bhatti21-Aug-07 23:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.