Click here to Skip to main content
15,894,546 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Page doesn't contain new data after INSERT Pin
The Obvious23-Feb-08 21:51
The Obvious23-Feb-08 21:51 
GeneralRe: Page doesn't contain new data after INSERT Pin
Mike Hankey24-Feb-08 10:36
mveMike Hankey24-Feb-08 10:36 
QuestionHow can i Write data from webpage to serial port??? Pin
quark_cyber23-Feb-08 16:25
quark_cyber23-Feb-08 16:25 
GeneralRe: How can i Write data from webpage to serial port??? Pin
N a v a n e e t h23-Feb-08 16:36
N a v a n e e t h23-Feb-08 16:36 
GeneralOverride FormAuthentication.LoginURL Pin
econner23-Feb-08 13:05
econner23-Feb-08 13:05 
QuestionHow to retrieve exception code from code behind when call oracle stored procedure Pin
Kennie_n200023-Feb-08 8:56
Kennie_n200023-Feb-08 8:56 
AnswerRe: How to retrieve exception code from code behind when call oracle stored procedure Pin
N a v a n e e t h23-Feb-08 16:34
N a v a n e e t h23-Feb-08 16:34 
GeneralRe: How to retrieve exception code from code behind when call oracle stored procedure Pin
Kennie_n200023-Feb-08 21:07
Kennie_n200023-Feb-08 21:07 
I tried what u 've suggest but i am getting the exception error" exception {"ORA-06550: line 1, column 15:\nPLS-00306: wrong number or types of arguments in call to....
when it execute line cmd.ExecuteNonQuery();

I should only need to pass in 2 arguments which are firstname and lastname only right ? any ideas ?



public int Insert_Data(string first_name, string last_name)
{
string OracleConnString = ConfigurationManager.ConnectionStrings["connstr"].ToString();

using (OracleConnection conn = new OracleConnection(OracleConnString))
{
OracleCommand cmd = new OracleCommand("Class.Insert_Data", conn);
cmd.CommandType = CommandType.StoredProcedure;

cmd.Parameters.Add("i_firstname", OracleDbType.Varchar2, first_name, ParameterDirection.Input);
cmd.Parameters.Add("i_lastname", OracleDbType.Varchar2, last_name, ParameterDirection.Input);
cmd.Parameters.Add("error_code", OracleDbType.Int32).Direction = ParameterDirection.Output;

conn.Open();
cmd.ExecuteNonQuery();

return Convert.ToInt32(cmd.Parameters[2].Value);
}
}
GeneralAjax on DataList Pin
Brady Kelly23-Feb-08 0:52
Brady Kelly23-Feb-08 0:52 
GeneralPerformance of an application Pin
Kissy1623-Feb-08 0:15
Kissy1623-Feb-08 0:15 
GeneralRe: Performance of an application Pin
Sandeep Akhare23-Feb-08 1:42
Sandeep Akhare23-Feb-08 1:42 
GeneralRe: Performance of an application Pin
N a v a n e e t h23-Feb-08 7:54
N a v a n e e t h23-Feb-08 7:54 
QuestionHi guys. I want to know about how to generate a waiting or loading page using asp.net? Pin
G Nathan22-Feb-08 22:58
G Nathan22-Feb-08 22:58 
GeneralRe: Hi guys. I want to know about how to generate a waiting or loading page using asp.net? Pin
Abhijit Jana23-Feb-08 1:58
professionalAbhijit Jana23-Feb-08 1:58 
GeneralRe: Hi guys. I want to know about how to generate a waiting or loading page using asp.net? Pin
G Nathan23-Feb-08 2:14
G Nathan23-Feb-08 2:14 
GeneralRe: Hi guys. I want to know about how to generate a waiting or loading page using asp.net? Pin
Abhijit Jana23-Feb-08 2:21
professionalAbhijit Jana23-Feb-08 2:21 
QuestionHow to send mail through SQL Server Triggers Pin
renangi22-Feb-08 22:11
renangi22-Feb-08 22:11 
AnswerRe: How to send mail through SQL Server Triggers Pin
Hesham Amin22-Feb-08 22:33
Hesham Amin22-Feb-08 22:33 
GeneralRe: How to send mail through SQL Server Triggers Pin
YingXiuMei24-Feb-08 0:01
YingXiuMei24-Feb-08 0:01 
GeneralRe: How to send mail through SQL Server Triggers Pin
Hesham Amin25-Feb-08 21:05
Hesham Amin25-Feb-08 21:05 
GeneralCascadingDropDown Control Pin
~V~22-Feb-08 21:15
~V~22-Feb-08 21:15 
GeneralRe: CascadingDropDown Control Pin
renangi22-Feb-08 22:09
renangi22-Feb-08 22:09 
QuestionHow chane Font Name Pin
Rinki Mukheraji22-Feb-08 20:52
Rinki Mukheraji22-Feb-08 20:52 
AnswerRe: How chane Font Name Pin
Abhijit Jana23-Feb-08 1:32
professionalAbhijit Jana23-Feb-08 1:32 
AnswerRe: How chane Font Name Pin
Mitesh Darji24-Feb-08 20:19
Mitesh Darji24-Feb-08 20:19 

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.