15,909,530 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 Member 11873864 (Top 28 by date)
Member 11873864
30-Dec-16 5:11am
View
Yes this is effective but I want to restrict some data and display full if user will click on Read More button
Member 11873864
28-Dec-16 0:43am
View
In my web application,Now i want to display the media(image,title,description) but not in grid view.Can you suggest me another way.I am having one link also for demo where they are displaying image,title and description with Read More button
http://www.spacefoundation.org/media
Member 11873864
28-Dec-16 0:39am
View
Thankyou.Your code is working.
Member 11873864
27-Dec-16 5:46am
View
I am saving the data using this code :
SqlCommand cmd = new SqlCommand("insert into tbl_media(id,title,description) values(@id,@title,@description)", con);
SqlParameter[] prms = new SqlParameter[3];
prms[0] = new SqlParameter("@id", SqlDbType.VarChar, 50);
prms[0].Value = Session["id"].ToString();
prms[1] = new SqlParameter("@title", SqlDbType.VarChar, 50);
prms[1].Value = txtTitle.Text;
prms[2] = new SqlParameter("@description", SqlDbType.VarChar, 100);
prms[2].Value = txtDescription.Text;
cmd.Parameters.AddRange(prms);
Member 11873864
3-Dec-16 2:19am
View
Yes i checked there also.But my code is working now because now i have used parameterized queries
Member 11873864
3-Dec-16 2:19am
View
Thankyou very much.Your solution works.But i did not understand why?Why this code is working with parameterized SQL queries.
Member 11873864
2-Dec-16 6:19am
View
ok
Member 11873864
2-Dec-16 6:19am
View
I used breakpoints and am getting correct id also.But image is not coming in output window.
Member 11873864
2-Dec-16 6:13am
View
Is it necessary to save the image in .net folder also?
Member 11873864
2-Dec-16 6:05am
View
I used your referred code but still problem is same.
Member 11873864
2-Dec-16 4:58am
View
Thanks for reply.I want to display all images from database on one click not only single image.
Member 11873864
2-Dec-16 4:55am
View
No any exception.But picture is coming with cross symbol.
Member 11873864
9-Nov-16 5:24am
View
My application name is Marine.I right click in solution explorer on website name.Then Clicked on Publish.I created new publish profile with name-marineweb.
Next,
Publish Method-Web Deploy
Service URL-LocalHost
Site/application-Default Web Site/Marine
Destination URL-http://marine
Connection validate successfully.
Configuration-Release
Clicked on publish.
But it is not working.Do you have any solution for this?
Member 11873864
8-Nov-16 6:06am
View
Kindly give me exact solution.
I want to give my web application to someone who is not having any software on his computer.What should i do?
Member 11873864
8-Nov-16 6:03am
View
No.I am trying on only my system.
Member 11873864
8-Nov-16 6:00am
View
I don`t have any idea how i can give my web application to a non technical(layman) person.So that he/she can view my web application
Member 11873864
8-Nov-16 5:57am
View
Error is:
This site canât be reached
localhost refused to connect.
Search Google for localhost publish site
ERR_CONNECTION_REFUSED
Member 11873864
2-Feb-16 2:10am
View
Because i want to try this new thing.
Member 11873864
2-Feb-16 2:05am
View
I am also not having any clue.But this is the requirement which client gave me.I will check your suggestion of OCR
Member 11873864
19-Jan-16 5:30am
View
Thanks for your reply.This explanation is very helpful to solve my problem.
Member 11873864
19-Jan-16 3:53am
View
According to you i should make two tables in database.one for interests(shopping,travel) and one for values(jabong,amazon).
Then what about jabong and amazon.Then these values i should save in separate columns?
Member 11873864
19-Jan-16 3:32am
View
Now i want that at the time of retrieval, two checkbox or two separate grid view columns should display,in which one checkbox will display jabong,second checkbox will display amazon.
Member 11873864
19-Jan-16 3:29am
View
I am having two columns:-
Userid-U1001
Shopping-Jabong,Amazon
Travel- Yatra,makemytrip
In one column i saved multiple values
Member 11873864
19-Jan-16 3:26am
View
Firstly i wrote this code to save the multiple values in one column:-
protected void Button1_Click(object sender, EventArgs e)
{
for (int i = 0; i < cblShopping.Items.Count - 1; i++)
{
if (cblShopping.Items[i].Selected)
{
string interests = string.Empty;
foreach (ListItem items in this.cblShopping.Items)
if (items.Selected)
interests += items + ",";
string str = "update tbl_value set shopping='" + interests + "' where id='" + Session["s"].ToString() + "'";
str = str.TrimStart(',');
obj.exec(str);
break;
}
}
Problem:-At the time of registration i am giving one option to user to select some interests.Suppose user selects checkbox jabong from shopping interest,yatra from travel interest.I am saving this in database (jabong,yatra) in one column only.After login,user should be able to view and open these links.How to do this
Member 11873864
19-Jan-16 3:26am
View
Firstly i wrote this code to save the multiple values in one column:-
protected void Button1_Click(object sender, EventArgs e)
{
for (int i = 0; i < cblShopping.Items.Count - 1; i++)
{
if (cblShopping.Items[i].Selected)
{
string interests = string.Empty;
foreach (ListItem items in this.cblShopping.Items)
if (items.Selected)
interests += items + ",";
string str = "update tbl_value set shopping='" + interests + "' where id='" + Session["s"].ToString() + "'";
str = str.TrimStart(',');
obj.exec(str);
break;
}
}
Problem:-At the time of registration i am giving one option to user to select some interests.Suppose user selects checkbox jabong from shopping interest,yatra from travel interest.I am saving this in database (jabong,yatra) in one column only.After login,user should be able to view and open these links.How to do this
Member 11873864
19-Jan-16 2:48am
View
how to retrieve these values separately?in 3 checkboxes
Member 11873864
19-Jan-16 2:46am
View
When i am selecting the values and displaying in checkbox list then all three are coming in one checkbox,not in three seperate checkboxes.
Member 11873864
19-Jan-16 2:27am
View
how i can select the values separately from one column?
Show More