15,999,303 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 A94 (Top 61 by date)
A94
12-Apr-16 12:24pm
View
Can you please illustrate with example by modifying the above procedure or code
A94
29-Mar-16 4:43am
View
Deleted
hi
A94
29-Mar-16 4:42am
View
Ok
A94
16-Mar-16 8:16am
View
I have tried it already but no effect is visible
A94
15-Mar-16 7:13am
View
Deleted
First of all "question-title" is an id in html control. But since it is an id in html control i want to used that id in asp.net server control. The above code of asp.net server control have been updated. Please check it out...
A94
26-Jan-16 6:29am
View
Is asp.net 5 and mvc 5 same?
A94
4-Nov-15 9:41am
View
I am using notepad. The error occurs when I click on "save" button in Employee Class.
A94
31-Oct-15 4:22am
View
but I am only retrieving id and storing in rid and based on that I am updating the record and I want to only update title and description
A94
25-Oct-15 3:38am
View
Ok I have split the line using readline() method. but how to get the first word
A94
17-Oct-15 10:37am
View
But only the attachment is encoded in base64. Suppose if there are multiple accounts being used such as yahoo, Hotmail then how to change the email and password. that is why I have used variable to store password.
A94
17-Oct-15 10:33am
View
I have used correct values that are registered with gmail
A94
13-Sep-15 4:41am
View
Ok I am developing a news website and for uploading the details with image I am using database and also storing image into it. So for inserting image into database I am converting it into array of bytes using convertImage() method defined above and below the other two code blocks are of retrieving the image from database and displaying it on website. The first code block is retrieval using data-adapter and other with datareader. With the above comment that you have made that "you are using output from convertImage and an SQL INSERT statement" then how to insert and retrieve image from database? can you help me with other code?
A94
13-Sep-15 4:30am
View
A blank cell. And if the code that is posted above is of retrieval than how to insert it into database.?
A94
13-Sep-15 4:22am
View
img1 is the "ID" for Image Control in ASP.NET. Code that saves the Image in Database is below:
------------------------------
byte[] arrImg;
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack )
{
loadCategory();
}
}
protected void btnSave_Click(object sender, EventArgs e)
{
convertImage();
try
{
SqlCommand cmd = new SqlCommand("Sp_Insert_News", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@title", txtTitle.Text);
cmd.Parameters.AddWithValue("@description", txtDescription.Text);
cmd.Parameters.AddWithValue("@cid", ddlcat.SelectedItem.Value);
cmd.Parameters.AddWithValue("@img", arrImg);
cmd.Parameters.AddWithValue("@ddate",txtDate.Text );
con.Open();
cmd.ExecuteNonQuery();
con.Close();
}
catch(Exception ex)
{
Response.Write("Error:" + ex.ToString());
}
}
A94
13-Sep-15 4:06am
View
It means that the image does not appear in Image Box in ASP.NET and that the code that converts image into bytes is above named "private void convertImage()"
and the datatype that hold image in DB is "varbinary(MAX)" and the code that is used to retrieve image is also above-One with Data Adapter (SportsMain()) and other with Data Reader
A94
24-Aug-15 9:10am
View
Then how to compare the priorities of the threads and put the thread to sleep which has higher priority and determine if it alive or not
A94
11-Apr-15 8:56am
View
I tried the above code (i.e doing it by executing 2 queries). But it inserts only the last checked employee. for example , suppose I check empid 1 and 2 then I will store the record of 2nd id(i.e, 2) and not the first one. I want both...
A94
10-Apr-15 22:37pm
View
But where to add. In procedure or in code that you have suggested above.
A94
10-Apr-15 12:15pm
View
Thank You. But how to update "mark_attendance" procedure as it is used to insert data of the attendance.Is there any other alternative.Please suggest
A94
17-Mar-15 12:36pm
View
First of all the records as fetched in datagrid using stored procedure when the form loads. I have added a functionality by which a record can be searched by using the id. When the user enters id, the record should be searched in datagrid and it should be displayed using LINQ...
A94
16-Mar-15 6:35am
View
Yes It is occurring at "com.Connection=con"
A94
10-Mar-15 12:03pm
View
OK, I understood. But which data type should I use to enter binary number of any length(i.e I should convert binary number of any length to its appropriate type)
A94
10-Mar-15 11:53am
View
Can you help me to understand the above line of code. Please.
A94
10-Mar-15 11:38am
View
yes...I tried
A94
10-Mar-15 3:00am
View
I mean some columns like id,name,designation,salary..
A94
7-Mar-15 23:07pm
View
But I am getting error : An object or column name is missing or empty. For SELECT INTO statements, verify each column has a name. For other statements, look for empty alias names. Aliases defined as "" or [] are not allowed. Change the alias to a valid name. Unclosed quotation mark after the character string ''.
A94
18-Feb-15 5:13am
View
no.
A94
17-Feb-15 11:50am
View
Ok. but how to change the connection string that matches that version of SQL server. Also it is a standalone desktop application (ie my project)
A94
17-Feb-15 11:48am
View
But how to change the connection string to refer to the computer with the production SQL server instance installed on it since different pc have different version of SQL server installed.
A94
17-Feb-15 11:36am
View
But when deploying the application the database will also get installed (ie "EMSDB.mdf") and other related files that is required to run it. So, is SqlLocalDB required on other PC ?
A94
17-Feb-15 11:18am
View
Ok I improve my question
A94
16-Feb-15 11:43am
View
In above connection string the operation of insert,search etc works fine. But when I run application on different pc it gives error. So how to setup correct path. Any Idea
A94
16-Feb-15 7:14am
View
But for standalone application is parameterized query needed.
A94
15-Feb-15 11:01am
View
Thanks.
A94
15-Feb-15 10:39am
View
Thanks. I got It. But What about Stored Procedure. or Both are same ( i.e Param. query and stored procedure)
A94
15-Feb-15 10:29am
View
Normal query- "select * from database1 where id=" & txtid.text & ""
A94
15-Feb-15 10:23am
View
Thanks. But what is the difference between normal query and parameterized query
And again Thank You..!
A94
15-Feb-15 10:17am
View
Please can you help me to understand this code. And thank you very much.
A94
15-Feb-15 10:12am
View
Then how should I write the non-parameterized part. for ex : where empid=@empid
Is the way should I go with ?
A94
15-Feb-15 9:36am
View
dr(16) id the location where image is stored in varbinary type but how to convert back to image and load into picturebox
A94
15-Feb-15 8:34am
View
Thanks It Worked...!!!!
A94
14-Feb-15 22:35pm
View
But I have taken Pic as" Image (Datatype) "in SQL database
A94
13-Feb-15 6:10am
View
Thanks. Are there any third party components that is free, for developing attractive win-forms and also how to resize form controls according to different screen resolution (ie, when screen resolution chages the form controls should resize accordingly) ?
A94
11-Feb-15 22:58pm
View
But when I added a database in solution explorer using add new item menu it show only "Service Based Database" which has ".mdf" extension. So, should I go with it.
A94
10-Feb-15 10:31am
View
Which extension is SQL Server Compact Edition database file created?
A94
10-Feb-15 10:16am
View
Thanks...
A94
8-Feb-15 2:24am
View
are you sure?
A94
7-Feb-15 9:50am
View
Its ok. That's right I have to make basic decisions. Thank you
A94
7-Feb-15 5:35am
View
There are 3 users of this system(ADMIN,EMPLOYEE AND MANAGER) but when creating a table should I create one table for all of the user( mentioned above) as there is only one admin to manage the system. So How can I distinguish login based on the type of user(ie ADMIN,EMPLOYEE OR MANAGER)? Thanks in advance.
A94
9-Nov-14 3:06am
View
Yes it is a homework but how should I compare reservation type of both functions...that is the problem...Can you help...
A94
4-Oct-14 9:05am
View
OK! I have updated the program and sought out prime numbers from array but how to delete them and display new array please help....
A94
3-Oct-14 23:33pm
View
Hey..! is Maths required for software development and if required what type of maths is required for ex: calculus,discrete or algebra please tell...
A94
3-Oct-14 23:32pm
View
yes 2,5,7,11 and so on are prime numbers but how to remove it from array..
A94
20-Jun-14 4:15am
View
Deleted
Still getiing error....
A94
20-Jun-14 1:22am
View
Still getting en error that : Date should have zero or one argument"
A94
20-Jun-14 0:51am
View
I have implemented operator overloading using friend function where d1-/+ invokes the function and 1 is passed as an argument.IS copy constructor required...
A94
22-Apr-14 11:23am
View
Ok..! I have solved it myself..thanks a lot...!!
A94
19-Apr-14 12:23pm
View
ok i agree it takes time and also agree that its a simple problem but since for two days i was trying to solve other functions in the code and i have fixed it too but i think there is a problem in display function...!
A94
19-Apr-14 12:07pm
View
I have been trying since two days...and also this is my home work.however i am learning it myself.And as far as clue is concerned i'll provide to you.. so if data is 1,2,3,4,5 it will display 1 and 5 not 1,2,3,4,5...
A94
11-Mar-14 12:26pm
View
this is not my homework but i was just trying to workout finding the difference and my intention was not to make you write the whole program but was to suggest me the correct solution.And if you think that it is my mistake for asking a question and I am sorry for this because i think that by asking question only you can learn and gain knowledge and also by trying to solve it.
A94
3-Mar-14 8:22am
View
I agree with you but i am having test and our teacher told to complete the programs by tomorrow.But due to lack of Time i did not able to work an all of them i could complete only 6 of 10 programs.please help...!
Show More