How to execute a stored procedure.and how to call it form a
asp page
Answers were Sorted based on User's Feedback
Answer / ramesh
This u cn run in sql server
"execute SP_Name Parameter1,Parameter2,..."
Dim SQLDBDataReader As SqlClient.SqlDataReader
Dim SQLDataTable As New DataTable
SQLCmd.CommandText = "GetAuthors"
SQLCmd.CommandType = CommandType.StoredProcedure
SQLCmd.Connection = SQLCon
SQLCmd.Parameters.Add(New SqlClient.SqlParameter
("AuthorName", SqlDbType.VarChar, 100,
ParameterDirection.Input, False, 30, 0, "",
DataRowVersion.Current, "Y%")) SQLDBDataReader =
SQLCmd.ExecuteReader() SQLDataTable.Columns.Add
("AuthorName", GetType(Int32), "") SQLDataTable.Columns.Add
("AuthorLocation", GetType(String), "")
Dim FieldValues(1) As Object 'A Temporary Variable to
retrieve all columns in a row and fill them in Object array
While (SQLDBDataReader.Read)
SQLDBDataReader.GetValues(FieldValues)
SQLDataTable.Rows.Add(FieldValues)
End While
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / sdfsd
exec storedprocedure parameter
sqlhelper cs=new sqlhelper();
cs.parameter.add("name",type).value=value
cs.execD
Is This Answer Correct ? | 0 Yes | 0 No |
What is query string in asp.net?
What is special types forms
Explain the main differences between asp and asp.net?
Explain server control extensibility with reference to asp.net 2.0 ?
When we are requesting a new URL through Response.Redirect() the new page wil open on the new browser window or it wil open in the same window? If we use Server.Transfer() what wil happen?
How to use push notification?
How does output caching work in ASP.NET?
What is the adavantage of using ASP.NET routing?
What is state management technique?
When is validation done on the client? How does client-side validation improve the efficiency of an application?
Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net
What methods are fired during the page load?