16,004,969 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 .NET 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 v2vinoth (Top 23 by date)
v2vinoth
17-Jul-15 3:03am
View
Outlook calender
v2vinoth
13-Jul-15 0:28am
View
I want to show alert when the data inserted into table.. If I got error means the alert is showing but the success it will not show any alert
v2vinoth
13-Jul-15 0:22am
View
# means page redirect - index.aspx
I want to show alert the data inserted into table
v2vinoth
10-Jul-15 8:22am
View
I have role master table
RoleId desc
1 Admin
2 User
For the Sitenode Roles which I want to map frm sql
v2vinoth
10-Jul-15 8:21am
View
I have Role master table
RoleId Desc
1
v2vinoth
10-Jul-15 8:09am
View
Here I manualy enter the roles
<sitemapnode url="javascript:;" title="Admin" description="Admin Page" roles="Administrator">
instead of this..I have a role master tsble..The value will get from the role master table
v2vinoth
10-Jul-15 2:17am
View
Hi Thanks for you quick update..Please check this once is correct
if (dr["ApplicationType"].ToString().Trim().Equals(string.Empty))
{
Response.Write("Unable insert Null value in the column ApplicationType");
continue; // skip the current entry in the loop
}
else
{
cmd.Parameters.Add(new SqlParameter("@ApplicationType", dr["ApplicationType"].ToString()));
cmd.Parameters.Add(new SqlParameter("@Title", dr["Title"].ToString()));
cmd.Parameters.Add(new SqlParameter("@FirstName", dr["FirstName"].ToString()));
cmd.Parameters.Add(new SqlParameter("@LastName", dr["LastName"].ToString()));
cmd.Parameters.Add(new SqlParameter("@Gender", dr["Gender"].ToString()));
con.Open();
bool success = Convert.ToBoolean(cmd.ExecuteScalar());
//object obj = cmd.ExecuteScalar();
if (success)
{
System.Web.HttpContext.Current.Response.Write("<script language=\"javaScript\">" + "alert('Updated!');" + "window.location.href='QuickLead.aspx';" + "<" + "/script>");
}
else
{
ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "alert('Correct the excel data and Re upload!!');", true);
}
con.Close();
}
v2vinoth
10-Jul-15 2:00am
View
Yes its working but I want to show error as any null values in excel
v2vinoth
9-Jul-15 6:18am
View
OleDbCommand cmd = new OleDbCommand("SELECT * FROM [Sheet1$]", OleDbcon);
OleDbDataAdapter objAdapter1 = new OleDbDataAdapter(cmd);
ds = new DataSet();
objAdapter1.Fill(ds);
Dt = ds.Tables[0];
I stored the excel into above datatable...I created a procedure as you mentioned.
Then how will I call the sp and insert the data..
v2vinoth
1-Jul-15 6:02am
View
Id name Typecode createdon
1 Raja null 2015-07-01
The above is the value of table..How will I set default value..bcos shows null value..
v2vinoth
6-Apr-15 2:14am
View
using (OleDbDataAdapter oda = new OleDbDataAdapter("SELECT FirstName,Lastname,Address,"+CreatedBY+","+CreatedOn+" [" + sheet1 + "]", excel_con))
v2vinoth
6-Apr-15 2:13am
View
It will not showing any error but the createdBy,createdOn column is showing null value only
v2vinoth
25-Mar-15 11:30am
View
Hi Rajesh,
Please tell me the code so that I can copy and try it..Please
v2vinoth
25-Mar-15 9:51am
View
In database(Name,Address,CreatedBy,CreatedON) columns are available in sql table. In excel two columns only available(Name,Address). While uploading the excel and add data for createBY column as session username and createdon column as currentdatetime automatically
v2vinoth
25-Mar-15 4:33am
View
Code is working but I want to add createdBY and createdON column automatically while uploading excel file..Like createdBY is session username and createdon is currentdateandtime
v2vinoth
25-Mar-15 4:09am
View
/* to Question */
v2vinoth
16-Dec-14 6:26am
View
I have created the dropdown and display the records, which i selected in the dropdown.
v2vinoth
25-Nov-14 8:01am
View
If you have code for IPrincipal means please share me with mail or solution..
v2vinoth
25-Nov-14 6:58am
View
Page is redirected with the method IsAuthenticated()
I written below code for store the values
DataSet ds = new DataSet();
ds = _LoginBLL.RetrieveRecords();
Session["Authorization"] = Convert.ToString(ds.Tables[0].Rows[0]["ROLE"]);
Session["UserID"] = Convert.ToString(ds.Tables[0].Rows[0]["UserID"]);
Session["EMPLOYEE_NAME"] = Convert.ToString(ds.Tables[0].Rows[0]["EMPLOYEE_NAME"]);
How do i store in session
v2vinoth
25-Nov-14 2:23am
View
Hi I am new to 3-tier architecture. Could you please explain the code.
v2vinoth
19-Nov-14 2:19am
View
Hi Dusara,
In above query, where do I pass parameter as (Empcode and month) or (From date to date). Please help this.
v2vinoth
19-Nov-14 2:11am
View
Hi Dusara,
Thank you so much. Its working...
v2vinoth
19-Nov-14 1:16am
View
I want to display the same in Grid. If I split this how can I show in front end.
Show More