I have a page in my site currently listing 20 featured items (actually venues). On my home page I display 3 of these. I would like these 3 to be totally random of the 20 from the other page. Can this be done just using div ids or something or do I need to put the data in a database to do this? If so where do I start in VWD Express?
I am trying to make a way so that I can have a group with items in it, each one of the items (which is an object in a list) having a double type value, the total of all the items in the group is 100 when you add up all their properties. The purpose of this is that there can be random selection of the items.
When a request comes in, I need to be able to pick 1 of these items at the rate of 25% so that after a while (more and more requests) that each of these gets very close to 25%. I have tried looking at random numbers but pulling a number back seems useless in this case because for example if a random number retrieved was the number 5.4, how would I send it to an item? I cannot keep a history of the item requests so that I can factor that in. I need to be able to pick a random number and over time have each of these 4 items be selected an equal amount of times, the percentages and amount of items is going to change constantly but the sum of all the percent properties within a group is 100%. What is the best way to accomplish this in C# with a web form?
I spent the better part of today hunting down an elusive error. I was getting a message saying that it couldn't find the Index view for the Home controller, and it gave a list of locations it searched, e.g., ~/Views/Home/Index.aspx. This was really confusing as the file definitely existing and was at ~/Views/Home/Index.aspx, the first place in the list of locations it searched for the view!
What I eventually discovered was that there was a file that did not get published when I used Visual Studio's "Publish" feature (this is on the "Build" menu). That file was Views/Home/Home.master, and (as you can probably guess) is the master file used by Views/Home/Index.aspx. Once I copied that file into place manually, it started working. But I am left wondering--why??? Why does this file not get published? It's a part of my project, I can see it in the solution explorer, and it's obviously a critical file that's necessary for the MVC app to run. It has the same permissions as every other file in my project. So why wouldn't it get copied? And how can I fix it so it does get copied?
I have a Asp.Net application eg its name is ABC and I have a server eg whose name is XYZ, where the application is hosted from. The default page for the application is Home.aspx.Now the requirement is I want Home.aspx to open automatically when the server name is typed in the URL. Currently for accessing the Home page I writehttp://XYX/ABC/Home.aspx but I want Home.aspx to open if I writettp://XYZCan anyone suggest how I can achieve this. I have one solution that is making a HTML page as default in IIS and then redirecting it to the respective link.
I'm working with an external team with our website and they recently added one of my scripts to the .NET MasterPage of the site... well it did finally get my script running but now... it loads Banners on 'every' page on the site.
How can I write an 'if' statement that basically says... if this is the home page... run this script... if not don't...?
I'm quite new to asp and have run into a bit of trouble with a website that I am creating. This website that I am creating is relatively similar to the website created in the tutorial athttp://www.asp.net/general/videos/how-do-i-create-a-full-featured-customer-login-portal. When I paste this code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) If Not Page.IsPostBack Then Session("CustomerID") = Nothing
Developing a full featured search in my web application. so that in search for data in grid view or data list control and also for search for pages containing search text.
when I insert any character to column Name then A new string random will auto insert into column Random (picture below) I had used Trigger but It was error !
I want to column Random use to code :
DECLARE @myid uniqueidentifier SET @myid = NEWID() insert into table_1 values(@myid, substring(CONVERT(varchar(255), @myid), 1, 5))
but It must auto like column Number (column Number is Identity)
I have website in arabic, whenever i browse any link it redirects to main page without accessing actual link. Can any one help me how i fix this issue.
I am having a small doubt. Suppose i am in some xyz.aspx page there i clicked log out button and the form redirects to login page. When i login again the page is redirecting to the sme page form where i logged out. But i need to display home page how can i do this.
I tried to view ads in my home page to present each ad admin add it in new label for example like this I have 3 ads now, and I want to add new one and preview it in that page above old ads,is there any way to do that without using grid view ?
On facebook we can see update's for Image's Video's,comments,friend added etc on our wall.I want to show same this in my project.The problem is that which data control should use for the same to show these different types of notifications/updates.
Why is it that I can run my website in vs 2005 and bs 2008 but it won't work on this live hosting site? I'm told there is a invalid character right where my connection string begins.
This is madness. I have never had this issue before. I looked at my web.config in internet exploer. IE has an add on to validate xml. It gives the error message:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
A name was started with an invalid character. Error processing resource 'file:///C:/zlinkexchange/web.config'. Line 55, Po... <add name="sqlConnectionString" connectionString="Data Source=localhost;Initial Catalog=Linkexchanger;Integrated Sec..
Anyone have some connection strings that work? I followed the example on Arvixe hosting website but it doesn't work...
When I try to upload my website I have created to [URL] then test it I cannot see any home page or anything. Just a list of pages etc I have uploaded, Its like im looking into a FTP server. I publish using visual studio 2010, I have tried both Copy website over to my FTP server and Publish website under the build button.
How can I prevent user to go back after logging out from any of the page of my website ? Even if the user press back button, redirected to the login.aspx page. Like we have seen in social or any other member ship sites.
I am using some Html.ActionLinks to change the value of a Session variable. Right now I am RedirectToAction("Index","Home"). This puts the user back at the home page every time they change that value. I would like to return the user to the view they were one when they clicked that link instead of redirecting them back to the home page. How can I do that?
I am having a website with header only as a masterpage. I need to design a Home page which contains again header and below to this I need to display the content about the website. Please provide me any good looking home page.
I need to display only text in home page but that should be in a good looking format.
I have created a website. I login with username and password and after authenticating i redirect the user to Home Page. When the user clicks Logout, they are redirected to the Login Page. But after this when i click the BACK button on the browser, it again goes back to the Home Page with that user's login credentials. I have used Session["username"]=null in the Page_Load function of Home Page. How to avoid going back to the Home Page when the BACK button is clicked by the User??
I have seen a few ways to show images randomly every time the page is entered.Can this type of thing be done in a master page as each time a child page is entered it has a new image?