View Complete Post
I try to add the following code in a sharepoint 2010 web page
but each time I save it, the line disappear. What is wrong with the code??
In Windows 7 when I use window.open(url, "_MyWindow") a new browser window opens every time I click.
Expected behaviour is - URL is replaced in the browser window with the same target attribute (_MyWindow) if it's already open.
Any suggestion/workaround is greatly appreciated.
All works fine in any other OS/IE config, even on XP/IE8.
same issue appears using <a href=http://www.microsoft.com target="_MyWindow">Open link</a>
i have added in .cs page
rblSelectSearch.Attributes.Add("onclick", "return rblSelectSearch_click();");
<A href="http://test.net/sites/r3bs/DocSetPAHO/Site%20Pages/dynamic.aspx?DocumentSet=<%Document Set%>">Click here to review the items.</A>
[%Document Sets:Document Set%]
I have displayed a list item from a list in a ListViewByQuery control with the help of SPQuery in a custom Web Part like this:
SPQuery myQuery = new SPQuery(List.DefaultView);
myQuery.RowLimit = 1;
"<FieldRef Name='" + SPBuiltInFieldId.ID + "'/>" +
"<FieldRef Name='" + SPBuiltInFieldId.DocIcon + "'/>" +
"<FieldRef Name='" + SPBuiltInFieldId.LinkFilenameNoMenu + "'/>";
I have an ASP.NET page written in C#:
<asp:RadioButtonList ID="radioButtonListSelection" runat="server" AutoPostBack="True"
<asp:ListItem Value="0" >All Current</asp:ListItem>
<asp:ListItem Value="1" Selected="True">Pre Selected</asp:ListItem>
<asp:ListItem Value="2" >From Date</asp:ListItem>
I want to be able to hide some of the listitems, however there is no option to do this as I am only able to disable them.
I have read somewhere on the web that you can do this but the code is in VB :(
After after a solution in C#.
I have added a button to a project task list (id = 150).
Everything works fine when I directly use the list. But when I add the list via a webpart to the site page my new button is not available. It's exactly the same ribbon as in the list view but my new button is not visible. Any suggestions?
Title="Ribbon Customization for a Content Type">
Can anyone guide me how to Rename the ListItem (Field"Name") of Sharepoint Foundation DocumentLibrary List as per my req.
Here am using Treeview which am binding the records also to my TreevIew Herachailly and wanna make to rename with a Contextmenu(3 rd Party) with option called "Rename"
Thanks in Advance !!!