|
Hello all,
I am developing a site using ASP.NET 3.5 using the default (English) language. I have a drop down button somewhere on the page which has two options English and Arabic with a lable that says Select a language you wish to view this site with.
Please how do I make this functional (i.e to change the site content to the selected Language)?
Thank you all for your usual assistance.
|
|
|
|
|
This is called localization. You need to use Localization features of ASP.NET.
Here is few startup article for you.
An Easy Introduction to Localization in ASP.NET 2.0[^]Ref 2[^]
You will find many more in google.
Let me know if you have any issue.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Thank you Abhijit,
After I am through with the links you give me, I will let u know my next step...
Thanks
|
|
|
|
|
Sure. Let me know if you have any issue with this. I am here to help and learn
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
I have a question about defining a foreign key relationship on the same table.
will cascade property work on the table.
Thanks and regards,
Amit Patel
|
|
|
|
|
Hi Amit,
To create a Foreign Key, you must have a corresponding Primary Key in another table else not on the same table. The cascade on update option (if turned on/selected) automatically updates the foreign key as soon as you change it's primary key in the primary table.
Are you clear with this explanation? If yes, don't forget to mark it as a Good Answer.
Happy programming!
|
|
|
|
|
We can create primary and foreign key relation in same table that is what i already tried but on delete cascade property is not working.
Thanks and regards,
Amit PAtel
|
|
|
|
|
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
|
|
|
|