|
First of all, which database do you use?
They all handle such foreign keys (they are called self-referential) indifferent ways.
|
|
|
|
|
I am populating a check list box from the database as follows:
for (int i = 0; i < intClassID; i++)
{
strClassID = dtClass.Rows[i]["ClassID"].ToString();
strName = dtClass.Rows[i]["Name"].ToString();
chklstClass.Items.Add(new ListItem(strName, strClassID));
}
So each item in the listbox has an ID
Now I would like to retrieve so that the IDs are selected approprioately. This is what I do:
for (int i = 0; i <= dtClass.Rows.Count - 1; i++)
{
int intClassID = int.Parse(dtClass.Rows[i][0].ToString());
chklstClass.Items[intClassID].Selected = true;
}
It does not seem to get the proper ID's
What am I doing wrong?
is this to do with SetItemChecked(i, true) ?
Thanks
|
|
|
|
|
arkiboys wrote: chklstClass.Items[intClassID].Selected = true;
You are trying to use the ClassID as the index to the items collection.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
yes, I see this now.
How do i solve this?
Thanks
|
|
|
|
|
I have a swf file to display on my web page. For this I used <object> tag. I have some buttons on the same page. Now when i click on some button, It is refreshing the video. Even if I use update panel same thing happens. Is there any ASP.Net or AJAX control to run the SWF files? Can anybody help me?
Thanks
|
|
|
|
|
hi,
I have developed an application. I have used asp:menu control to display menu items.
i navigate to a page, after the page is displayed , when i again move to select a menu item, the speed of displaying the menu levels becomes slow. this happens when i move to a particular page and then move to select a menu item.
I have also observed that the same thing is working fine in ie6, but not in ie7.
Sandeep Kumbhar
|
|
|
|
|
How do you load the Menu items ? Are you loading them dynamically from the Database or they are static ?
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
hi,
i am using asp:menu control to bind the menu items. Binding happens through xml datasource.
also i observed that , menu control becomes slow when there are many items in listbox control in page. when i move to some other page without the list box control the menu control acts fast.
Sandeep Kumbhar
|
|
|
|
|
Hi,
Can somebody send me a link where i can find Dropdown with checkbox.
Thanks in Advance,
Dews
|
|
|
|
|
Check this.[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
Thanks, it solved my problem. Can you also send me an example using DLL for the same.
|
|
|
|
|
hi,
how to open word document in asp.net??
for example when i trigger in button its showing word application.
it is possible ???...
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
|
|
|
|
|
|
As Far as my understanding..!
You want to display the word document in your application..!
is it right?
If yes..!
Copy and paste the word document in the server.Map Path
give the link to the word doc..!
<coderesponse.rediect("your word="" doc");="">
If the MS Office Is installed in your System..!
It will show the word doc..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
thanks for valuable reply....
i got solution for this...
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
|
|
|
|
|
KaNNaN.JC wrote: i got solution for this
Y dont u share with all may be it will helpful to others..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
if( Request.QueryString["strFile"] != null )
{
string strFilePath1="";
string strFileName = Request.QueryString["strFile"].ToString();
strFilePath1=Request.PhysicalApplicationPath+"/BackOffice/Catalogue/UploadFiles/"+strFileName;
if(strFileName!="")
{
Response.ContentType=strFilePath1;
Response.AddHeader("content-disposition", "attachment;filename="+strFileName);
Response.WriteFile(strFilePath1);
}
}
http://himabinduvejella.blogspot.com
"If you can dream IT, you can become IT"
|
|
|
|
|
Hi,
How we can download multiple files in one go, But not in zip format.
Waiting for reply.
krishna veer singh
|
|
|
|
|
Create dynamic IFRAMES (hidden ones) filling those URLs. However remember that your web browser would limit downloads to two connections per domain.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
Can you please let me know the exact scenarios, so that we can give you better solution .
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Actually the thing is that, I'm displaying multiple files in a page with check box option. so that if any one check three(for ex.) of them and click on the download button. Then all the three images should get download.
krishna veer singh
|
|
|
|
|
|
Hi Abhijit,
Is it possible to download the files without zip?
krishna veer singh
|
|
|
|
|
hi, follow the link below,it will help you a lot.
http://www.webdeveloper.com/forum/showthread.php?t=100258
modified 27-May-14 4:58am.
|
|
|
|
|
hey world,
i have created a crystal report by sending parameter fields.And it works fine.And i use some multi-line text boxes to get relevant data to those fields.
The problem began from here.if the data entered gets bigger the crystal report field doesn't expand,and will not show the entire data but show only some of it.
it can be solve by expanding the field manually,but it will cause another problem.
Stretching report after limited extend,the report display nothing.but i need some more space.but when i get it by Stretching it will not show the data.
Plz i need help quick.
thanks in advance.
|
|
|
|