|
We have viewstate enabled at present, this would not affect my problem as the page has not posted back at this point as the validation occurs client side.
Thanks for the suggestion though
Paul
|
|
|
|
|
If you set:
ShowMessagebox = true
Showsummary = false
The page wont scroll to the top
Alexei Rodriguez
|
|
|
|
|
At the site Casa.Sapo.pt we use Resource files to store texts for internationalization (one with the portuguese texts and another with the english texts) and we are considering using a HashTable, a Dictionary or a class directly containing strings.
In the first performance tests, i simply accessed the text's references into a String reference. The results were these:
- Resources: 1238 ms
- HashTable: 1910 ms
- Dictionary: 1968 ms
- Class of Strings: 12 ms
As expected, all took 100+ times more time to access the strings than the class with the Strings. But in here came the first strange result. The HashTable performed better than the Dictionary, which i find extremely strange.
Then, i tested loading user controls which access strings (a combination of inline accesses "<%%>", using ASP:Literal.Text and others). Now came the really strange results:
- Resources: 150 ms
- HashTable: 146 ms
- Dictionary: 256 ms
- Class of Strings: 227 ms
Everything is completely «wrong»... User controls accessing the class of String (by a long far the fastest) now is one of the slowest??? The HashTable performs better than all the rest??? The Dictionary, that should be faster than the HashTable, is the exact oposite, it is the slowest!?
Can anyone try to explain these strange results? I can't seem to make any conclusion out of these results because i don't understand what is happening to give such strange results and i am left clueless as to if i can really substitute the usage of Resource files to handle internationalization.
Windows is just as secure as Linux (when shielded with a Firewall, Anti-Virus, Anti-Spyware and disconnected from the Internet). Windows has even better performance than Linux (when running without Firewall, Anti-Virus and Anti-Spywayre).
|
|
|
|
|
hi i am using a dropdownlist box and i fill from database now i would like to call javascript function on selected index change and value store in variable and referese iframe tag. how can i use javascript on selected index change and store value.
thanks in advance.
I will do my best?
|
|
|
|
|
aspdotnetuser wrote: dropdownlist box
Are you saying DropDownList ?
aspdotnetuser wrote: now i would like to call javascript function on selected index change and value store in variable
Yes you can do it just have a javascript function which will get called on OnChange Event of drop down
Register it
mDrpCounties.Attributes.Add("onchange", "JavascriptFunctionName();")
If you want to have selected value at the server side use Hidden Varaibles for that
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
i have a dropdown list box which is filled by table.
now on selected index change i open a new page and fill on selected index chnage value which i will store in ddl how can i call javascript to sent vale and open a new page.
thanks for reply.
I will do my best?
|
|
|
|
|
aspdotnetuser wrote: i have a dropdown list box which is filled by table.
Not sure what is it ? Are you saying DropDownList
Then dropdownlist can have items/Options not table
aspdotnetuser wrote: now on selected index change i open a new page and fill on selected index chnage value which i will store in ddl how can i call javascript to sent vale and open a new page.
Here you will have to find two things
1.As i said in last post register a javascript function that will get called OnChange event of drop down.
Now in that function write a javascript code to get the selected value
use a var to store that value (Hidden field not required).
2.Use Window.Open to open new window pass the stored value using Query String.
Now Take help of google to have these things done
1. Calling Javascript function on DropDown selected index changed
2. Javascript code for getting selected value.
3. How to open new window using javascript and passing Query String
These is how you will get to learn try to do yourself now
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
thanks
I will do my best?
|
|
|
|
|
hi all,
i am using Visual Studio 2005.
i have to associate the values retrived from the database according to an Sql Select command with the radiobutton list.
Please can anyone help me out with it...
|
|
|
|
|
If you are using sqlDataSources you can use a ControlParameter to associate a control to a sql parameter
If you are writing your code to retrieve the records, just use the radiobuttonlist.selectedvalue in your query
Alexei Rodriguez
|
|
|
|
|
Hi all,
I had an error messeg "Error "Sys" undefined ". Im using asp.net 2.0 , IIS 5.0 , ajax enable website . Can anyone help me to solve this error.
i got this answer. But still problem same.
http://geekswithblogs.net/ranganh/archive/2006/11/24/98276.aspx
Thanx
|
|
|
|
|
|
I'd guess that 'sys' is undefined. Do you have code to show us ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
There are many reasons to get this error
One of them is Javascript error will come when Your Config file does not have proper Configuration for AJAX
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
Hi,
I am using one html table with the details.That details are came from the database.Now i want to convert the HTML table to XML..
Regards,
Subbu
|
|
|
|
|
Good luck. Depending on how well formed your HTML is, this can become a herculean task.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hi friends,
i have created test case for checking the visibility and enable/disable functionality in a form.This works fine with the asp.net pages and controls
my current project is with asp and the controls are html controls so
the id attribute is missing.
whenever i run the test it says NUnit.Extensions.Asp.WebAssertionException : couldn't find web form's 'id' attribute
so can anyone tell me how to check the above mentioned functionality for html controls.
Thanks In Advance,
Praveen
|
|
|
|
|
Add an id to the controls ?
Or if it's using server controls, you're out of luck.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Classical ASP ? I don't think NUnit can be used to test it.
|
|
|
|
|
Hi,
iam around this problem and stuck on this from last three days that
how i assign the columnspan value to table cell from total number of strings stored in an array.
i have declared array of string and stored employee name into it .
now i have to fine out total number of times employee name repeates in an array and assign that result to columnspan property.
please give me sugestion that how i do that
Regards
Rameez
|
|
|
|
|
Its just logical
i suppose you have to find it using C#
Just Have a
int _noOfTimes=0;
foreach(string str in ArrayOfString)
{
if(str=="NameYouHaveToSearch")
{
noOfTimes++;
}
}
Now you have number of times your name has been repeated in the Array
Cell you want to give Colspan make it runat=server and give some Id
So
SomeCell.Colspan=noOfTimes;
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
If you need to do this for one string, step through and count them. IF you need to do it for all, do a dictionary that maps string to int, then iterate over each name, and increment or create each entry as you go. You end up with a map of name to times it occurs.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
I have some text boxes in my web form. I have used validation control to validate those. But now i have such requirement that I want to use java script function. So how do I use both the validation control and javascript function on a single button click....
|
|
|
|
|
What i understood is you have Validators placed in the Page
You have been validating at server side
Now you want at Client side as well
Just make EnableClientScript to true to each Validator it will write
Javascript for you
But if validation are firing at client side why you want again at server side ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
Thanks for your reply. I have used required field validator in my page. But now one of my control need to be validated differently on the same button click. So the validator control is not sufficient. There for I have written a javascript function and now I want to call the javascript function with the same button click. When i set the validation group of the validation control and the button control then the javascript function works. But the validator control does not work. Any help.....
|
|
|
|