Click here to Skip to main content
12,354,630 members (58,997 online)
   

ASP.NET

 
AnswerRe: Gridview Pin
Wes Aday12-Aug-12 6:45
memberWes Aday12-Aug-12 6:45 
GeneralRe: Gridview Pin
sravsailu12-Aug-12 7:05
membersravsailu12-Aug-12 7:05 
Questionhow to extrack an image from an email and save it on a disk Pin
Member 798388410-Aug-12 18:17
memberMember 798388410-Aug-12 18:17 
AnswerRe: how to extrack an image from an email and save it on a disk Pin
Richard MacCutchan10-Aug-12 21:53
mvpRichard MacCutchan10-Aug-12 21:53 
Questionsession variables Pin
sc steinhayse10-Aug-12 17:28
membersc steinhayse10-Aug-12 17:28 
AnswerRe: session variables Pin
Shameel14-Aug-12 0:40
memberShameel14-Aug-12 0:40 
QuestionReading data from Excel Pin
indian14310-Aug-12 7:15
memberindian14310-Aug-12 7:15 
AnswerRe: Reading data from Excel Pin
jkirkerx10-Aug-12 10:33
memberjkirkerx10-Aug-12 10:33 
GeneralRe: Reading data from Excel Pin
indian14310-Aug-12 12:28
memberindian14310-Aug-12 12:28 
GeneralRe: Reading data from Excel Pin
jkirkerx10-Aug-12 19:12
memberjkirkerx10-Aug-12 19:12 
Question(Input string was not in a correct format) with ExecuteReader Pin
jrahma10-Aug-12 2:33
memberjrahma10-Aug-12 2:33 
AnswerRe: (Input string was not in a correct format) with ExecuteReader Pin
Meysam Tolouee10-Aug-12 2:52
memberMeysam Tolouee10-Aug-12 2:52 
AnswerRe: (Input string was not in a correct format) with ExecuteReader Pin
Parthi Bun10-Aug-12 3:06
memberParthi Bun10-Aug-12 3:06 
AnswerRe: (Input string was not in a correct format) with ExecuteReader Pin
AlluvialDeposit10-Aug-12 3:26
memberAlluvialDeposit10-Aug-12 3:26 
SqlCommand.Parameters.AddWithValue() does not take datatype as an parameter. You should add the parameter name and value (not datatype)
sql_command.Parameters.AddWithValue("param_member_id", Request.QueryString["id"]);
http://derekreynolds.wordpress.com/2011/05/16/using-sqlcommand-and-addwithvalue-parameters-to-execute-sql-insert/[^]

But your error "Input string was not in a correct format" is because some convert's did not succeed. When converting strings-->int etc you should use TryParse


private static void TryToParse(string value)
 {
    int number;
    bool result = Int32.TryParse(value, out number);
    if (result)
    {
       Console.WriteLine("Converted '{0}' to {1}.", value, number);
    }
    else
    {
       if (value == null) value = "";
       Console.WriteLine("Attempted conversion of '{0}' failed.", value);
    }
 }
--------------------
When Chuck Norris' dreams come true, your worst nightmares begin.

GeneralRe: (Input string was not in a correct format) with ExecuteReader Pin
jrahma10-Aug-12 4:03
memberjrahma10-Aug-12 4:03 
GeneralRe: (Input string was not in a correct format) with ExecuteReader Pin
jrahma11-Aug-12 9:11
memberjrahma11-Aug-12 9:11 
AnswerRe: (Input string was not in a correct format) with ExecuteReader Pin
Shameel14-Aug-12 0:46
memberShameel14-Aug-12 0:46 
Questionasp.net Pin
Member 902166110-Aug-12 2:08
memberMember 902166110-Aug-12 2:08 
AnswerRe: asp.net Pin
Wes Aday10-Aug-12 4:00
memberWes Aday10-Aug-12 4:00 
Questionstrange issue with cache application block (ENT LIB 5) Pin
Luca Dominici9-Aug-12 23:23
memberLuca Dominici9-Aug-12 23:23 
AnswerRe: strange issue with cache application block (ENT LIB 5) Pin
Pete O'Hanlon10-Aug-12 0:42
protectorPete O'Hanlon10-Aug-12 0:42 
AnswerRe: strange issue with cache application block (ENT LIB 5) Pin
jkirkerx10-Aug-12 10:12
memberjkirkerx10-Aug-12 10:12 
Questiondebug javascript Pin
dcof9-Aug-12 18:44
memberdcof9-Aug-12 18:44 
AnswerRe: debug javascript Pin
AnnieCalvert9-Aug-12 20:09
memberAnnieCalvert9-Aug-12 20:09 
GeneralRe: debug javascript Pin
dcof10-Aug-12 4:31
memberdcof10-Aug-12 4:31 
GeneralRe: debug javascript Pin
enhzflep10-Aug-12 4:59
memberenhzflep10-Aug-12 4:59 
Generalwindow open Pin
dcof9-Aug-12 12:16
memberdcof9-Aug-12 12:16 
QuestionRe: window open Pin
CodeHawkz9-Aug-12 20:57
memberCodeHawkz9-Aug-12 20:57 
AnswerRe: window open Pin
dcof10-Aug-12 4:30
memberdcof10-Aug-12 4:30 
GeneralRe: window open Pin
CodeHawkz12-Aug-12 8:36
memberCodeHawkz12-Aug-12 8:36 
GeneralRe: window open Pin
jkirkerx10-Aug-12 11:33
memberjkirkerx10-Aug-12 11:33 
GeneralRe: window open Pin
dcof11-Aug-12 11:45
memberdcof11-Aug-12 11:45 
GeneralRe: window open Pin
jkirkerx11-Aug-12 13:34
memberjkirkerx11-Aug-12 13:34 
Generaltextbox wrap to several lines Pin
classy_dog9-Aug-12 9:05
memberclassy_dog9-Aug-12 9:05 
AnswerRe: textbox wrap to several lines Pin
mark merrens9-Aug-12 10:02
membermark merrens9-Aug-12 10:02 
GeneralRe: textbox wrap to several lines Pin
classy_dog9-Aug-12 12:07
memberclassy_dog9-Aug-12 12:07 
AnswerRe: textbox wrap to several lines Pin
mark merrens9-Aug-12 12:40
membermark merrens9-Aug-12 12:40 
QuestionA liitle help on submitting a json array, no-primitive to a web service Pin
jkirkerx9-Aug-12 8:49
memberjkirkerx9-Aug-12 8:49 
AnswerI think I did it, got my json reponse back with no error during testing. Pin
jkirkerx9-Aug-12 17:03
memberjkirkerx9-Aug-12 17:03 
QuestionRe: A liitle help on submitting a json array, no-primitive to a web service Pin
CodeHawkz9-Aug-12 20:54
memberCodeHawkz9-Aug-12 20:54 
AnswerRe: A liitle help on submitting a json array, no-primitive to a web service Pin
jkirkerx10-Aug-12 6:26
memberjkirkerx10-Aug-12 6:26 
AnswerRe: A liitle help on submitting a json array, no-primitive to a web service Pin
CodeHawkz12-Aug-12 8:48
memberCodeHawkz12-Aug-12 8:48 
GeneralRe: A liitle help on submitting a json array, no-primitive to a web service Pin
jkirkerx12-Aug-12 10:25
memberjkirkerx12-Aug-12 10:25 
GeneralRe: A liitle help on submitting a json array, no-primitive to a web service Pin
CodeHawkz12-Aug-12 17:23
memberCodeHawkz12-Aug-12 17:23 
GeneralRe: A liitle help on submitting a json array, no-primitive to a web service Pin
jkirkerx13-Aug-12 7:17
memberjkirkerx13-Aug-12 7:17 
GeneralRe: A liitle help on submitting a json array, no-primitive to a web service Pin
CodeHawkz29-Aug-12 19:17
memberCodeHawkz29-Aug-12 19:17 
GeneralRe: A liitle help on submitting a json array, no-primitive to a web service Pin
jkirkerx30-Aug-12 6:04
memberjkirkerx30-Aug-12 6:04 
GeneralRe: A liitle help on submitting a json array, no-primitive to a web service Pin
CodeHawkz30-Aug-12 20:34
memberCodeHawkz30-Aug-12 20:34 
GeneralRe: A liitle help on submitting a json array, no-primitive to a web service Pin
jkirkerx31-Aug-12 6:25
memberjkirkerx31-Aug-12 6:25 
QuestionPage.Response.Redirect not working Pin
dcof9-Aug-12 5:21
memberdcof9-Aug-12 5:21 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 28 Jun 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid