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

ASP.NET

 
GeneralRe: DB Call in ,net Pin
Ali Al Omairi(Abu AlHassan)5-Mar-12 0:55
professionalAli Al Omairi(Abu AlHassan)5-Mar-12 0:55 
Look Sir;
The following pre tag
HTML
<pre lang="VB.NET">Try
  db = New SqlDatabase(ConfigurationManager.ConnectionStrings("myConnection").ToString)
 
  Using dbCommand As DbCommand = db.GetStoredProcCommand(SQLProcedure)
    If Not SQLParams Is Nothing Then
      db.AddInParameter(dbCommand.addRange, SQLParams.ToArray())
    End If
 
    Using myDataSet As DataSet = db.ExecuteDataSet(dbCommand)
      DataSet.Tables(0).Copy
    End Using

  End Using

Catch ex As Exception
  Throw (ex)
End Try</pre>


draws a code block like this :

VB.NET
Try
  db = New SqlDatabase(ConfigurationManager.ConnectionStrings("myConnection").ToString)

  Using dbCommand As DbCommand = db.GetStoredProcCommand(SQLProcedure)
    If Not SQLParams Is Nothing Then
      db.AddInParameter(dbCommand.addRange, SQLParams.ToArray())
    End If

    Using myDataSet As DataSet = db.ExecuteDataSet(dbCommand)
      DataSet.Tables(0).Copy
    End Using
 
  End Using
 
  Catch ex As Exception
    Throw (ex)
  End Try

Help people,so poeple can help you.

GeneralRe: DB Call in ,net Pin
fjdiewornncalwe5-Mar-12 5:06
professionalfjdiewornncalwe5-Mar-12 5:06 
QuestionSensex Integration Pin
Vijay150129-Feb-12 23:22
Vijay150129-Feb-12 23:22 
AnswerRe: Sensex Integration Pin
Richard MacCutchan1-Mar-12 0:00
mveRichard MacCutchan1-Mar-12 0:00 
AnswerRe: Sensex Integration Pin
Nitin S7-Mar-12 0:55
professionalNitin S7-Mar-12 0:55 
QuestionVertical Method Pin
indian14329-Feb-12 11:34
indian14329-Feb-12 11:34 
AnswerRe: Vertical Method Pin
R. Giskard Reventlov29-Feb-12 11:51
R. Giskard Reventlov29-Feb-12 11:51 
AnswerRe: Vertical Method Pin
Shameel29-Feb-12 16:45
professionalShameel29-Feb-12 16:45 
QuestionNeed to create Treeview by arraylist Pin
Member 322226429-Feb-12 2:10
Member 322226429-Feb-12 2:10 
AnswerRe: Need to create Treeview by arraylist Pin
Andy41129-Feb-12 2:40
Andy41129-Feb-12 2:40 
GeneralRe: Need to create Treeview by arraylist Pin
Member 322226429-Feb-12 2:52
Member 322226429-Feb-12 2:52 
AnswerREPOST Pin
Not Active29-Feb-12 3:31
mentorNot Active29-Feb-12 3:31 
QuestionTreeView from Arraylist Pin
Member 322226429-Feb-12 2:08
Member 322226429-Feb-12 2:08 
AnswerREPOST Pin
Not Active29-Feb-12 3:33
mentorNot Active29-Feb-12 3:33 
QuestionTree View created from arraylist Pin
Member 322226428-Feb-12 23:03
Member 322226428-Feb-12 23:03 
AnswerRe: Tree View created from arraylist Pin
Not Active29-Feb-12 1:03
mentorNot Active29-Feb-12 1:03 
GeneralRe: Tree View created from arraylist Pin
Member 322226429-Feb-12 1:41
Member 322226429-Feb-12 1:41 
GeneralRe: Tree View created from arraylist Pin
Not Active29-Feb-12 1:52
mentorNot Active29-Feb-12 1:52 
GeneralRe: Tree View created from arraylist Pin
Member 322226429-Feb-12 2:23
Member 322226429-Feb-12 2:23 
GeneralRe: Tree View created from arraylist Pin
Not Active29-Feb-12 3:30
mentorNot Active29-Feb-12 3:30 
Questionmessage box with YES/NO button Pin
C#_Programmer28-Feb-12 22:31
C#_Programmer28-Feb-12 22:31 
AnswerRe: message box with YES/NO button Pin
Richard MacCutchan28-Feb-12 22:39
mveRichard MacCutchan28-Feb-12 22:39 
AnswerRe: message box with YES/NO button Pin
Not Active29-Feb-12 1:06
mentorNot Active29-Feb-12 1:06 
QuestionLimiting Users Download Size Pin
Majid Shahabfar28-Feb-12 21:16
Majid Shahabfar28-Feb-12 21:16 
AnswerRe: Limiting Users Download Size Pin
Not Active29-Feb-12 1:09
mentorNot Active29-Feb-12 1:09 

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.