|
Hi
I am using Asp.net and ajax tool kit 3.0.30.
WHen i dynamically add TabPanels in Tabcontainer control it loads and displays fine.But when i try to change Tab it gives javascript error "Specified argument was out of the range of valid values". I have searched that problem and come to know that there is problem in ajaxtoolkit so i have updated the source code of ajax tool kit according to informtin given in "http://siderite.blogspot.com/2007/07/fixing-tabcontainer-to-work-with.html". But problem is still i have to recreate Tabs at page load.Is it not possible for tabcontainer to maintain its view state and i have not to dynamically add tabs on page load again ?(When Page post back).
I am using tab container in Usercontrol.
|
|
|
|
|
|
hi friends
how can i scan a photo or a document with asp.net project??
M.Alizadeh
|
|
|
|
|
You can't unless you use some ActiveX component which operates outside the browser security sandbox.
|
|
|
|
|
Are you trying to scan the webpage/image at client machine?
|
|
|
|
|
i want use scanner from my program.. i need a user interface for scanner program in control pannel
M.Alizadeh
|
|
|
|
|
|
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
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|