|
please don't cross post, you have already post this question there IIS6 vs. IIS7[^]
|
|
|
|
|
|
Ravi Mori wrote: Because i never got suggessions whenever i post there..
oh! you should keep patience.
|
|
|
|
|
Ravi Mori wrote: Because i never got suggessions whenever i post there..
Ask questions clearly with appropriate title, proper tags, good explanation, format code if there is & include error message.
Then wait for some time because many people helping others while at work.
That's all. You will get the responses quickly how much as possible.
|
|
|
|
|
Going to delete this post...
Because its going on wrong direction other than for what it is.
Thanks all.
|
|
|
|
|
Hi all ,
I come today with other problem ..
I am developing a web project which has two phases (English,andArabic).
The english phase works well. The problem in the arabic one which appears in strange letters .
The strange in the matter is that the arabic project works good in localhost but when upload it to the server it appears as strange symbols.
I added the line below and the problem still .
[html]
[/html]
Can any one help me ..
|
|
|
|
|
Use UTF-8 Encoding technique to your web-page to display it in multi-lingual.
Use NvarChar Datatype to store the data in Arabic to display it properly.
And make sure of font installed correctly to be displayed correctly.
Wait for some time I am going to write article on all the stuff I described in detail.
|
|
|
|
|
Thanks for Replay
this the globalization setting in web.config
<globalization requestencoding="utf-8" responseencoding="utf-8" culture="en-us" uiculture="en">
the problem when I am getting arabic string from function in a class it does not display properly
Mohammed Ibrahim
|
|
|
|
|
i want to learn JSON and JQuery. i dont find any suitable content on the net please recomend some sites or books to learn the same..........
|
|
|
|
|
|
|
Sandeep and Eswa provided you Some of conceptive link regarding required subject.
Here's list of CP article to help you to understand it further once you're clear with fundamentals.
Domestic CP Articles[^]
Regards,
Hiren.
modified on Monday, December 20, 2010 4:36 AM
|
|
|
|
|
I'm following the sample in this video:
http://www.asp.net/general/videos/how-do-i-create-a-multi-lingual-site-with-localization[^]
I have a dropdown menu coded like this:
<asp:DropDownList ID="DropDownLanguage" runat="server" AutoPostBack="true">
<asp:ListItem Value="en-US">English (US)</asp:ListItem>
<asp:ListItem Value="es">Español</asp:ListItem>
</asp:DropDownList>
And I've added this function to the page:
Protected Overrides Sub InitializeCulture()
Dim lang As String = Request("DropDownLanguage")
If lang IsNot Nothing Or lang <> "" Then
Thread.CurrentThread.CurrentUICulture = New CultureInfo(lang)
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(lang)
End If
End Sub 'InitializeCulture
If I put a breakpoint at "lang" it is ALWAYS Nothing. But if I change the browser's default language to Spanish, then the page displays stuff in Spanish as expected.
So what's wrong? What more do I need? The video doesn't say anything about adding a function to handle changing the dropdown list, so I didn't make one.
|
|
|
|
|
This line will always be null
<br />
Dim lang As String = Request("DropDownLanguage")
use
DropDownList1.SelectedValue
i did not look at that video, but if you want the value of the selected item on the dropdown you should use the selectedValue property of the dropdown.
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/
|
|
|
|
|
If I use DropDownLanguage.SelectedValue then I get a NullReferenceException right away.
So I tried it this way:
Protected Overrides Sub InitializeCulture()
Dim langO As Object = DropDownLanguage
If langO IsNot Nothing Then
Dim lang As String = DropDownLanguage.SelectedValue
Thread.CurrentThread.CurrentUICulture = New CultureInfo(lang)
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(lang)
End If
End Sub 'InitializeCulture
Same problem as before. langO is always Nothing.
|
|
|
|
|
The Reason you that you get the error might be because you are calling that code before any selection is made.
This code should be inside the SelectedIndexChanged Event of the Dropdown or you must make sure before this code runs, the user must have selected an item in the dropdownlist.
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/
|
|
|
|
|
Ok, I put that code in DropDownLanguage.SelectedIndexChanged . Now the lang String gets set properly, but by then, the page is already done rendering. So everything is still in English.
Vuyiswa Maseko wrote: you must make sure before this code runs, the user must have selected an item in the dropdownlist.
That's what the if langO isNot Nothing part is for. I put a breakpoint there. I select an item, then the page reloads, then it pauses at that breakpoint. langO is nothing even though I just selected an item.
That's what happens when the code is in InitializeCulture, as the video demonstration says to do.
|
|
|
|
|
Hi mates,
Is it possible to set parameter in javascript?
If possible, how can i do it?
I tried this but it seems doesn't work.
function OnRecordSelect(arrSelectedRecords) {
for(var i=0; i<arrSelectedRecords.length;i++) {
var record = arrSelectedRecords[i];
document.getElementById("txtNum").value = record.Num
document.getElementById("txtValue").value = record.Value;
setParam(record.odrCD,record.itemCD);
}
}
function setParam(odrCD,itemCD){
sqlDS.SelectParameters(0).DefaultValue = odrCD;
ddlItem.SelectedValue = itemCD;
}
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|
|
C#Coudou wrote: sqlDS.SelectParameters(0).DefaultValue = odrCD; //got an error here sqlDS is not defind ddlItem.SelectedValue = itemCD;
Are you trying to set parameters for a SQL Dataset?
Ask this question yourself, how would you access the dataset at the client side (i.e. in Javascript). Dataset exists on server and your client has no knowledge about it.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
what is sqlDS
You did not defined it anywhere, i hope you are not assuming that if you have declared a variable on the server then it is available on the client side(Javascript). Its not possible to see it.
What are you trying to do?
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/
|
|
|
|
|
My dear newbie friend,
It's Impossible to manipulate data at SQL Server using Jscript.
Rather make a webservice[^] It will help you to accomplish that using Jscript.
Regards,
Hiren.
modified on Monday, December 20, 2010 4:33 AM
|
|
|
|
|
Hiren the link in your post seems to be broken. Can you fix it?
|
|
|
|
|
Thanks for pointing it out, It is updated accordingly.
|
|
|
|
|
I am new to ASP.NET Development, I have created a web site at which access a database, it works fine at my file system
When I create a Site at the File System say "D:\Work\Websites"
I have a folder "D:\Work\Websites\App_Data" folder where i keep the database file say "sitedata.mdf".
i connect the SQLServer using connection string as
string strConnStr = "Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\sitedata.mdf;Integrated Security=True;User Instance=True";
it works fine, i mean i am able to access/ manipulate database.
and when i copy the whole site to my web root folder (where my localhost is mapped) and copy the "App_Data" folder as well, i mean the
keeping the same structure (means App_Data folder inside the web root folder (where aspx file is located), it refuses to connect,
and displays a message.
Unable to open Database connection [Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed.]
do i need to supply some other arguments, or missing some settings.
i am quite new at this front, please suggest .
thanks
prateek.
|
|
|
|
|
Hi,
Is there any Linq to entities equivalent for DeleteAllOnSubmit??
If not, then is Linq to entities really better than linq to sql? If Yes, then why?
Thanks
|
|
|
|