15,910,210 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by vishal goyal (Top 13 by date)
vishal goyal
31-May-16 5:04am
View
oh thanks man..its done.
vishal goyal
27-May-16 6:33am
View
no
vishal goyal
25-May-16 2:13am
View
i want that when i click on image..i want to show that particular image info on another page...so for that i need to pass id of that image in action method.
so how can i get id of that image?
vishal goyal
26-Nov-15 2:57am
View
thanks sanjay
vishal goyal
20-Nov-15 4:23am
View
yeahh
vishal goyal
20-Nov-15 4:16am
View
i knw....bt grt advice.
vishal goyal
20-Nov-15 2:36am
View
its showing me null value for textid
vishal goyal
20-Nov-15 2:33am
View
yes..
vishal goyal
20-Nov-15 2:30am
View
showing same error
vishal goyal
20-Nov-15 2:15am
View
yes i did..bt showing me same error
vishal goyal
20-Nov-15 2:08am
View
no..its less than 10
vishal goyal
20-Nov-15 1:42am
View
Server Error in '/' Application.
Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: Input string was not in a correct format.
Source Error:
Line 59: SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["con"].ConnectionString);
Line 60: SqlCommand cmd = new SqlCommand("Insert into employee1(emp_id,emp_name,emp_address,emp_education values(@1,@2,@3,@4)",con);
Line 61: cmd.Parameters.Add("@1", SqlDbType.Int).Value = Convert.ToInt32("textid.Text");
Line 62: cmd.Parameters.Add("@2", SqlDbType.NChar,10).Value = textname.Text;
Line 63: cmd.Parameters.Add("@3", SqlDbType.NChar,10).Value = textaddress.Text;
Source File: C:\Users\Vishal\downloads\documents\visual studio 2010\Projects\WebApplication2\WebApplication2\datalist.aspx.cs Line: 61
Stack Trace:
[FormatException: Input string was not in a correct format.]
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +11177559
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +145
System.Convert.ToInt32(String value) +43
WebApplication2.WebForm1.datalist1_ItemDataBound(Object sender, DataListItemEventArgs e) in C:\Users\Vishal\downloads\documents\visual studio 2010\Projects\WebApplication2\WebApplication2\datalist.aspx.cs:61
System.Web.UI.WebControls.DataList.OnItemDataBound(DataListItemEventArgs e) +9579420
System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +151
System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) +9580357
System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +63
System.Web.UI.WebControls.BaseDataList.DataBind() +54
WebApplication2.WebForm1.bind() in C:\Users\Vishal\downloads\documents\visual studio 2010\Projects\WebApplication2\WebApplication2\datalist.aspx.cs:39
WebApplication2.WebForm1.Page_Load(Object sender, EventArgs e) in C:\Users\Vishal\downloads\documents\visual studio 2010\Projects\WebApplication2\WebApplication2\datalist.aspx.cs:19
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
System.Web.UI.Control.OnLoad(EventArgs e) +92
System.Web.UI.Control.LoadRecursive() +54
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772
vishal goyal
20-Nov-15 1:39am
View
emp_id int
emp__name nchar(10)
emp_address nchar(10)
emp_education nchar(10)
Show More