15,911,139 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 Nikil0012 (Top 22 by date)
Nikil0012
26-Jun-12 0:35am
View
I have posted the code for Handler.aspx, Please help
Nikil0012
26-Jun-12 0:30am
View
And my image is displying correctly but while updating the issue comes
Nikil0012
26-Jun-12 0:29am
View
Filed type for storing image is Image in database
Nikil0012
25-Jun-12 7:42am
View
Yes it exists but in binary format. like 0x53797374656D2E427974655B5D
Nikil0012
25-Jun-12 7:17am
View
No sir it's nt working, same problem
Nikil0012
25-Jun-12 7:10am
View
Deleted
It gives error
1.; expected after id
2.New line in constant
Please help
Nikil0012
25-Jun-12 4:25am
View
yes, after adding it is visible, but at the time of updating it is not, please help
Nikil0012
25-Jun-12 3:37am
View
public void bind()
{
conn.Open();
SqlDataAdapter da = new SqlDataAdapter("SELECT * FROM tbl_SqlImage", conn);
DataSet ds = new DataSet();
da.Fill(ds);
if (ds.Tables[0].Rows.Count != 0)
{
GridView1.DataSource = ds;
GridView1.DataBind();
}
conn.Close();
}
This is the bind() code. And i already tried viewstate enable option, not working please help
Nikil0012
22-Jun-12 6:22am
View
Thanks a lot mam
Nikil0012
22-Jun-12 2:40am
View
I have done that in my code sir, please can u please give a look to code, and tell me what wrong, i have just posted updated code. please
Nikil0012
22-Jun-12 2:33am
View
I am getting an error that in my table image in gridview displaying System.Byte[] instead of image
Nikil0012
21-Jun-12 6:15am
View
Hello sir/madam
My new query is this,
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
GridViewRow row = (GridViewRow)GridView1.Rows[e.RowIndex];
Label lblID = (Label)row.FindControl("lblID");
TextBox textName = (TextBox)row.FindControl("txtName");
TextBox textDesc = (TextBox)row.FindControl("txtDesc");
TextBox textImage = (TextBox)row.FindControl("txtImage");
TextBox textActive = (TextBox)row.FindControl("txtActive");
TextBox textCreatedBy = (TextBox)row.FindControl("txtCreatedBy");
TextBox textCreatedDate = (TextBox)row.FindControl("txtCreatedDate");
GridView1.EditIndex = -1;
conn.Open();
//SqlCommand cmd = new SqlCommand("update emp set marks=" + textmarks.Text + " , name='" + textname.Text + "' where rowid=" + lbl.Text + "", conn);
SqlCommand cmd = new SqlCommand("UPDATE tbl_SqlImage set Name=" + textName.Text + " , Description='" + textDesc.Text + " , Image='" + textImage.Text + " , Active='" + textActive.Text + " , CreatedBy='" + textCreatedBy.Text + " , CreatedDate='" + textCreatedDate.Text + "' where ID=" + lblID.Text + "", conn);
cmd.ExecuteNonQuery();
conn.Close();
bind();
//GridView1.DataBind();
Now i am getting an error object reference not set to an instance of the object.
i wnat to know also that createddate.text is write or i have to convert it.
Nikil0012
19-Jun-12 7:20am
View
I want to create another string path so i want to ask you a question that can i write a code using string path1 and keeping string path as it is.
Nikil0012
18-Jun-12 7:55am
View
Sir can you please provide me the solution for this line.Please
Nikil0012
14-Jun-12 6:35am
View
It doesn't display the grid view plz help, i have no data in grid view, and when i insert it it gives above error RequestID
Nikil0012
14-Jun-12 6:31am
View
I get this error: A field or property with the name 'RequestID' was not found on the selected data source.
On Gridview1.datbind();
Plz help
Nikil0012
13-Jun-12 3:09am
View
how to Cast the text value to binary
Nikil0012
13-Jun-12 3:04am
View
Can u give the code for this plz
Nikil0012
13-Jun-12 2:04am
View
Ya it is same in the procedure.
Nikil0012
13-Jun-12 1:47am
View
I have tried that already, but same error, plz help
Nikil0012
13-Jun-12 1:47am
View
I have tried that already, but doesn't work, plz help
Nikil0012
11-Jun-12 5:43am
View
No u don't get it right, i can't use a button on the page, i have to upload the images which are hardcoded in database. plz help
Show More