MVC :: One Page Is A Silverlight App -> Only Works On Default Page?
Feb 21, 2010
I am trying to create a website containing an application written in Silverlight. Because of SEO, I want to have this Silverlight application on one page of the site, whereas the other pages are ASP.NET MVC, explaining about the application, general info, etc.
I was able to find an example on how to add a silverlight application to an ASP.NET MVC view. Basically, I just have to add:[Code]....
to the <asp:Content> block.
However, this only seems to work if this snippet is added to the default page (/Home/Index in case of an out-of-the box ASP.NET MVC application). If I add the same snippet to, for example, the About.aspx page, nothing shows up. If I make the About page the default page by changing the route to:
[Code]....
then the Silverlight application is launched on the About page (now the default page), but no longer on the Home page.So my question is, how can I get my Silverlight application to launch on any page in my ASP.NET MVC aplication, not just the default page?
I am creating an application in which I am doing forms authentication. I need to show a default page with a login link, normal user can see the form and admin can login and make necessary changes.
But when I configure forms authentication the images and CSS on default page works only when someone logins, otherwise they dint work. I am using Master page also.
Master page, css folder and images folder exist on Root.
I have a page with features supplied from both a master page and a child master page.In the content placeholder for the head in both master pages I have supplied the link to the stylesheet for the site.In Design View in VS 2008 the CSS code seems to be functioning correctly.When viewing in a browser the CSS does not appear to be applied at all.
Here is the CSS code for the div elements within the main content placeholder:
I'm using ASP.NET 3.5I have created a Master Page. The master page is simple. It has a table at the top which has the colors and rows and columns and text that I need on each web page that gets displayed. Beneath the table I have a ContentPlaceHolder. The master page works as it's supposed too for each web page that gets displayed.My question is that I have this header at the top and then the ContentPlaceHolder, but how do I add a Footer to the Master Page? The footer naturally needs to be at the bootom of the Master Page!How do you add a footer and make it remain after the ContentPlaceHolder at the bootom of the Master Page?
I am using IIS5.1 and my silverlight application works perfectly when I access it by typing localhost on my browser but for some reason when I type in the IP address of the system all I see is the layout of the website but no data from the database is transferred to the datagrid. The silverlight application is simple and uses linq to sql to retrieve data from the database (through WCF service) and displays it using silverlight datagrid.
I need to force SSL when going to the final checkout page (for example from default.aspx to checkout.aspx).
I need to pass variables to this check out page and tried to use server.transfer(https://www.mydomain.com/checkout.aspx). I then use previous page .Fincontrol to read text box and label name to this check out page. If I only do the server.transfer("~/checkout.aspx") then my I can read all vakues of my controls from the passing default.aspx page.
But when I force https:// then I cannot read the control values from default.aspx page.
Please give me some tips on how to get control values to the https:// destination page or if you have another tips on how to do it the right way, please let me know.
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 have a master page that has a text box at the top with a couple of words in it. Below that I have a horizontal menu and below that there is the content place holder.I wish to set a default background color on the master page so that each other web page that uses this master page will inherit this background color.How do you do set a background color on the master page?I can't seem to select the background to set a default background color because the controls I have placed already.
I have created an order checkout page.when i click checkout button then it check user login or not if not then it redirect to login page .after login i want to show
A website's default page is setup as follows:http://mysite.com/myapp/ ==> http://mysite.com/myapp/views/default.aspxAs you can see the only thing a little out of the ordinary is that the default page is in a subdirectory (views)If I access the page via the default URL (http://mysite.com/myapp/) the form tag looks like this<form name="aspnetForm" method="post" action="default.aspx" id="aspnetForm">The problem is that the page posts back to http://mysite.com/myapp/default.aspx (missing the "/views/" part of the path) which is a non-existent page, so I get a Page Not Found (404) error.
I have a small part of my page existing on the master page. this small portion is embeded within an update panel that I postback using asynchronus postback. The problem is that; my default.aspx page which uses the master page gets affected (i.e I lost the text in the textboxes) on the asynchronus postback although the update panel doesn't include these textboxes. Is there a solution to ensure that postback only affects this part of the page?
obj = new common(); con = new SqlConnection(); con = obj.getconnection(); SqlCommand cmd = new SqlCommand(); SqlDataReader rd; cmd.Connection = con; con.Open();
cmd.CommandText = "select username,password from user where username =@username and password=@password";
[CODE]..
when username and password is correct , it should redirect to default page.
Suppose I have a server wid some virtual name as ABC. And also I have a .Net web application XYZ with some .aspx pages like Home.aspx etc. Now if I want to make Home.aspx page as the default page when I type the server name in brower the Home.aspx opens automatically.
Currently Iam accessing the application with this URL https://ABC/XYZ/Home.aspx But I want to access the application in this way: http://ABC
i have an ASP.Net application and from one page i have to redirect to silverlight page, i am new to silverlight so i have two question
Can i add silverlight page in asp.net app or i will have to add silverlight application in asp.net solution. How to redirect from asp.net page to silver.(i want to pass some data from asp.net to silver light)
How to embed silverlight xap into aspx page. I have created students database. I want to keep search option to find student name. It should be done in silverlight. I want to embed that silverlight in aspx page.
i have made a user control carrying a grid which is showing different uploaded images , description etc. I am putting this in another aspx page and want to fetch the values of the silverlight grid. I have made a class file for that but unable to get the grid collection.
We have a silverlight/asp.net application which communicates with WCF to fetch data. Now we are facing a problem where in the silverlight component is taking some time to initialize after the asp.net page life cycle is completed.We have tried tracing all the events and found that there is a time lapse between the aspx page unload event and silverlight initialize event. This we have tried with even a simple application (hello world) but still have found the same result.There is nearly 3-4 seconds delay i.e the silverlight component initialization starts 3-4 seconds after the page unload event ends.
I know silverlight page doesn't make postback itself but does event fired from silverlight control postback whole asp.net page If this silverlight,control embedded in aspx page?