15,905,563 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 preet88 (Top 51 by date)
preet88
3-May-15 17:52pm
View
I have to populate a list of data that will fetched from database unlike in this solution where input is being provided by user.
please give me some pointer in that.
preet88
23-Oct-12 8:55am
View
i have returned true, but that was not working.
its .NET 2002 in which i am making this change.
preet88
26-Jul-12 8:44am
View
your welcome:)
preet88
10-Jul-12 5:27am
View
why this answer is downvoted may i know the reason for this ???????
preet88
10-Jul-12 5:19am
View
i've broken your table further into above written attributes
first table will have 3 columns
and second will have 4 columns
suppose you want to store data of your given example then it can be as here::
col1 col2 col3(FK) col1(PK) col11 col12 col13
xxxx xxxx 1 1 a b c
xxxx xxxx 2 2 a1 b1 c1
now whenever you want to receive data of lets say first row of first table then you can apply join on these two tables based on refrenced key
i hope you'll get solution to your problem...
preet88
9-Jul-12 11:37am
View
you can go for float, the same syntax can work for float by replacing int with float :)
my main motive is to tell how to do it.
preet88
9-Jul-12 9:34am
View
thanks :)
preet88
9-Jul-12 8:16am
View
yes i want to perform certain set of operation on selected data into the table
and then store that data into another one.
preet88
28-Jun-12 5:20am
View
hi then you must be storing image data instead of url of image... for now i suppose you may to take asp:imagefield as suggested in solution 2 but i'm not sure if it works with data..
im able to find some links hopefully they may help you
http://www.aspsnippets.com/Articles/Display-images-from-SQL-Server-Database-in-ASP.Net-GridView-control.aspx
http://www.dotnetfunda.com/articles/article1084-saving-images-into-the-database-in-aspnet-and-displaying-to-the-gridview-.aspx
For future i suggest you that store relative path instead of image data as image data degrades your query performance..
thanks.
preet88
27-Jun-12 12:07pm
View
hi asim please make it clear from where you are getting the data or url of pic.
preet88
27-Jun-12 11:54am
View
:) your welcome
mark your question as solved by accepting answer it may help others as well.
thanks :)
preet88
21-Jun-12 5:01am
View
use ORDER BY in your query
like select * from tablename ORDERBY attributename
preet88
18-Jun-12 4:42am
View
see it is possible to diplay whatever is there in your join queries
in your comboBox_SelectedIndexChanged event write like this
comboBox1_SelectedIndexChanged(object sender, EventArgs e){
if(combobox1.SelectedValue=="All") {
/* write your appropriate query here for fetching all the data(apply joins if you are having multiple tables)*/
}}I hope this will help :)
preet88
16-Jun-12 4:54am
View
its ok hope it'll help :)
preet88
16-Jun-12 4:52am
View
why you want 2 different select statement when you want to display whole data of orders and the details of customer related to that orders.
I suppose i may be getting your question wrongly.. Will you come again with little more explanation about what you want to do???
preet88
15-Jun-12 5:58am
View
Hi friend please make it more ellaborative, it will help us to give solution in a better way.
thanks
preet88
10-Jun-12 12:15pm
View
hi Ranjith Reddy i have seen your same kind of problems with different styles of questions, it'll be better for all of us to answer if you'll post your question in same thread.
however for this i have mentioned in other post you can use rowCommand event as well as rowBataBound event..
thanks
preet88
5-Jun-12 1:19am
View
thanks i have done some similar kind of code in javascript itself thanks for your help.
preet88
5-Jun-12 1:17am
View
hi karthik yes you are correct i have resolved the problem and it is because of instance problem
preet88
4-Jun-12 9:06am
View
sorry i didn't get that!!!
what exactly you are trying to convey..
preet88
1-Jun-12 0:35am
View
thanks:)
preet88
29-May-12 13:32pm
View
i have tried that client id as well but not able to access
however without doing so in simple page i.e without master page is working well
So please if you can provide me the way to access that then it'll be great!!!
i've tried using this code '<%=form1.ClientId%>' to have client id in document ready
preet88
25-May-12 8:28am
View
hi manohar
Abhijeet has given right answer. The best way to avoid this kind of errors is use the features of framework Drag-Drop image which you want to display.
preet88
23-May-12 7:13am
View
thanks
preet88
23-May-12 7:13am
View
how we can access all text boxes can you tell me??
for eg $(.textbox) refers to class of textbox
similarly if i want to refer all textboxes how to do that???
preet88
23-May-12 2:07am
View
thanks
preet88
18-May-12 13:40pm
View
aah! sorry i was thinking it in a wrong way.
i think in this syntax you can also access the table
for eg from a in display.sometablename
select a;
here sometablename refers to a ienumerable class which has a same name that your table has in database and i hope that it may solve your problem i'm not sure but you can give a try
preet88
18-May-12 7:51am
View
i hope you have looked into this as well
http://msdn.microsoft.com/en-us/library/cscsdfbt.aspx
check this post too
http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=21
hope you'll get answer to your queries.
Thanks
preet88
18-May-12 4:44am
View
this a link i found it to be very precise and clear
http://www.w3schools.com/asp/asp_sessions.asp
however it is for asp but it hardly matters, it'll work well in asp.net as well.
this is another link which is gives you a detail on cookies
http://www.codeproject.com/Articles/31914/Beginner-s-Guide-To-ASP-NET-Cookies
preet88
18-May-12 1:29am
View
hi afzal you can do this in other way also... you can have a class and store the data of the grid accordingly in the data members.
Once you have the data in class object you can pass that object to other page by get methods(if there is direct navigation from 1page to other) or you can also pass this using session variables
preet88
17-May-12 8:14am
View
please specify the code that is giving problem to you.
we have not understood your problem. Apologies for that. please make it more ellaborative.
preet88
17-May-12 1:54am
View
which row?? please mention clearly and make it more elaborative..
and mention in which table whether it is database table or html or table of dataset..
preet88
17-May-12 0:19am
View
@enhzflep: thanks for sharing your knowledge. This is what i don't know.
Thanks
preet88
17-May-12 0:15am
View
@CIDev thanks
preet88
16-May-12 6:09am
View
my pleasure feel free to ask queries
thanks for accepting solution.
preet88
16-May-12 5:11am
View
No its not if you want in c++ i suppose you have to do it in other way. it is for c#
preet88
16-May-12 3:27am
View
you can use javascript for this.
it will be a good option according to me.
thanks
preet88
16-May-12 1:16am
View
see you can access your control properties using the control object
if in case you are finding that control so do make a reference of that control and then access properties of control using that reference.
thanks
preet88
16-May-12 0:38am
View
@chowdary2005 hi i have tried similar kind of code using int and for 100000 rows in datatable. i suppose there is no problem in the code for fetching data please debug into the code and check for the rows count or values in column whether they are present or not...
preet88
16-May-12 0:18am
View
void BindMenu(){
String connectionString = WebConfigurationManager.ConnectionStrings["DatabaseConnectionString1"].ConnectionString;
SqlConnection con= new SqlConnection(connectionString);
SqlDataAdapter dadCategories = new SqlDataAdapter("SELECT CatId,CatName FROM Category order by CatName", con);
SqlDataAdapter dadSubCat= new SqlDataAdapter("SELECT SubCatId,CatId,SubCatName FROM SubCategory order by SubCatName", con);
//' Add the DataTables to the DataSet
DataSet dsCat =new DataSet();
con.Open();
dadCategories.Fill(dsCat, "Category");
dadSubCat.Fill(dsCat, "SubCategory");
//' Add a DataRelation
dsCat.Relations.Add("Children", dsCat.Tables["Category"].Columns["CatId"], dsCat.Tables["SubCategory"].Columns["CatId"]);
//' Add the Category nodes
int count = 0;
foreach( DataRow categoryRow in dsCat.Tables["Category"].Rows)
{
var mNode = new MenuItem();//here you can check for overloaded menuitem constructors which suits you best i'm takin default constructor
Menu1.Items.Add(mNode);
//' Get matching Sub Category
DataRow []subCatRows = categoryRow.GetChildRows("Children");
foreach(DataRow row in subCatRows)
{
String subCatName= row["SubCatName"].ToString();
var subCatItems =new MenuItem(); // again here also look for best overloaded constructor
Menu1.Items[count].ChildItems.Add(subCatItems);
}
count = count + 1;
}
}
preet88
16-May-12 0:17am
View
void BindMenu(){
String connectionString = WebConfigurationManager.ConnectionStrings["DatabaseConnectionString1"].ConnectionString;
SqlConnection con= new SqlConnection(connectionString);
SqlDataAdapter dadCategories = new SqlDataAdapter("SELECT CatId,CatName FROM Category order by CatName", con);
SqlDataAdapter dadSubCat= new SqlDataAdapter("SELECT SubCatId,CatId,SubCatName FROM SubCategory order by SubCatName", con);
//' Add the DataTables to the DataSet
DataSet dsCat =new DataSet();
con.Open();
dadCategories.Fill(dsCat, "Category");
dadSubCat.Fill(dsCat, "SubCategory");
//' Add a DataRelation
dsCat.Relations.Add("Children", dsCat.Tables["Category"].Columns["CatId"], dsCat.Tables["SubCategory"].Columns["CatId"]);
//' Add the Category nodes
int count = 0;
foreach( DataRow categoryRow in dsCat.Tables["Category"].Rows)
{
var mNode = new MenuItem();//here you can check for overloaded menuitem constructors which suits you best i'm takin default constructor
Menu1.Items.Add(mNode);
//' Get matching Sub Category
DataRow []subCatRows = categoryRow.GetChildRows("Children");
foreach(DataRow row in subCatRows)
{
String subCatName= row["SubCatName"].ToString();
var subCatItems =new MenuItem(); // again here also look for best overloaded constructor
Menu1.Items[count].ChildItems.Add(subCatItems);
}
count = count + 1;
}
}
i suppose this will help to sort your problem...
thanks
preet88
15-May-12 2:33am
View
instead of
CheckBoxChecked
event you can try
CheckBox_CheckedChanged
Event
preet88
15-May-12 0:42am
View
even i'll also give +5
preet88
15-May-12 0:09am
View
@chowdary2005 there is no such data type as longint however long is there. Do run your loop condition upto
(DT.rows.count - 1)
instead of
DT.rows.count
preet88
15-May-12 0:03am
View
i have told you that in my case it was installed in c:, i think you havenot read my comment properly i have mentioned that i have installed windows n c:
preet88
14-May-12 1:21am
View
@shahin: yeah you are correct but here the problem may be caused due to the usage of int16... because if it has 100000 rows then this is the most probable reason according to me.
Moreover Chowdary i'll suggest you to write
(DT.rows.count - 1)
as index stars from zero this may also cause bug
preet88
14-May-12 0:24am
View
but the boot.ini will always reside in c: and in my case i haven't formatted the windows which was firstly installed(in c:) and then ubuntu was installed in different drive
preet88
10-May-12 0:01am
View
i have installed a fresh coy of the windows and i have access to the drive where the old coy of windows Xp is present but still not able to fix this problem
preet88
4-May-12 1:28am
View
thanks for your suggestions.
preet88
12-Aug-11 22:16pm
View
when i'm storing the same path in different program it is working well
but it is not working here
preet88
9-May-11 16:23pm
View
hi dalek it was not working i have done this as following
Image image = Image.FromFile(temp); //here temp stores image path from root
Bitmap bmp = new Bitmap(50, 50, PixelFormat.Format24bppRgb);
bmp.SetResolution(50, 50);
Graphics gfx = Graphics.FromImage(bmp);
gfx.SmoothingMode = SmoothingMode.AntiAlias;
gfx.InterpolationMode = InterpolationMode.HighQualityBicubic;
gfx.PixelOffsetMode = PixelOffsetMode.HighQuality;
gfx.DrawImage(image, new Rectangle(0, 0, 80, 80), 0, 0, 80, 80, GraphicsUnit.Pixel);
// Dispose to free up resources
image.Dispose();
bmp.Dispose();
gfx.Dispose();
Show More