Click here to Skip to main content
15,914,642 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionProblem in inserting "Hindi" Text in MySql5.0 using ASP.Net Pin
mkumar25118-Jun-09 1:17
mkumar25118-Jun-09 1:17 
AnswerRe: Problem in inserting "Hindi" Text in MySql5.0 using ASP.Net Pin
Jain Vijay8-Jun-09 1:58
Jain Vijay8-Jun-09 1:58 
GeneralRe: Problem in inserting "Hindi" Text in MySql5.0 using ASP.Net Pin
mkumar25118-Jun-09 2:34
mkumar25118-Jun-09 2:34 
GeneralRe: Problem in inserting "Hindi" Text in MySql5.0 using ASP.Net Pin
Jain Vijay8-Jun-09 21:43
Jain Vijay8-Jun-09 21:43 
Questionproblem with dataset [modified] Pin
govindi unal8-Jun-09 0:40
govindi unal8-Jun-09 0:40 
AnswerRe: problem with dataset Pin
saanj8-Jun-09 0:48
saanj8-Jun-09 0:48 
AnswerRe: problem with dataset Pin
Abhijit Jana8-Jun-09 0:49
professionalAbhijit Jana8-Jun-09 0:49 
GeneralRe: problem with dataset Pin
govindi unal8-Jun-09 0:57
govindi unal8-Jun-09 0:57 
Protected Sub btStart_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btStart.Click
Session("NoOfRecords") = 0
Try
sqlConn.ConnectionString = System.Configuration.ConfigurationManager.AppSettings("Constr")
'sqlConn.Open()
With sqlComm
.Connection = sqlConn
.CommandText = "OLE_InsertExamDetails"
.CommandType = CommandType.StoredProcedure
.Parameters.Add("@RollNumber", SqlDbType.Char, 100).Value = Trim(txtrollnumber.Text)
.Parameters.Add("@ExamDate", SqlDbType.DateTime).Value = "02-02-2009"
.Parameters.Add("@SemesterName", SqlDbType.Char, 20).Value = "One"
.Parameters.Add("@Papertype", SqlDbType.Char, 20).Value = RadioButtonList1.SelectedItem.Text
End With
sqlDataAdap.SelectCommand = sqlComm
sqlConn.Open()
'sqlReader = sqlComm.ExecuteReader
'If sqlReader.Read Then
' While sqlReader.Read
' Response.Write("<br>")
' Response.Write(sqlReader(0))
' End While
'End If
sqlDataset = New DataSet
sqlDataAdap.Fill(sqlDataset)
Catch ex As Exception
lblmessage.text = "Error while inserting"
End Try
sqlConn.Close()
'MsgBox(dt1.Rows.Count)
MsgBox(sqlDataset.Tables.Count)
MsgBox(sqlDataset.Tables(0).Rows.Count)
' FillDataSet(sqlDataset)

'display()
End Sub
this click event shows one table and no of records in the table
but when i click on another command button on same aspx page
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
' MsgBox(dt1.TableName)

MsgBox(sqlDataset.Tables.Count)
MsgBox(sqlDataset.Tables(0).Rows.Count)
End Sub
this it returns 0 and error cannot find table 0
GeneralRe: problem with dataset Pin
Abhijit Jana8-Jun-09 1:54
professionalAbhijit Jana8-Jun-09 1:54 
GeneralRe: problem with dataset Pin
govindi unal9-Jun-09 21:41
govindi unal9-Jun-09 21:41 
Question[Message Deleted] Pin
souravghosh187-Jun-09 23:52
souravghosh187-Jun-09 23:52 
AnswerRe: how to delete a gridview column programatically Pin
saanj8-Jun-09 0:04
saanj8-Jun-09 0:04 
AnswerRe: how to delete a gridview column programatically Pin
Abhijit Jana8-Jun-09 0:11
professionalAbhijit Jana8-Jun-09 0:11 
QuestionHow To Execute Exe Pin
ais077-Jun-09 22:39
ais077-Jun-09 22:39 
AnswerRe: How To Execute Exe Pin
Abhijit Jana7-Jun-09 22:54
professionalAbhijit Jana7-Jun-09 22:54 
Questiondiv popup Pin
gichki7-Jun-09 22:27
gichki7-Jun-09 22:27 
AnswerRe: div popup Pin
Abhijit Jana7-Jun-09 22:30
professionalAbhijit Jana7-Jun-09 22:30 
AnswerRe: div popup Pin
Matt Cavanagh7-Jun-09 22:54
Matt Cavanagh7-Jun-09 22:54 
QuestionPopup Control Pin
jonhbt7-Jun-09 22:05
jonhbt7-Jun-09 22:05 
AnswerRe: Popup Control Pin
saanj7-Jun-09 23:40
saanj7-Jun-09 23:40 
GeneralRe: Popup Control Pin
jonhbt7-Jun-09 23:51
jonhbt7-Jun-09 23:51 
GeneralRe: Popup Control Pin
saanj8-Jun-09 0:22
saanj8-Jun-09 0:22 
GeneralRe: Popup Control Pin
jonhbt8-Jun-09 0:33
jonhbt8-Jun-09 0:33 
GeneralRe: Popup Control Pin
saanj8-Jun-09 0:40
saanj8-Jun-09 0:40 
GeneralRe: Popup Control Pin
jonhbt8-Jun-09 2:42
jonhbt8-Jun-09 2:42 

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.