|
By marking the pages so they are not cached.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi All
I want to develop multilingual selection feature in my asp.net website. How could i do the same.
Localization and Globalization work but i don't know multiple language to write values in resource files.
Also the website has an admin panel where administrator (owner) will change the data.
So how could i do the same
Thanks and Regards
Yogesh Agarwal
|
|
|
|
|
yogesh_kumar_agarwal wrote: but i don't know multiple language to write values in resource files.
Sounds like you need to employ an interpretor then.
yogesh_kumar_agarwal wrote: Also the website has an admin panel where administrator (owner) will change the data.
So how could i do the same
Not sure what you mean, but if you want somene to maintain the data then obviously they need to know the various languages
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Yes, bingo
i need to integrate an language interpreter by which the language will change because admin will update the text or matter for the site in english language only.
So what could i do for the same.
Regards
Yogesh Agarwal
|
|
|
|
|
Well, a quick google shows there are several language translators (including google's own), so you could see if any of them have a useable api. I suspect though that the result will leave a lot to be desired as most automatic translators do it on a word by word basis, not taking context into account.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Hi,
I have an Asp.net application in which I need to place Mozilla custom toolbar. I have code for placing a button and textbox in the IE toolbar and I completed it with reference to
http://www.codeproject.com/KB/dotnet/IE_toolbar.aspx?display=Print
Now I have to do this for Mozilla toolbar. If anyone has any idea about how to place a Mozilla Firefox custom toolbar, please help me. Kindly please reply me soon.
Thank you
|
|
|
|
|
ASP.NET has nothing to do with adding a toolbar, your toolbar will be there for all apps, not just yours. You can easily google for how to add toolbars to Mozilla
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi i am praneeth, i am able to bring the date in a string ,but having problem in splitting and populate in dropdownlist's, please help me ,thank's in advance.
my code which i have tried,
private void GetCurentDay()
{
OdbcCommand cmd = new OdbcCommand("select convert(date,getutcdate())", conn);
OdbcDataAdapter ad = new OdbcDataAdapter(cmd);
DataSet ds = new DataSet();
try
{
conn.Open();
cmd.ExecuteNonQuery();
ad.Fill(ds, "date");
if (ds.Tables[0].Rows.Count > 0)
{
currdate = ds.ToString();
ddlFromDay.Items.Add(currdate);
}
}
catch { }
finally
{
conn.Close();
}
}
|
|
|
|
|
Praneeth Babu K wrote: having problem in splitting and populate in dropdownlist's, please help me ,thank's in advance.
what and how are you trying to split ?
|
|
|
|
|
string currdate is populating date as 2/14/2009 , i want to populate it in 3 different dropdownlist , like ddldfromday ,month and year.
|
|
|
|
|
Praneeth Babu K wrote: string currdate is populating date as 2/14/2009 , i want to populate it in 3 different dropdownlist , like ddldfromday ,month and year.
So, You want to split 2/14/2009 in Day, Month and Year?
if yes the
string strcurrentDate="2/14/2009"
string [] Difdate=strcurrentDate.Split('/');
now, you can add day, month, year in different Dropdown list , Like
ddldfrom.items.add(difDate[0].ToString());
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
sorry yaar for repeatedly asking ,when i try like this i am getting in dropdownlist as system.data.dataset
OdbcCommand cmd = new OdbcCommand("select convert(date,getutcdate())", conn);
OdbcDataAdapter ad = new OdbcDataAdapter(cmd);
DataSet ds = new DataSet();
try
{
conn.Open();
cmd.ExecuteNonQuery();
ad.Fill(ds, "date");
if (ds.Tables[0].Rows.Count > 0)
{
currdate = ds.ToString();
string[] temp = currdate.Split(new char[] { '/' });
ddlFromDay.Items.Add(temp[0].ToString());
}
}
catch { }
finally
{
conn.Close();
}
|
|
|
|
|
Praneeth Babu K wrote: conn.Open();
cmd.ExecuteNonQuery();
ad.Fill(ds, "date");
if (ds.Tables[0].Rows.Count > 0)
{
currdate = ds.ToString();
string[] temp = currdate.Split(new char[] { '/' });
ddlFromDay.Items.Add(temp[0].ToString());
}
Did you Debug your Code ?
Praneeth Babu K wrote: currdate = ds.ToString();
What is value of currdate?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
currdate value is 2/14/2009 12:00:00 AM
|
|
|
|
|
Praneeth Babu K wrote: currdate value is 2/14/2009 12:00:00 AM
It's is coming after changing the code.
Praneeth Babu K wrote: currdate= ds.Tostring();
The value you have given is not from this line of code. I believe you have got your mistake.
Now, How to get the same result that we have already told you from this currdate , it now your home work. Try to resolve it yourself.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
If currdate is a string you can split it (and has the value in format '2/14/2009')
string []temp = currdate .Split(new char[]{'/'} );
temp will contain the separated values.
if currdate is a datetime variable then currentdate.Day, currentdate.Month, currentdate.Year will give you the values.
you will need to add the values to each of the lists.
|
|
|
|
|
sorry yaar for repeatedly asking ,when i try like this i am getting in dropdownlist as system.data.dataset
OdbcCommand cmd = new OdbcCommand("select convert(date,getutcdate())", conn);
OdbcDataAdapter ad = new OdbcDataAdapter(cmd);
DataSet ds = new DataSet();
try
{
conn.Open();
cmd.ExecuteNonQuery();
ad.Fill(ds, "date");
if (ds.Tables[0].Rows.Count > 0)
{
currdate = ds.ToString();
string[] temp = currdate.Split(new char[] { '/' });
ddlFromDay.Items.Add(temp[0].ToString());
}
}
catch { }
finally
{
conn.Close();
}
|
|
|
|
|
Praneeth Babu K wrote: ds.ToString();
That is the problem.
You need to read value of the column containing the DateTime value and not the dataset.
|
|
|
|
|
thank's guys for helping i got this,this is working code
private void GetCurentDay()
{
OdbcCommand cmd = new OdbcCommand("select convert(date,getutcdate()) as getdt", conn);
OdbcDataAdapter ad = new OdbcDataAdapter(cmd);
DataSet ds = new DataSet();
string CurrDate;
try
{
conn.Open();
cmd.ExecuteNonQuery();
ad.Fill(ds, "date");
if (ds.Tables[0].Rows.Count > 0)
{
CurrDate = ds.Tables[0].Rows[0]["getdt"].ToString();
string[] strarray;
strarray=CurrDate.Split('/');
// Response.Write(strarray[0]);
ddlFromMonth.Items.Add(strarray[0]);
ddlFromDay.Items.Add(strarray[1]);
ddlFromYear.Items.Add(strarray[2].Substring(0,4));
}
}
catch
{
}
finally
{
conn.Close();
}
}
|
|
|
|
|
Hi,
I have written window service. Now I insert record using windows service and it's working fine. I want to execute URL with the help of window service. For testing purpose I written a code to execute URL in windows form. It's working fine. but when I write code for execute URL in window service and place it at serive then it showing me error.
Is window service not supported to URL execute code?
Is there any other solution for that?
Thanks
sjs
|
|
|
|
|
What you're doing makes no sense at all. Why do you need to use a service in an ASP.NET app ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Then You tell me what can I do.
Should I write Webservice? or any other solution.
Thanks
sjs
|
|
|
|
|
You need to explain what you are trying to accomplish before anyone can actually give you an answer of how to approach it.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Sounds like you have not the slightest idea of what you are doing. Instead of building whatever you last read about on the toilet, try understanding the different technologies and building what's suitable for your needs. If this is a paid project, and you're the one taking the job, tell the client you are stealing from them. If it's your job, talk to your boss. If it's homework, talk to your teacher. If you're doing it for fun, then try to start slower, and to learn as you go so you understand what the bits you're using are for,
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hello,
Can anybody get me the exact role of the Frame.send() method
best regards.
dghdfghdfghdfghdgh
|
|
|
|