Click here to Skip to main content
15,892,005 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questiongirdview and dropdown having listitem Pin
haleemasher19-Aug-09 20:21
haleemasher19-Aug-09 20:21 
AnswerRe: girdview and dropdown having listitem Pin
Vimalsoft(Pty) Ltd19-Aug-09 20:35
professionalVimalsoft(Pty) Ltd19-Aug-09 20:35 
GeneralRe: girdview and dropdown having listitem Pin
haleemasher19-Aug-09 20:38
haleemasher19-Aug-09 20:38 
GeneralRe: girdview and dropdown having listitem Pin
Vimalsoft(Pty) Ltd19-Aug-09 20:41
professionalVimalsoft(Pty) Ltd19-Aug-09 20:41 
GeneralRe: girdview and dropdown having listitem Pin
haleemasher19-Aug-09 22:24
haleemasher19-Aug-09 22:24 
GeneralRe: girdview and dropdown having listitem Pin
Vimalsoft(Pty) Ltd19-Aug-09 22:48
professionalVimalsoft(Pty) Ltd19-Aug-09 22:48 
AnswerRe: girdview and dropdown having listitem Pin
4anusha420-Aug-09 1:47
4anusha420-Aug-09 1:47 
QuestionFailed to convert parameter value from a String to a DateTime Pin
haleemasher19-Aug-09 19:36
haleemasher19-Aug-09 19:36 
i want to take values from textbox and using a submit button i want to submit the records.
when i run the project it give errorFailed to convert parameter value from a String to a DateTime
Here is my code plz chk and reply
protected void btnSubmit_Click(object sender, EventArgs e)
        {
            try
            {

                ErrorMessage.Text = "";
                cnx.Open();
                
                SqlCommand insertCmd = new SqlCommand("insert into Coupon_Info(ReceivingDate,Coupon_TypeID,Serial_Start,Serial_End,Recieved_By)values(@date,@CouponId,@Start,@End,@By)",cnx);
                
                
                insertCmd.Parameters.Add("@Date", SqlDbType.DateTime);
                insertCmd.Parameters["@Date"].Value = txtdate.Text;
                
                insertCmd.Parameters.Add("@CouponId", SqlDbType.TinyInt);
                insertCmd.Parameters["@CouponId"].Value = DropDownList1.Text;
                
                insertCmd.Parameters.Add("@Start", SqlDbType.BigInt);
                insertCmd.Parameters["@Start"].Value = txtbxFrom.Text;
                
                insertCmd.Parameters.Add("@End", SqlDbType.BigInt);
                insertCmd.Parameters["@End"].Value = txtbxTo.Text;
                
                insertCmd.Parameters.Add("@By", SqlDbType.NVarChar, 50);
                insertCmd.Parameters["@By"].Value = txtbxBy.Text;
                
                insertCmd.ExecuteNonQuery();
                ErrorMessage.Text = "Successful";
                cnx.Close();
            }
            catch (Exception ex)
            { ErrorMessage.Text = ex.Message; }
        }

AnswerRe: Failed to convert parameter value from a String to a DateTime Pin
haleemasher19-Aug-09 20:05
haleemasher19-Aug-09 20:05 
Questionaccess with role and membership Pin
mylogics19-Aug-09 19:30
professionalmylogics19-Aug-09 19:30 
QuestionIs there any way to show a textbox and a submit button in an email body? Pin
biyon19-Aug-09 18:36
biyon19-Aug-09 18:36 
AnswerRe: Is there any way to show a textbox and a submit button in an email body? Pin
Christian Graus19-Aug-09 18:40
protectorChristian Graus19-Aug-09 18:40 
GeneralRe: Is there any way to show a textbox and a submit button in an email body? Pin
biyon19-Aug-09 19:57
biyon19-Aug-09 19:57 
QuestionImplement Webpart with Custom Personlization [modified] Pin
$unil Dhiman19-Aug-09 18:21
$unil Dhiman19-Aug-09 18:21 
QuestionValidation of A Valid Email Domain Pin
HatakeKaKaShi19-Aug-09 15:26
HatakeKaKaShi19-Aug-09 15:26 
AnswerRe: Validation of A Valid Email Domain Pin
Christian Graus19-Aug-09 15:33
protectorChristian Graus19-Aug-09 15:33 
Questionuse javascript to change the color for mouseover Pin
Seraph_summer19-Aug-09 8:59
Seraph_summer19-Aug-09 8:59 
AnswerRe: use javascript to change the color for mouseover Pin
Abhijit Jana19-Aug-09 9:22
professionalAbhijit Jana19-Aug-09 9:22 
GeneralRe: use javascript to change the color for mouseover Pin
Seraph_summer19-Aug-09 9:25
Seraph_summer19-Aug-09 9:25 
AnswerRe: use javascript to change the color for mouseover Pin
sajjy19-Aug-09 9:42
sajjy19-Aug-09 9:42 
AnswerRe: use javascript to change the color for mouseover Pin
sajjy19-Aug-09 9:46
sajjy19-Aug-09 9:46 
GeneralRe: use javascript to change the color for mouseover Pin
Seraph_summer19-Aug-09 9:55
Seraph_summer19-Aug-09 9:55 
GeneralRe: use javascript to change the color for mouseover Pin
sajjy19-Aug-09 10:10
sajjy19-Aug-09 10:10 
GeneralRe: use javascript to change the color for mouseover Pin
Seraph_summer19-Aug-09 10:15
Seraph_summer19-Aug-09 10:15 
GeneralRe: use javascript to change the color for mouseover Pin
sajjy19-Aug-09 10:40
sajjy19-Aug-09 10:40 

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.