Click here to Skip to main content
16,006,531 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: System.Security.SecurityException: That assembly does not allow partially trusted callers. Pin
Colin Angus Mackay31-Dec-07 1:07
Colin Angus Mackay31-Dec-07 1:07 
GeneralRe: System.Security.SecurityException: That assembly does not allow partially trusted callers. Pin
Mogaambo31-Dec-07 1:25
Mogaambo31-Dec-07 1:25 
GeneralRe: System.Security.SecurityException: That assembly does not allow partially trusted callers. Pin
Colin Angus Mackay31-Dec-07 1:29
Colin Angus Mackay31-Dec-07 1:29 
GeneralRe: System.Security.SecurityException: That assembly does not allow partially trusted callers. Pin
Mogaambo31-Dec-07 1:42
Mogaambo31-Dec-07 1:42 
GeneralRe: System.Security.SecurityException: That assembly does not allow partially trusted callers. Pin
N a v a n e e t h31-Dec-07 1:44
N a v a n e e t h31-Dec-07 1:44 
Generalhey jerk! Pin
leckey31-Dec-07 15:39
leckey31-Dec-07 15:39 
Generalstored procedure Pin
niki_nilu31-Dec-07 0:50
niki_nilu31-Dec-07 0:50 
GeneralRe: stored procedure Pin
Colin Angus Mackay31-Dec-07 1:03
Colin Angus Mackay31-Dec-07 1:03 
niki_nilu wrote:
but how to call stored procedure in asp.net 2.0 with c#.


ASP.NET is a framework for dealing with web applications. It has nothing to do with databases. However, you can use ADO.NET for accessing databases.

This is an example of what you might use. You need to replace bits of this with your own variables and the like:
using(SqlConnection connection = new SqlConnection("Your connection string here"))
{
    SqlCommand command = new SqlCommand();
    command.Connection = connection;
    command.CommandText = "Analyst";
    command.CommandType = CommandType.StoredProcedure;
    command.Parameters.AddWithValue("@UserId", theUserId);
    command.Parameters.AddWithValue("@StockName", theStockName);
    command.Parameters.AddWithValue("@NewUserId", theNewUserId);
    connection.Open();
    command.ExecuteNonQuery();
    connection.Close();
}


Please check your stored procedure. You pass a parameter called @NewUserId which is never used.


GeneralRe: stored procedure Pin
N a v a n e e t h31-Dec-07 1:31
N a v a n e e t h31-Dec-07 1:31 
GeneralRe: stored procedure Pin
Colin Angus Mackay31-Dec-07 1:45
Colin Angus Mackay31-Dec-07 1:45 
GeneralRe: stored procedure Pin
N a v a n e e t h31-Dec-07 1:50
N a v a n e e t h31-Dec-07 1:50 
GeneralRe: stored procedure Pin
niki_nilu31-Dec-07 1:51
niki_nilu31-Dec-07 1:51 
GeneralC# How to use HttpWebRequest to dowload document from Java Web Service Pin
miauwmiauwmiauw31-Dec-07 0:47
miauwmiauwmiauw31-Dec-07 0:47 
GeneralRe: C# How to use HttpWebRequest to dowload document from Java Web Service Pin
Colin Angus Mackay31-Dec-07 1:09
Colin Angus Mackay31-Dec-07 1:09 
GeneralWant to open new window on datagrid editbutton Pin
raushan_931-Dec-07 0:41
raushan_931-Dec-07 0:41 
GeneralRe: Want to open new window on datagrid editbutton Pin
Abhijit Jana31-Dec-07 1:16
professionalAbhijit Jana31-Dec-07 1:16 
GeneralRe: Want to open new window on datagrid editbutton Pin
raushan_931-Dec-07 1:24
raushan_931-Dec-07 1:24 
GeneralRe: Want to open new window on datagrid editbutton Pin
Abhijit Jana31-Dec-07 1:30
professionalAbhijit Jana31-Dec-07 1:30 
Questionhow to give more than one column to the datavalue field of the dropdown field Pin
jagan12330-Dec-07 23:59
jagan12330-Dec-07 23:59 
AnswerRe: how to give more than one column to the datavalue field of the dropdown field Pin
DotNetXenon31-Dec-07 5:25
DotNetXenon31-Dec-07 5:25 
GeneralNeed Tech. support in ASP.NET 2.0. Pin
S R Madhavan30-Dec-07 23:42
S R Madhavan30-Dec-07 23:42 
GeneralRe: Need Tech. support in ASP.NET 2.0. Pin
Paul Conrad31-Dec-07 12:52
professionalPaul Conrad31-Dec-07 12:52 
GeneralProblem with UserControl Pin
amin_behzadi30-Dec-07 22:29
professionalamin_behzadi30-Dec-07 22:29 
GeneralRe: Problem with UserControl Pin
Abhijit Jana31-Dec-07 1:38
professionalAbhijit Jana31-Dec-07 1:38 
Generalis datatable in loop kills the application speed Pin
jagan12330-Dec-07 21:14
jagan12330-Dec-07 21:14 

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.