Click here to Skip to main content
15,895,084 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionFindcontrol of dynamically created html control Pin
yesu prakash8-Sep-09 0:18
yesu prakash8-Sep-09 0:18 
AnswerRe: Findcontrol of dynamically created html control Pin
N a v a n e e t h8-Sep-09 1:10
N a v a n e e t h8-Sep-09 1:10 
AnswerRe: Findcontrol of dynamically created html control Pin
Abhishek Sur8-Sep-09 1:46
professionalAbhishek Sur8-Sep-09 1:46 
QuestionUploading the file to the same path on the server. Pin
Chesnokov Yuriy7-Sep-09 23:14
professionalChesnokov Yuriy7-Sep-09 23:14 
AnswerRe: Uploading the file to the same path on the server. Pin
Elayaraja Sambasivam7-Sep-09 23:29
Elayaraja Sambasivam7-Sep-09 23:29 
AnswerRe: Uploading the file to the same path on the server. Pin
Arun Jacob7-Sep-09 23:47
Arun Jacob7-Sep-09 23:47 
AnswerRe: Uploading the file to the same path on the server. Pin
N a v a n e e t h7-Sep-09 23:54
N a v a n e e t h7-Sep-09 23:54 
QuestionStored procedure Pin
mylogics7-Sep-09 23:10
professionalmylogics7-Sep-09 23:10 
hi i have created stored procedure as follows:
ALTER PROCEDURE dbo.StoredProcedure1
	(
	  @ID varchar(50),
	  @PassWord varchar(50),
	  @confirmPassword varchar(50),
	  @EmailID varchar(50)
	)
AS
	/* SET NOCOUNT ON */
	insert into Login(ID,Password,ConfirmPassword,EmailID)Values(@ID,@PassWord,@ConfirmPassWord,@EmailID) 
RETURN 

then i have used this storedprocedure in coding as.Actually m tryin to submit a form containing
id,password,conformpassword,email in table named Login:the code is:
public partial class emplogin : System.Web.UI.Page
{
    SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["Jajaipur"].ConnectionString);
    SqlCommand cmd=new SqlCommand();
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        SqlParameter ID = new SqlParameter();
        SqlParameter Password = new SqlParameter();
        SqlParameter Confirm = new SqlParameter();
        SqlParameter Email = new SqlParameter();
        cmd.Parameters.Add("@ID", SqlDbType.VarChar).Value=txtid.Text;
        cmd.Parameters.Add("@Password", SqlDbType.VarChar).Value=txtpassword.Text;
        cmd.Parameters.Add("@Confirm", SqlDbType.VarChar).Value=txtconfirmpassword.Text;
        cmd.Parameters.Add("@Email", SqlDbType.VarChar).Value=txtemailid.Text;
        cmd = new SqlCommand("StoredProcedure1",conn);
        cmd.CommandType = CommandType.StoredProcedure;
        conn.Open();
        cmd.ExecuteNonQuery();
        conn.Close();
        txtid.Text="";
        txtpassword.Text="";
        txtemailid.Text="";
        txtconfirmpassword.Text="";
    }
}

i got this error on rub time:Procedure or function 'StoredProcedure1' expects parameter '@ID', which was not supplied.


plz tell me wr m i wrong....
AnswerRe: Stored procedure Pin
Greg Chelstowski7-Sep-09 23:21
Greg Chelstowski7-Sep-09 23:21 
GeneralRe: Stored procedure Pin
mylogics7-Sep-09 23:24
professionalmylogics7-Sep-09 23:24 
GeneralRe: Stored procedure Pin
Greg Chelstowski7-Sep-09 23:28
Greg Chelstowski7-Sep-09 23:28 
GeneralRe: Stored procedure Pin
mylogics7-Sep-09 23:37
professionalmylogics7-Sep-09 23:37 
GeneralRe: Stored procedure Pin
Elayaraja Sambasivam7-Sep-09 23:34
Elayaraja Sambasivam7-Sep-09 23:34 
QuestionHow can I update the page Friend.aspx partially by clicking on button deleteFriend of usercontrol Profile.ascx? Pin
Shahdat Hosain7-Sep-09 22:28
Shahdat Hosain7-Sep-09 22:28 
AnswerRe: How can I update the page Friend.aspx partially by clicking on button deleteFriend of usercontrol Profile.ascx? Pin
Nisha Agrawal8-Sep-09 2:05
Nisha Agrawal8-Sep-09 2:05 
Questionaccsess database on host Pin
fattycode7-Sep-09 22:14
fattycode7-Sep-09 22:14 
AnswerRe: accsess database on host Pin
Manas Bhardwaj7-Sep-09 22:20
professionalManas Bhardwaj7-Sep-09 22:20 
GeneralRe: accsess database on host Pin
fattycode7-Sep-09 22:31
fattycode7-Sep-09 22:31 
AnswerRe: accsess database on host Pin
Nisha Agrawal8-Sep-09 2:14
Nisha Agrawal8-Sep-09 2:14 
GeneralRe: accsess database on host Pin
fattycode8-Sep-09 4:18
fattycode8-Sep-09 4:18 
GeneralRe: accsess database on host Pin
Nisha Agrawal23-Sep-09 2:45
Nisha Agrawal23-Sep-09 2:45 
AnswerRe: accsess database on host Pin
GauravKP8-Sep-09 3:09
professionalGauravKP8-Sep-09 3:09 
GeneralRe: accsess database on host Pin
fattycode8-Sep-09 4:17
fattycode8-Sep-09 4:17 
QuestionJavascript history.go is not working in IE7 Pin
meeram3957-Sep-09 22:04
meeram3957-Sep-09 22:04 
AnswerRe: Javascript history.go is not working in IE7 Pin
Aman Bhullar7-Sep-09 22:45
Aman Bhullar7-Sep-09 22:45 

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.