15,922,015 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 Visual Basic questions
View Javascript 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 Member 10452585 (Top 18 by date)
Member 10452585
22-Sep-17 1:31am
View
Hi Dave Kreskowiak, Do you have any way to resolve this problem ?
Member 10452585
25-Aug-15 13:39pm
View
get deleted
Member 10452585
25-Aug-15 13:20pm
View
Mean my function is wrong?
Member 10452585
25-Aug-15 13:09pm
View
Actually this 28,22,23,19,21,125 is a student id in text file so before I need to find deepest node I need to read it from txt file then store in tree node. After that only from the tree node print out the deepest node in the tree!! any solution on it >?
Member 10452585
25-Aug-15 12:58pm
View
I get 28,22,23,19,21,125
But the deepest node is 21
Member 10452585
6-Aug-15 13:48pm
View
How to solve this problem my coding problem ??
Member 10452585
6-Aug-15 1:33am
View
but other function still work
Member 10452585
6-Aug-15 1:32am
View
Because other function i use can be run.Such as i using similar way to define in delete function but it work .. only insert can't work
Member 10452585
6-Aug-15 1:28am
View
After change the problem still here
Member 10452585
5-Aug-15 13:02pm
View
Still Same
Error:
left of '->item' must point to class/struct/union/generic type
left of '->insert' must point to class/struct/union/generic type
left of '.exam' must have class/struct/union
'List<t>::find' : cannot convert parameter 1 from 'Student' to 'int'
Member 10452585
1-Aug-14 9:17am
View
When i remove the coding they have no problem , then problem is in line 342 (if (search.equals(v[i].getMemID()))
)
Member 10452585
1-Aug-14 3:48am
View
String search = scanner.nextLine();
Member 10452585
15-Dec-13 6:22am
View
How to Solve ?
Member 10452585
14-Dec-13 2:23am
View
aspx
Member 10452585
14-Dec-13 2:21am
View
path of where you save picture mean the folder you save the photo ?
Member 10452585
8-Dec-13 9:42am
View
Thank you i solved it
Member 10452585
8-Dec-13 9:36am
View
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
namespace Practical1
{
public partial class Exercise1 : System.Web.UI.Page
{
string cs = Global.CS;
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnSubmit_Click(object sender, EventArgs e)
{
if (Page.IsValid)
{
string user = txtUser.Text;
string Fname = txtFName.Text;
string Lname = txtLName.Text;
string Ic = txtICNumber.Text;
string Phone = txtPhone.Text;
string Gender = rblGender.Text;
string State = ddlState.Text;
string Address = txtAddress.Text;
string Email = txtEmail.Text;
string sql = @"INSERT INTO Customer ([User],Fname,Lname,Ic,Phone,Gender,State,Address,Email)
VALUES (@[User],@Fname,@Lname,@Ic,@Phone,@Gender,@State,@Address,@Email)";
SqlConnection con = new SqlConnection(cs);
SqlCommand cmd = new SqlCommand(sql, con);
cmd.Parameters.AddWithValue("@[User]", user);
cmd.Parameters.AddWithValue("@Fname", Fname);
cmd.Parameters.AddWithValue("@Lname", Lname);
cmd.Parameters.AddWithValue("@Ic", Ic);
cmd.Parameters.AddWithValue("@Phone", Phone);
cmd.Parameters.AddWithValue("@Gender", Gender);
cmd.Parameters.AddWithValue("@State", State);
cmd.Parameters.AddWithValue("@Address", Address);
cmd.Parameters.AddWithValue("@Email", Email);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
}
}
protected void btnReset_Click(object sender, EventArgs e)
{
Server.Transfer("Register.aspx");
}
protected void CustomValidator1_ServerValidate(object source, ServerValidateEventArgs args)
{
string user = args.Value;
string sql = "SELECT COUNT (*) FROM Customer WHERE [User] = @[User]";
SqlConnection con = new SqlConnection(cs);
SqlCommand cmd = new SqlCommand(sql, con);
cmd.Parameters.AddWithValue("@[User]", user);
con.Open();
int count =(int)cmd.ExecuteScalar();
con.Close();
if (count > 0)
{
args.IsValid = false;
}
}
protected void RegisterUser_CreatedUser(object sender, EventArgs e)
{
}
}
}
Member 10452585
8-Dec-13 9:10am
View
How to solve it?
Show More