Adding Silverlight 3.0 Control In Master Page In 3.5?
Mar 1, 2010Can any body tell me how to add silverlight 3.0 control in master page in asp.net 3.5 (ide VS2008)?
View 2 RepliesCan any body tell me how to add silverlight 3.0 control in master page in asp.net 3.5 (ide VS2008)?
View 2 RepliesI seem to be having problems with something that I thought would be simple
I have
[Code]....
[Code]....
and I get the error "object not set to an instance of an object" - I have moved it from prerender to load and tryed all sorts of things, but I get the same error.I am just trying to add a literal control to the masterpage from the masterpage code behind
I want to add a silverlight control to a div panel at runtime (dynamically) ( on an aspx or user control). How can one achieve this?
View 1 RepliesThis is my first silverlight Application. I am trying to use Rating Control from 3.0 Toolkit with VisualStudio 2008 Here are the problems: I am unable to see designer view after adding Rating Control and few other controls. I am not getting any errors or warnings on markup or while compiling. Trying to access Property window for any control is giving me this message " Property Editing not available". Is this the way silverlight was made available with Visual Studio or is there something I am missing here?
View 1 RepliesWhen creating a new Silverlight App, VS2010 generates the following page with the aspx extension
<%@ Page Language="C#" AutoEventWireup="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server"> [code]....
I need to add Meta tags, description and keywords in aspx page. My aspx pages are in master page and I have already added meta tags and description in my Master Page.
Now I want add in my other pages also so if someone search my site on GOOGLE it should look like same as this:
[URL] ...
How to achieve this?
My master page looks like:
<head runat="server">
<title>
<asp:ContentPlaceHolder ID="PageTitlePlaceHolder" runat="server" />
</title>
Content pages look like:
<asp:Content ID="TitleContent1"
ContentPlaceHolderID="PageTitlePlaceHolder" runat="Server">
My Page
</asp:Content>
This works by placing the content page specific title on the page ("My Page" in this example). Now I want to add a global prefix to the title in my master page for the site name. So I want:
<head runat="server">
<title>
Example.com:
<asp:ContentPlaceHolder ID="PageTitlePlaceHolder" runat="server" />
</title>
However, when I do this content pages are still rendered without "Example.com" in the tile, it's like it's ignored.
Why is this happening and how can I achieve this?
im tring to add style to master page the same way i add script
[code]....
the only way the css recognized is by adding the content to the master page
what am i doing wrong?
I come from a windows dev environment so the web makes me feel like a big dummy.
I am using VS2008, VB.NET, 3.5 Framework, ASP.NET, AjaxControlToolkit.
I have included a screen shot that might help to look at while you read my attempt to explain my issue below!
I just recently discovered in a book here on my desk how to interact with a master page programmatically from a nested master page or a regular aspx child page. The method they describe makes sense and is familar to me because they use Public Properties on the master page to manipulate the GUI and controls on the master page. But since they are public, the child pages can see them and fire them off. Makes sense.
I thought I could use this method to do the opposite of that and have the master page fire off something (say a public property in a nested page) to have it then do some work and update things on that nested page.
For example,
I have a MASTERPAGE.MASTER. Under that, I have a LEFTNAV.MASTER (so its a nested master page). Then, under that I have my default.aspx page.
(I did that so that for some of my regular aspx pages I could just tie them directly to the master page so that they dont have a left navigation page...like for big charts or graphs, etc. Is that the best way for that by the way?)
So on the masterpage, I have just a simple asp.net search textbox and an asp.net search button. When they type something in and click search, I want it to add a tab to the AJAXControlToolkit - TabPanel that I have on the default.aspx page, then some other things such as update a datagridview there with the search results.
I can do all of this except the event firing and scope. I cannot see a way to make a button on the master page up top fire off an event that is on the default.aspx page to make it do what it needs to do.
What I tried doing was creating a public property on my default.aspx page. I have some actual code in the SET to do some GUI manipulation and change some stuff on the page. But on my master page within the search button's click event, I cannot see where to call this public property on the default.aspx page...
I seem to be struggling to do this
is there a partiocular technique?
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.
View 1 RepliesFirst i had taken Default.aspx Page .after that i added master page to my project.Now i want to include this master page into default.aspx page I was mention master page attribute in Page directive of defult.aspx.
Now problem is i am not able to Get the attribute of <asp:contentplaceholder>.
I am trying to add a .aspx page in the project , but while adding the .aspx page i am not getting the option to choose existing master pages. I remember long back i used to get that option to select the master page.
View 2 RepliesI am having menus on the left side of the master page.I am also having the html pages related to the menu link. Based on the menu selection i would like to show the corresponding html pages as a content to the right side of the master page.
The html pages shoud need to be shown just like the other webforms are shown on the right side of the master page pased on the menu selection.
i'm trying to add a CSS class to a control in a nested master page.what i usually do with a master page is adding this to the nested page:
[Code]....
after i give id=left_a and runat=server to a control in the master page.but when i tried to do it from a page nested in a nested masterpage, it gives me an error.what i want to do i add a class to a control in the nested master page from the nesting page.
How to access controls in master page using javascript? The master page consists of a search textbox, on key down event of the control I call a javascript function writtern inline of the master page. I get the value of entered in textbox in that javascript function. I have tried giving document.getElementById("<%=txtSearch.ClientID %>").value as well as document.getElementById("txtSearch").value. Both display error. I have to access the textbox control from within the master page itself!
View 1 RepliesI 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?
View 2 RepliesI have a silverlight application project in my solution. The other project is a web application project that has a .xap file in ClientBin.
When I created the silverlight project, it asked if I wanted the asp.net application to host it (and I said yes).
In the root directory, there is a test page for the silverlight control. That loads the control.
In another directory, I insert the SAME asp markup to get the silverlight control to launch again.
Nothing happens.
Why would the silverlight launch on one page and not on the other? how to documentation about dependencies that I might not know about?
I've put a reference to Silverlight.js on the page as well.
Here's the markup:
[code]....
i'm having this issue, in ASP.NET MVC 2 where I'm adding a drop down list on the master page and filling it with data from an abstract master controller. When an option is selected an submit button clicked, it reroutes you to a new page. so lets say
the page lives on http://domain.com/landingPage i'm on: http://domain.com/landingPage i select option and submit takes me to
http://domain.com/landingPage/Projects/FramedPage i select again and now the post tries to go to:
http://domain.com/landingPage/Projects/landingPage/Projects/FramedPage because of the action="" i have set on the form tag.
MasterPage:
<form method="get" action="landingPage/Projects/FramedPage">
<%= Html.DropDownList("navigationList")%>
<input id="navSubmitBtn" class="btnBlue" type="submit" value="Take Me There" /> [code]...
The problem i am having is that if I am ON that page
I want to add autosuggest textbox in my masterpage, which suggest data from sql server database ....
View 1 RepliesWhen Bing map control loads for first time on any browser all pushpin on map are visible.
Bing map control renders perfectly.
Then I refresh browser it create rendering issue some custom pushpin on map gets disappeared. This behavior continues with pushpin. Pushpin are (.png) images and I am not using default bing map thumbtacks.
May be it is issue of browser caching content or Bing map control rendering issues on various browsers.
I'm developing a web site, and i'm using infragistics for web, but I want to use in some pages silverlight controls (Infragistics too). Is there a way to access a silverlight control's properties and methods from an aspx page?
View 3 RepliesI have Web Application which uses the Logged In User (Authenticated User) to query his Profile Data from Adabas/Unix using OLEDB. The application provides the user with about 21 different pages (Basic Info, Employment Info, Education, Dependants, Financial Info ...).
The web application has a master page, and each profile data page is based on a User Control loaded in the Child ASPX Page.
The Data Layer of this Web Application will have to undergo major modification, since we are migrating our legacy applications from Adabas/Unix to SAP, the development Team has prepared web services to query for the same Profile Data from SAP using Web Services. Now, we have to modify the web application to consume the web services instead of using OLEDB to query Adabas.
Since we are in the testing phase, and we have only very limited data in SAP, I have to provide temporary control to allow test query the Staff Profile for a Specified User (instead of the Authenticated User) and to select the Source:
1. SAP, or
2. Adabas.
So I am thinking to add the following "Control Section" in the Master Page:
[Code]....
See image below to clarify:
[URL]
Becuase the users defined in SAP are based on Dummy Data, so we want to allow the user to Enter the required SAP User, and he will select "SAP" from the Drop-Down-List. In this case, the program will query for Staff Profile Data from SAP for the specified "Staff ID" (txtSAPStaffID) instead of the Authenticated User. But, if "Adabas" is selected for the "ddlDataSource" then, it will default to the Authenticated User.
I noticed that when I am following the above technique, if I press "Go", the Staff Profile Data Page is disappeared, and when I navigate from page to another, the selection on the values entered in the "Control Section" in the master page are reset to default value, ie, the last values are not maintained.
Questions:
1. What is your feedback on the method I followed above ? Any other recommendations? I need very simple method.
2. Why the data page (the child page of the master page) is cleared (disappears) when I press the Go button ?
3. How to maintain the values selected when I navigate from one page to another ?
I am creating Dynamic Checkboxlist controls and adding them to a Panel. It works well when I do
not have a Master Page configure to this webpage. Once I have a masterpage congifured.. I get a "Object Reference not set to instance of object" error on the Panel_Control.Controls.Add(Checkboxlistnew) line:
[Code]....
I am adding text fields to a page from the database. I set the .ID to match the record ID from the database. Of course becasue the text field is on the masterpage, when I grab the .ClientID, it is ctl00 contentMain$ctl00. what I don't get is where is my ID? If I set it to say AB how do I find the textbox by AB? I thought it should have AB in the ID somewhere. ID is nothing which I don't get either. I'm looping through the controls in a placeholder like this
For Each row In dtData.Rows()
Dim c As Control
For Each c In phTextRequired.Controls
If c.UniqueID = row("CustomFieldID").ToString() Then
Again though what is in the row() is say AB but the id is way off from that.