Click here to Skip to main content
15,920,896 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: datagrid doubt Pin
saravanan0528-Oct-07 21:15
saravanan0528-Oct-07 21:15 
GeneralRe: datagrid doubt Pin
Lijo Rajan28-Oct-07 21:25
Lijo Rajan28-Oct-07 21:25 
QuestionDatabase support for a website Pin
niting8528-Oct-07 20:44
niting8528-Oct-07 20:44 
AnswerRe: Database support for a website Pin
John-ph28-Oct-07 21:46
John-ph28-Oct-07 21:46 
AnswerRe: Database support for a website Pin
Braulio Dez29-Oct-07 4:22
Braulio Dez29-Oct-07 4:22 
QuestionCombo Box A-Z Validation Pin
kunal_gct28-Oct-07 20:33
kunal_gct28-Oct-07 20:33 
QuestionMail sending problem Pin
Lijo Rajan28-Oct-07 20:25
Lijo Rajan28-Oct-07 20:25 
AnswerRe: Mail sending problem Pin
Ghazi H. Wadi28-Oct-07 21:07
Ghazi H. Wadi28-Oct-07 21:07 
GeneralRe: Mail sending problem Pin
Lijo Rajan28-Oct-07 21:20
Lijo Rajan28-Oct-07 21:20 
GeneralRe: Mail sending problem Pin
Braulio Dez29-Oct-07 4:26
Braulio Dez29-Oct-07 4:26 
GeneralRe: Mail sending problem Pin
Ghazi H. Wadi29-Oct-07 10:43
Ghazi H. Wadi29-Oct-07 10:43 
QuestionRegarding Layers Pin
Satish_S28-Oct-07 19:53
Satish_S28-Oct-07 19:53 
AnswerRe: Regarding Layers Pin
N a v a n e e t h28-Oct-07 20:21
N a v a n e e t h28-Oct-07 20:21 
GeneralRe: Regarding Layers Pin
Satish_S28-Oct-07 20:41
Satish_S28-Oct-07 20:41 
GeneralRe: Regarding Layers Pin
N a v a n e e t h28-Oct-07 20:56
N a v a n e e t h28-Oct-07 20:56 
GeneralRe: Regarding Layers Pin
Satish_S28-Oct-07 21:09
Satish_S28-Oct-07 21:09 
GeneralRe: Regarding Layers Pin
N a v a n e e t h28-Oct-07 21:12
N a v a n e e t h28-Oct-07 21:12 
GeneralRe: Regarding Layers Pin
Satish_S29-Oct-07 2:26
Satish_S29-Oct-07 2:26 
GeneralRe: Regarding Layers Pin
N a v a n e e t h29-Oct-07 18:31
N a v a n e e t h29-Oct-07 18:31 
Yes, Finally you did it. It's almost looks fine.

sathimailin1 wrote:
Dim ConnectionString As SqlClient.SqlConnection = New SqlClient.SqlConnection(ConfigurationSettings.AppSettings("BBM_CONSTR"))


This connection you can create inside the DAL. in the constructor. You can write overloaded constructor which takes the connection string value also as parameter. Then if in next project, you are planning to change BBM_CONSTR, it won't be a problem.

sathimailin1 wrote:
ConnString.Open()
cmd.Connection = ConnString
cmd.CommandText = Qry
cmd.CommandType = CommandType.StoredProcedure
Attach(cmd, SqlParams)
sqladpt.SelectCommand = cmd
sqladpt.Fill(ds)
cmd.ExecuteNonQuery()
ConnString.Close()


There is a chance for memory leakage in this code. Assume you got an error when executing the query, what will be the status of connection ? It will be kept open and your program will terminate. So to avoid this, put the database operation on try and catch blocks. Do database operation in try and dispose the object in catch/finally. This will avoid memory leakage.

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

My Website | Ask smart questions

GeneralRe: Regarding Layers Pin
Satish_S29-Oct-07 20:53
Satish_S29-Oct-07 20:53 
GeneralRe: Regarding Layers Pin
N a v a n e e t h29-Oct-07 22:24
N a v a n e e t h29-Oct-07 22:24 
GeneralRe: Regarding Layers Pin
Satish_S30-Oct-07 21:18
Satish_S30-Oct-07 21:18 
QuestionHow to add Button click event?? Pin
varshavmane28-Oct-07 19:35
varshavmane28-Oct-07 19:35 
AnswerRe: How to add Button click event?? Pin
N a v a n e e t h28-Oct-07 19:44
N a v a n e e t h28-Oct-07 19:44 
GeneralRe: How to add Button click event?? Pin
varshavmane28-Oct-07 20:06
varshavmane28-Oct-07 20:06 

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.