|
Hi,
I am currently building a web application whereby translation is being catered by resource files. For some reasons, it is required that each web page in the site have it own resource files. Thus, for a given page, page say "PageTest", there will be two resource files "PageTest.en-gb.resx" and "PageTest.fr-fr.resx" (provided that only two languages are defined for the time being). This process extends to all pages in the site. I store all the resource files in single folder such that i have :
Resources\Page1Test.en-gb.resx
Resources\Page1Test.fr-fr.resx
Resources\Page2Test.en-gb.resx
Resources\Page2Test.fr-fr.resx
etc....
Visual Studio nicely builds two DLL (satellite assemblies) in the bin folder of my application as follows :
bin\en-gb\Web.Resources.DLL --> This folder contains all resources files in english (ie. Resources\Page1Test.en-gb.resx , Resources\Page2Test.en-gb.resx etc..)
bin\fr-fr\Web.Resources.DLL --> This folder contains all resources files in french (ie. Resources\Page1Test.fr-fr.resx , Resources\Page2Test.fr-fr.resx)
So far so good. The problem here is that i have no idea how to reference a specific resource found in a specific resource file of the satellite assembly.
Clearly speaking,
How can i distinguish between en-gb\Web.Resources.DLL --> Page1Test."Resource_key" and en-gb\Web.Resources.DLL --> Page2Test."Resource_key" where "Resource_key" is a simple key to retrieve a string?
Can you please help me on this point? Thank you.
|
|
|
|
|
" i have no idea how to reference a specific resource found in a specific resource file of the satellite assembly."
You don't need to. The framework will access the proper resource file for the language being used, all you need to do is reference the resource key.
only two letters away from being an asset
|
|
|
|
|
Thanks. The thing is that the resource key can be available in different resource files contained in the satellite assembly. I need an access means to ensure that if i want Web.Resources.DLL -> Page1Test.en-gb->"Page title", then i will not get Web.Resources.DLL -> Page2Test.en-gb->"Page title" instead.
Can you please help?
Thanks
|
|
|
|
|
|
Thanks Mark Nischalke,
based on the MSDN link and a bunch of other articles, i managed to access a specific resource, in a specific resource file of a Satellite Assembly.
The syntax is as simple as this :
ResourceManager _resManager = new ResourceManager([Name of Satellite Assembly]+ "." + [Name of resource file embedded] + "." + [Culture name], Assembly.GetExecutingAssembly().GetSatelliteAssembly(_culture));
Thanks again.
|
|
|
|
|
Hi All,
I am trying to access a value of textbox on my page "second.aspx" from "first.aspx". I have created a property to access textbox's value on "first.aspx" and i am transferring to "second.aspx" by using "server.transfer" method. Now the problem is that i am not able to create an object of "first.aspx" on "second.aspx". and hence i am not able to use context handler. Please note that i have to use context handler only as that is the requirement. Please help me.
Thanx in advance.
Neeraj Rawat
|
|
|
|
|
how we close window through java script
i am using this code for close aspx page its workin in IE but its not working in mozilla fie fox browser
code:-
uxbtnCloseChat.Attributes.Add("OnClick", "window.close()")
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
Hi Piyush,
You might be trying to close the parent window which mozilla not allows to do. However if you open a pop up window and then call window.close() for closing it, it'll work fine. Even in internet explorer, if you try to close the parent window, it asks for a confirmation message from you.
If this post was useful, please do let me know.
-- modified at 8:17 Tuesday 18th September, 2007
Neeraj Rawat
|
|
|
|
|
window.close() and self.close();
both work in IE but it work in mozilla browser
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
In mozilla, you can close only that window through window.close() that you have opened through window.close(). This is mozilla's feature.
Neeraj Rawat
|
|
|
|
|
its means in mozilla we close that window which is open by javascript(window.open)
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
We can close only that window by "window.close()" that is opened by using "window.open()". That's the bottomline.
Neeraj Rawat
|
|
|
|
|
try instead:
self.close();
|
|
|
|
|
window.close() and self.close();
both work in IE but it work in mozilla browser
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
Subject: Please Help me it is urgent - abglorie
Can you help me to access the table in a form?
I am need a sample program in asp.net with VB coding for the following
action taken.
My table contain following fields that is
Name, StudentID, Mark1, Mark2 as string
the table contain 20 records
data entry for mark1 only
display the ID at the top of the form
next get a mark1 with textbox
click the submit button
go to the next ID display the top of the page
the textbox is empty
this action going to end of the table
(move the record upto 20th record)
If end of the table the following message is displayed.
Message = "No more records."
Please above action how to made. This is very urgent.
Could you please send actual coding to me at earliest.
Thanking you
abglorie
abglorie
|
|
|
|
|
A few points.
1. Just because it's very urgent for you doesn't mean that it even makes the top 10,000 urgent items I have on my plate right now. So don't bother marking it as urgent. Is it any more urgent than the issues that the other posters have?
2. We don't do homework for you.
3. If you want the code, I would suggest that you go to rentacoder.
4. You'll get decent responses if you try this task yourself, and then ask for help on individual areas that have got you stuck.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi All,
I am developing a web application where there is a search textbox and go button. Whenever user puts any search key and clicks go button then it should be open to google site and it should display all the related pages of the search key.
How to do this??
|
|
|
|
|
Response.Redirect("http://www.google.co.in/search?hl=en&q=search+key&btnG=Google+Search&meta=");
pass search key with q querystring
best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
Thanks for the help but it closes my window I want to open a new window of google search.
How to do this??
|
|
|
|
|
Use HtmlAnchorTag instead of Button and give Target Property as '_Blank'.
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
My Button is asp imagebutton, how do I set that property then???
|
|
|
|
|
Hi All,
Please Its very Urgent.
How Can I Format Todays date as 18.09.07 from the Current System Date in Asp.
Also How can I find the Yesterday's Date in the Same format from System Date.
Thanks in Advance.
|
|
|
|
|
Hi,
try this
For Current Date:
select convert(varchar(20),getdate(),104)
For Yesterday's Date:
select convert(varchar(20),getdate()-1,104)
Hope this will help you.
Regards
vinita
|
|
|
|
|
string today=String.Format("{0:dd.MM.yy}",DateTime.Now);<br />
string yesterday=String.Format("{0:dd.MM.yy}",DateTime.Now.AddDays(-1));
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
check this link[^]
Ramana
|
|
|
|