15,949,741 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 cnjadhav (Top 19 by date)
cnjadhav
18-Oct-11 12:04pm
View
its the Line before that, where the Image is not been found, Image imgProduct = (Image)e.Item.FindControl("imgProduct"); imgProduct is "null"
cnjadhav
18-Oct-11 11:35am
View
its the Line before that, where the Image is not been found,
Image imgProduct = (Image)e.Item.FindControl("imgProduct");
imgProduct is "null"
cnjadhav
18-Oct-11 10:01am
View
If i do that, it seems to find the controls but i get the same "null" reference error for OnitemDataBound event imgproduct, here's my event
protected void productListView_ItemDataBound(object sender, ListViewItemEventArgs e)
{
if (e.Item.ItemType == ListViewItemType.DataItem)
{
Product p = (Product)e.Item.DataItem;
Image imgProduct = (Image)e.Item.FindControl("imgProduct");
imgProduct.ImageUrl = "/ShoppingCart/ProductPics.ashx?pid" + p.ProductID.ToString() + "&s" + Settings["product_picSize"].ToString();
}
}
cnjadhav
29-Jul-11 9:06am
View
Deleted
Thanks guys, got it working here's my solution:
public static Quotes GetRandomQuotes()
{
HsInternetDBDataContext db = new HsInternetDBDataContext();
var query = from c in db.Quotes select c;
int count = query.Count();
if (query.Count() > 0)
{
Random r = new Random();
return new Quotes(query.ToList()[r.Next(0, count)]);
}
else
{
return new Quotes();
}
}
cnjadhav
8-Jul-11 12:28pm
View
i mean how do i use FileInfo or the DirectoryInfo(server.MapPath(????callthebytearray)) to get the array of bytes?
cnjadhav
8-Jul-11 12:25pm
View
how do i call the array of bytes, from a method like Employee.GetAll() with the column with bytes is EmployeePicture???
cnjadhav
7-Jul-11 16:56pm
View
can you explain me the following:
Response.AddHeader("Content-Length", b.Length.ToString)
and what control do you suggest for frontend(hyperlink/Gridview)?
cnjadhav
30-Jun-11 15:17pm
View
thanks buddy.!! this what i was looking for, works great..just did some tweeks to make it strEmailAddress.split(new char[] {','},StringSplitOptions.RemoveEmptyEntries);
cnjadhav
7-Jun-11 12:29pm
View
the ID that i am passing is not a primary key or Unique, but multiple employees can have same ID's... I need to use something like this List<employee> but no luck with it :(
Thanks Chetan
cnjadhav
18-May-11 13:50pm
View
HiYes i don't know how to approach this project that i haven't started yet, but that is what i was wondering before i start on it, is how's it possible to achieve.
Thanks,
Chetan.
cnjadhav
16-May-11 9:52am
View
thanks, a table works.. :)
cnjadhav
5-Oct-10 10:42am
View
Thank you very much William,,,,that was great and worked well..!!
cnjadhav
22-Sep-10 12:11pm
View
hey Shakil
what does (2009,9,5); mean in the first line???? where is it coming from, can you please explain me that, because that is not the only date i want to change i have an entire table column bonded to a repeater???
cnjadhav
16-Sep-10 9:49am
View
Reason for my vote of 5
Automatic vote of 5 for accepting answer.
cnjadhav
13-Sep-10 10:02am
View
Hey Hiren,
the first one is my error, cannot implicitly convert type 'string' to 'int?'.
thanks
Chetan.
cnjadhav
19-Aug-10 11:02am
View
I tried using return matchingChild.ToList();
and still getting the same error
cnjadhav
19-Aug-10 11:01am
View
Deleted
I tried using return matchingChild.ToList();
and still getting the same error
cnjadhav
11-Aug-10 13:21pm
View
hi Sandeep thanks for you reply, but can you send me some sample code that can show me how exactly that can be achieved??
thanxx many
cnjadhav
16-Jul-10 13:47pm
View
hey Sundeep that was great. it worked for me..
Thankyou for all your Help, Cheer..!!
Show More