|
i have cobmobox (chapters_combo) with visible= true and another two combos with visible = false
i want when selecting chapter1 from chapters_combo then make the first combo visible = true
and selecting chapter2 from chapters_combo then make the second combo visible = true
chapters_combo has autopostback = true
the problem each time selecting an item from chapters_combo the whole page update.
is there any way do overcome that. i tried to use Ajax updatepanel but it takes about 15 sec to show the combo.
|
|
|
|
|
Look into using the ASP.NET AJAX CascadingDropDown control extender.
|
|
|
|
|
will it overcome the delay problem in Ajax updatepanel ??
|
|
|
|
|
AJAX means that your page updates without postbacks.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Are you looking to load the data dynamically, or is it small enough that you can emit it to the browser?
UpdatePanels are fine if you know how to use them correctly. Slamming one over the entire page isn't always good. You should have it surround the dependent ComboBox and then trigger it based on the source combo box, so only the view state and code for the combo is round tripped.
There are two other methods that will work.
The first is to emit the list to the client and parse it - take a look at my blog post:
http://csharperimage.jeremylikness.com/2009/03/json-and-c-using-generics-and-delegates.html[^]
Basically, I serialize my objects using JSON and reconstruct them on the client, then when one combo box changes, I parse the appropriate sublist and dynamically the options for the second control. This is fast because there is no round trip to the server.
Finally, use a tool like Fiddler to examine your post going back and forth. 15 seconds is a long time so somewhere you have latency - whether its processing, network, database access, etc depends on many factors. If you wrapped the whole page in the update panel with viewstate turned on you could have a huge messae and you just need to wrap a smaller portion, which the AJAX extender will address.
You might event want to look at implementing ICallbackEventhandler and wiring up the call yourself to trim down the size of the payload. Essentially you bind to the onchange for the dropdown, then use WebForm_DoCallback to call back, parse out the new values, etc.
Jeremy Likness
http://csharperimage.jeremylikness.com/
|
|
|
|
|
I'll check the link. the updatepanel is only containing the three comboboxes and all of the have static access "no db access". all it suppose to do is show and hide the combos
|
|
|
|
|
I am working on some website for a company.......................... And our language(Amharic) is not supported in Operating systems on XP and lower versions........................... So I want the font to be displayed in every client computer when they open my website ............... So can you tell me how to work on it? Thank you
|
|
|
|
|
you need to use @font-face in your css file to define your font - which you will need to upload. Ensure you have permission to do so from the person who made the font.
|
|
|
|
|
ok. That is a good idea. But how am i going to do that. i.e i am a new for web page development. just i learned less than 1 and half month. any ways it doesnt matter..................... For example if i had a CSS called general.css and if the font name is GEEZE and all of them are in the same folder .................how am i gonna to do that as you said.................. One friend told me to use a link to the font in my site which installs the font when they click the link to that font................ But it will be hard to know whether the font has been installed or not before.......................
I hope you understand what i said and will come up with a nice suggestion . Thank you
|
|
|
|
|
|
You should check out TTFGen. It's a jQuery/PHP Project that lets you embed any TTF fonts in your website.
http://www.ttfgen.com
|
|
|
|
|
My new project at work is to see why an internal website we have loads very slowly on IE6 (the standard browser we use, I can't change that) and fine in any other browser. Basically it is just an index.html but then loads a JavaScript (?) menu bar that displays things when hovering over and different links and what not. I have the .js but I don't really understand it all and don't know what I'm looking for.
My boss says he thinks the best thing to do is ". Not sure what to do there except create a new menu (similar in look and function) in javascript to make things faster and look better. There are apparently a few .js files associated with the menu. I think you can streamline the menu and use a class to make it faster."
I see it is made in JavaScript and also it is a menu "class" and I don't see where to begin for me to clean it up. Any advice?
|
|
|
|
|
Learning Javascript is probably the best option, there are plenty of online tutorials etc.
|
|
|
|
|
I know JavaScript, I've made other websites with it, my question is why would something load slower in IE6 than in IE8 or Firefox? Where do I look to optimize?
|
|
|
|
|
Does this problem show up on all of your IE6 machines or just one. If just one, then maybe it is not the javascript, but possibly a virus or trojan.
|
|
|
|
|
All computers across our company recently updated by IT.
|
|
|
|
|
I think your problem may be with CSS rather than Javescript, check out the script on a separate empty page and see if it work
|
|
|
|
|
This may be the fix, I've only had a few minutes to check, but it might be. I'm curious, why would this be?
|
|
|
|
|
IE6 has some MAJOR issues with CSS as it adds margins sometimes and misses out transparency, luckily it's dying out tho and you really shouldn't worry too much about it these days
|
|
|
|
|
Greetings,
I would like to know if anyone has any code or even VB script, Perl etc that can simply be run from a command line to download whatever page is on a browser and write the raw HTML to a file, it can also be MHT for that matter.
I know about using - Navigate etc for a specific web page. This is different. The page I go to require authentication with word art and user name and password etc. Then once there you must click a few times to get where you are going for the data. Therefore running a script to direct me to a certain webpage will not work. The page has to be displayed first and then downloaded.
So, I just want to take whatever is currently on the browser, mainly due to catch refreshes of new data. Understand the page I am getting data from is generated as from a database so I can not simply run a script file to download that page. The program must be able to simple be activated and write to disk what ever is displayed on the browser at the time the program is run.
I have a seperate data extractor to run against the new file to find the data I need. This file can always have the same name as well and be overwritten.
Thanks,
Antone
|
|
|
|
|
|
hi David,
thanks for the quick response,but that is not what I want to do. Imagine a webpage displayed, but you do not know the web address it is just displayed on the browser then the scehduler turns on and downloads the HTML of the page to a file.
Thanks,
Antone
|
|
|
|
|
Does anybody have experience with a robust html parser (either commercial or free), that can parse into a DOM model, and hopefully also supports xpath query?
Wout
modified on Wednesday, July 8, 2009 11:08 PM
|
|
|
|
|
How about
MIL HTML Parser[^]
From... The Code Project!
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
wout de zeeuw wrote: Does anybody have experience with a robust html parser (either commercial or free), that can parse into a DOM model, and hopefully also supports xpath query?
How about the COM interfaces exposed by the WebBrowser control? They should parse anything on the web.
xacc.ideIronScheme - 1.0 beta 3 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|