How to make a page load like Facebook ?? I made a div with an image[tool image] on left side and its description [textbox] on right. There are many images on database ,how can I show other images in the same format..??
I tried it by creating 10 rows with 10 images and 10 textbox it is working but page load became slow.Don't know how to handle other images..
Now i am using multiple pages with 5 image and text box,is there any better option ?
Help me to learn.
If you want to load content after the page has been downloaded on the client, you may want to look into JQuery and more specifically AJAX
Related
I making app when you can upload generally some files. So in upload action I wanna have 3 steps for uploading certain file. But If i will code it on 3 sites it wont be the same url. I just want to change content of eg. first page in first step and then if user add correct information I wanna change in that url content of that page. Can you helpme ? some ideas or example of code.
Alexander Dračka
You can use panel for the same.
Put your 3 codes in 3 panel and As per your requirement you can show and hide the panel.
What about Wizard control? it has several views and you can navigate each of them
I working in application development using ASP.NET in C#.
I have a Grid View which I wanted it to load at the very last of the page load.
The page should load the master page first, where all images and other functionality was loaded, then only load the GridView.
Can this achieve on c# back end code?like the page life cycle event.
Please advice, thank you in advanced.
You can't tell to load something first or last using C#, because it is about HTTP Request and Response which is basically TCP/IP. You can however use AJAX to load some of the contents first and load some other contents last handling Javascript events like onload.
EDIT
I understand loading in this context as loading the page on the client side. If you are talking about loading page on the server side, yes you can do that. You need to load contents using page lifecycle events.
I want to display a webpage in a WebBroswer in my winforms application. I however want to use some custom css to change how the page looks. Is it possible to attach a style sheet and edit the html page you are viewing?
You can use this web control http://www.codeproject.com/KB/miscctrl/csEXWB.aspx
and save it as a web page and load and you can show the source in another text box , once changes are made you can save to a temp file and load it. There is an option to view local file.
I don't think that kind of thing is supported.. but anyway that would be a horrible thing to do. you may end-up interfering with the CSS used by the client page.
Have you ever seen your browser override your CSS used by page and say i want to show it this way. (I know development tools like firebug,etc do it)
I need to improve the speed of my website and perfomance.
I've tried everything under the book from compression handling , whitespace removal , update panels and enable view state false.. but nothing seem to work.
The output page size is still 764 kb.. which is quite a lot. So can you guys tell me an out of the box or any other way to approach this to decrease the output page size!
Put styles to external css files
Put javascript to external files
Try to use divs instead of tables for positioning
Short id names can help too :)
P.S.: it's difficult to advice without seeing the source
If it really cannot get further decreased, consider implementing some dynamic solution. You could first only load a main frame (without 'real frames') content page which afterwards loads more content dynamically. May use AJAX (javascript) controls or a custom solution for it.
Also, such big html code still looks strange. I doubt, the information can be (over)viewed at the same time by the user. She would at least have to scroll through some big tables or so? If you need a more smooth experience for the user, a dynamic solution may also show the content in chunks, dynamically loaded via javascript. Every time she scrolls down and a new part gets visible, that content is loaded from the server on demand.
If you are using Update Panels, try removing it. Alone Update Panel can load script file(s) which can be > 300 KB.
I was wondering, if I create a page e.g. index.aspx and I create it's contents based on a variable, would an AdSense block always show the same ad? Meaning is there a way to give it a dynamic content and having the ad addept to the content without creating a page for each content.
For example I have a site with 3 links: pears, apples and lemons. I have a database which has the content of each page. I have a dynamic page index.aspx which modifies it's content based on the clicked link (the link always returns to index.aspx). If I want an ad to match my content, should I then do it differently? Like creating pages for each link and adding the content to each page dynamicly based on the link or something?
Thannks in advance
an AdSense block always show the same ad
No - its show ads, depending on your test found on your page.
In every view of your page, just before adSense show the ads, is reading your page for find from your text on your page, what ads is going to show.
So from the moment your content page is depends from the url (and not from session, or other hidden fields) then adSense is show ads depends from what you have as content on your pages.
Because the first time adSense make some tests, or cache your pages, or I do not know what, give adSense some time and you see that ads is depends from your content.