Multipage webforms in ASP.NET with the same url address - c#

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

Related

Layout Page not rendering Some Pages Asp.net MVC5

i am trying to develop MVC5 applicaiton. i am facing a problem. i have set a layout page placed in shared folder. Home pages of all controls are working properly.
but other pages are not showing in proper way.
I have attached a sample page Details
I checked css is also showing in source but page is not displaying in proper way
Thanks in advance. i am new in MVC
If you open your browser's Developer Toolbar and review the network tab you should be able to see if your pages are returning 404 for the files. When your browser is open press F12 and the toolbars should open.
It looks to me like your references to your local/application based stylesheets/javascript are missing the tilde symbol ~ at the beginning which means in ASP.NET the server-side application root.
For example ~/Content/bootstrap.css would be translated to the URL of the bootstrap.css file that's in the application's root.
You can drag and drop the bootstrap.css file in your content file into the _layout.cshtml file to see the correct path for the href attribute.
Put the sympole ~ before the link of css path

How to load page like facebook page load asp.net

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

How to store multiple pages data in the last page using C#, ASP.Net

I want to save a application which has multiple pages. But I dont want to save it in each step. Rather I want to see the summary of multiple pages in the last page and then only I want to save the application. Can you please help on the same.
Thanks,
vsari
Use the ASP.NET Wizard Control and save data from each wizard step into Session state, then retrieve from Session at the end:
Walkthrough: Advanced Use of the ASP.NET Wizard Control

Kentico 7 - Display an image from media library in web part

I have created a custom web part for Kentico that needs to allow the content manager to select an image from the media library that will be set as a background image in a div. The form control I am using is Media Selection. Does anyone know how I can write the aspx and c# code to display the selected image? I feel like this should be an easy answer but I am coming up short. Any help would be great!
You can use MediaFileInfoProvider.GetMediaFileAbsoluteUrl() or MediaFileInfoProvider.GetMediaFileUrl() to get absolute or relative URL of the desired image and use it in aspx markup or codebehind. If you want to get "nice" URL, use example described here.

ASP.NET dynamic content AdSense question

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.

Categories

Resources