15,915,513 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 Sureshfrompalladam (Top 16 by date)
Sureshfrompalladam
16-Sep-13 5:45am
View
how to diaplay the image in crystal format its in binary format means ???????????
Sureshfrompalladam
8-Aug-13 5:41am
View
for example we took the following
(basicpay + hra+da+sa+asa)should not exceed > 1,00, 000
how can i calculate and compare that in sqlserver
Sureshfrompalladam
8-Aug-13 5:41am
View
Deleted
for example we took the following
(basicpay + hra+da+sa+asa)should not exceed > 1,00, 000
how can i calculate compare that in sqlserver
Sureshfrompalladam
8-Aug-13 1:15am
View
oh k thanks friend but we can create formula in that ?
Sureshfrompalladam
6-Aug-13 1:08am
View
thank you so much for your valuable reply ....
its converted double only at the run time so no problem in decimal values
Sureshfrompalladam
29-Jul-13 3:12am
View
if i use decimal means it automatically convert into double and show me the error as
cannot store double into decimal ..
Sureshfrompalladam
8-Jul-13 5:35am
View
i need to store the id , name & image in database. In that design form i can only show the empid and image in the page .....
help me friend ......
Sureshfrompalladam
8-Jul-13 3:13am
View
Data can't be fetched from EmpNumberTextbox.text
can u please try the above code and help me to correct it
Sureshfrompalladam
8-Jul-13 0:02am
View
In the above coding the empid is the error statement i got while i use break statement.
Sureshfrompalladam
4-Jul-13 1:03am
View
Dim DBConnectionString As String = "Data Source=BOSS\SQLEXPRESS;Initial Catalog=simple;User ID=sa"
Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
Dim connection As New SqlConnection
Try
Dim img As FileUpload = CType(imgUpload, FileUpload)
Dim imgByte As Byte() = Nothing
If img.HasFile AndAlso Not img.PostedFile Is Nothing Then
'To create a PostedFile
Dim File As HttpPostedFile = imgUpload.PostedFile
'Create byte Array with file len
imgByte = New Byte(File.ContentLength - 1) {}
'force the control to load data in array
File.InputStream.Read(imgByte, 0, File.ContentLength)
End If
' Insert the employee name and image into db
' Dim conn As String = ConfigurationManager.ConnectionStrings("Data Source=BOSS\SQLEXPRESS;Initial Catalog=simple;User ID=sa").ConnectionString
connection = New SqlConnection(DBConnectionString)
connection.Open()
Dim sql As String = "INSERT INTO EmpDetails(Empid,Empname,Empimage) VALUES(@empid, @empname, @empimage) "
Dim cmd As SqlCommand = New SqlCommand(sql, connection)
cmd.Parameters.AddWithValue("@empid", EmpNumberTextBox.Text)
cmd.Parameters.AddWithValue("@empname", txtEName.Text.Trim())
cmd.Parameters.AddWithValue("@empimage", imgByte)
Dim id As Char
lblResult.Text = String.Format("Employee ID is {}", id)
Catch
lblResult.Text = "There was an error"
Finally
connection.Close()
End Try
End Sub
this is my coding friend but empid is problem for me to store this can u help me to finish my project
Sureshfrompalladam
3-Jul-13 8:42am
View
Deleted
directly come to the final statement .. so the datas not store into the dada base
Sureshfrompalladam
3-Jul-13 6:47am
View
Deleted
the above coding will not work properly it means that the data base connection itself i face the error .
evevn single data not stored in the data base .....
Sureshfrompalladam
3-Jul-13 0:17am
View
dear nirav prabtani friend
thanks for ur reply but i need of varchar datatype i modified my question please see that
Sureshfrompalladam
2-Jul-13 3:31am
View
Deleted
i need for empid as varchar ... and also it will not work properly help me.....
Sureshfrompalladam
1-Jul-13 8:40am
View
Deleted
NEED OF CODING FOR BOLB TYPE .....
YOUR POSTED CODING I ALREADY USED AND I GOT EXACT ANSWER FOR THE BUT I HAVE TO USE THE DATA TYPE AS VARCHAR(5) FOR EMPID ......
Sureshfrompalladam
1-Jul-13 8:37am
View
Deleted
hi friend i said my data type was varchar(5) the empid was varchar(5)
the interger empid works properly but i need to store only by the varchar type PLEASE REPLY ME
THANKS FOR YOUR INSTANT REPLY
Show More