Click here to Skip to main content
15,899,023 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Crystal Reports not working on Web Server Pin
N a v a n e e t h10-May-09 7:27
N a v a n e e t h10-May-09 7:27 
GeneralRe: Crystal Reports not working on Web Server Pin
yogesh_kumar_agarwal10-May-09 7:43
yogesh_kumar_agarwal10-May-09 7:43 
GeneralRe: Crystal Reports not working on Web Server Pin
AlexeiXX310-May-09 8:03
AlexeiXX310-May-09 8:03 
GeneralRe: Crystal Reports not working on Web Server Pin
yogesh_kumar_agarwal10-May-09 9:13
yogesh_kumar_agarwal10-May-09 9:13 
QuestionHow to use prepared statement for displaying data using asp.net Pin
AshishRasekar9-May-09 15:44
AshishRasekar9-May-09 15:44 
AnswerRe: How to use prepared statement for displaying data using asp.net Pin
AlexeiXX39-May-09 17:25
AlexeiXX39-May-09 17:25 
AnswerRe: How to use prepared statement for displaying data using asp.net Pin
N a v a n e e t h9-May-09 18:28
N a v a n e e t h9-May-09 18:28 
AnswerRe: How to use prepared statement for displaying data using asp.net Pin
Abhishek Sur10-May-09 9:55
professionalAbhishek Sur10-May-09 9:55 
Are you talking about JDBC.

If so look into this...
http://java.sun.com/docs/books/tutorial/jdbc/basics/prepared.html[^]

If you are talking about ASP.NET
it will be similar, just you need to replace the ? marks with appropriate names.

Thus instead of
PreparedStatement updateSales = con.prepareStatement(
       "UPDATE COFFEES SET SALES = ? WHERE COF_NAME LIKE ? ");
updateSales.setInt(1, 75); 
updateSales.setString(2, "Colombian"); 
updateSales.executeUpdate():


We write
SqlCommand cmd = new SqlCommand("UPDATE COFFEES SET SALES = @psales WHERE COF_NAME LIKE @pconfname",connection);
cmd.Parameters.add("@psales",SqlDbType.Int);
cmd.Parameters("@psales").Value = 75;
cmd.parameters.add("@pconfname",SqlDbType.Varchar);
cmd.Parameters.add("@pconfname").Value = "Colombian";
cmd.ExecuteNonQuery();


Hope you get this.


QuestionFundamental ASP.NET Question Pin
MarkMokris9-May-09 4:38
MarkMokris9-May-09 4:38 
AnswerRe: Fundamental ASP.NET Question Pin
Christian Graus9-May-09 10:25
protectorChristian Graus9-May-09 10:25 
AnswerRe: Fundamental ASP.NET Question Pin
Abhijit Jana9-May-09 11:17
professionalAbhijit Jana9-May-09 11:17 
GeneralRe: Fundamental ASP.NET Question Pin
AlexeiXX39-May-09 17:10
AlexeiXX39-May-09 17:10 
GeneralRe: Fundamental ASP.NET Question Pin
N a v a n e e t h9-May-09 18:18
N a v a n e e t h9-May-09 18:18 
GeneralRe: Fundamental ASP.NET Question Pin
AlexeiXX310-May-09 6:54
AlexeiXX310-May-09 6:54 
AnswerRe: Fundamental ASP.NET Question Pin
N a v a n e e t h9-May-09 18:24
N a v a n e e t h9-May-09 18:24 
Questionhow to display numbers in words Pin
Pawan Kiran9-May-09 3:11
Pawan Kiran9-May-09 3:11 
AnswerRe: how to display numbers in words Pin
Abhijit Jana9-May-09 3:24
professionalAbhijit Jana9-May-09 3:24 
AnswerRe: how to display numbers in words Pin
Ramesh Swaminathan9-May-09 3:29
Ramesh Swaminathan9-May-09 3:29 
QuestionASPX using third party UI OCX file Pin
The_Collector9-May-09 3:08
The_Collector9-May-09 3:08 
AnswerRe: ASPX using third party UI OCX file Pin
Ramesh Swaminathan9-May-09 3:34
Ramesh Swaminathan9-May-09 3:34 
GeneralRe: ASPX using third party UI OCX file Pin
The_Collector9-May-09 3:49
The_Collector9-May-09 3:49 
GeneralRe: ASPX using third party UI OCX file Pin
The_Collector15-May-09 22:52
The_Collector15-May-09 22:52 
Questioncapture Gridview cell value to an integer variable Pin
Pawan Kiran9-May-09 2:44
Pawan Kiran9-May-09 2:44 
AnswerRe: capture Gridview cell value to an integer variable Pin
Ramesh Swaminathan9-May-09 3:42
Ramesh Swaminathan9-May-09 3:42 
AnswerRe: capture Gridview cell value to an integer variable Pin
AlexeiXX39-May-09 17:18
AlexeiXX39-May-09 17:18 

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.