Making Menu Item Visible Or Not Visible In Master Page?

Jan 25, 2011

I have five menu items that i have created as a user control and placed on the master page. Now i want one of the menu items to be visible only for particular user role and not visible for others. Here is what I did. Its not working though.

Dim DST As New DataSet
DST = dataObject.RunSPReturnDataSet("uspUserProfile '" & Session("UserID").ToString & "'", "mytbl")
'Dim US As New DataSet
[Code]....

View 1 Replies


Similar Messages:

C# - Making A Control Visible On A Seperate Page, But Not Visible On The Page Which Contains The Control?

Jul 7, 2010

I have a masterpage (which we will call 'default'). This contains a second page (web user control) -'second'. And finally a third 'print' page. The 'print' page is also a web user control, however, it merely has a placeholder that contains the 'second' page.Is there a way I can add a control to the 'second' page - such as a literal, and only have it visible on the 'print' page?

View 1 Replies

Web Forms :: Menu Control - How To Have One Item Visible Only If Textbox1="yes"

Mar 8, 2010

I have a menu control has say 5 items on it. I want one of them visible only when the textbox1.text="yes" on the page. How to code it? Currently I use enable= true but still the item appears just disabled. I want it to disappear at all if not "yes".

View 5 Replies

Master And Content Page Isn't Visible?

Sep 24, 2010

In my web application i am using master page concept, In master page i have login panel using this user can login, after login login panel will not visible and a link button will visible as logout, it is working fine but in one of child pages (content page) i have login panel for login which is in update panel, when user login successfully in master page login panel is still visible , it is not suppose to visible, when i page refresh then login panel not visible and logout link button visibling. When i login in child page the login panel in master page also not visible and log out link button will visible

SqlDataAdapter da = new SqlDataAdapter("select * from xxx where (userid=@UserName or emailid=@UserName) and password=@Password", con);
da.SelectCommand.Parameters.AddWithValue("@UserName", txtUserId.Text);
da.SelectCommand.Parameters.AddWithValue("@Password", txtPassword.Text);
DataSet ds = new DataSet();
da.Fill(ds, "Login");
int i = ds.Tables["Login"].Rows.Count;
if (i == 1)
{
LinkButton lnklogout = (LinkButton)Master.FindControl("LinkLogout");
lnklogout.Visible = true;
LinkButton linkmypro = (LinkButton)Master.FindControl("lnkbtnMyProfile");
linkmypro.Visible = true;
LinkButton linsynup = (LinkButton)Master.FindControl("lbtnSignUp");
linsynup.Visible = false;
Panel pnllogon = (Panel)Master.FindControl("LogonPanel");
pnllogon.Visible = false;
}

View 2 Replies

Web Forms :: Master Page Wrap Is Not Visible?

Dec 27, 2010

Master pages wrap (with images) is not visible for some pages in the website. All pages in a members only folder are not inheriting the master page lay out. It looks like I need to specify the path somewhere due to the folder structure. What am I doing wrong? Thanks for your help. I have Images folder in the root, few pages that work as expected in the root and then couple pages in the Members only folder.Problem is with these members only webpages.

View 1 Replies

Making The Container Of A Validation Summary Visible When The Validation Summary Becomes Visible?

Nov 29, 2010

I have the following markup. The errorPanel was first only used to show server side exception messages, and works fine like that. Now I'd like to incorporate my validation summary into that same errorPanel.

[code]....

My problem now is that the required validation happens client side, and I want to keep that, so I have no server side opportunity to make errorPanel visible, in order to make the validation summary visible.

I see I have two options: Do validation server side, and use my code there to make the panel visible, or hook into the client side code somehow and catch an event there when the summary should be made visible, and then also make the errorPanel visible. How could I go about the latter?

View 1 Replies

C# - Making A Control Visible Through Javascript?

Jan 23, 2011

I have a label and a div called "menu" that is currently invisible. I want that when the user clicks the label. It will make the div visible. I thought of doing it through javascript, how do I make a control visible through javascript?

View 1 Replies

AJAX :: Making Updatepanel Visible False?

Feb 8, 2011

I am using updatepanel with visible property set to false and on selection of checkbox i am setting updatepanel visible true but i am getting error when i make updatepanel visible to true.If some one know the solution of this problem please do let me know.

View 7 Replies

Forms Data Controls :: GridView No Results / Button To Become Visible (btnInsert.Visible=true)?

May 20, 2010

I have a gridview that is bound to a SQL datasource and is filtered via FilterExpression,

the FilterExpressoin is using Contro Parameters in a for of textboxes.

I want a certain button to become visible (btnInsert.Visible=true) when the filterExpression returns no results.

what event should I use? what is the code for that?

View 3 Replies

Web Forms :: Use The Radio Button To Control The Visible And In Visible In Textfield?

Oct 12, 2010

[Code]....

[Code]....

[Code]....

View 15 Replies

AJAX :: Jump To Newly Visible Panel When Making Partial Postback?

Mar 9, 2011

I have a GridView control inside one Update Panel and a detail section inside another Update Panel. Initially, the detail section is hidden and when a GridView row is selected, the Detail panel becomes visible. Everything works fine except that if the GridView contains more rows and covers most of the user's screen, screen doesn't shits to the start of Detail section.I can use anchor but was just wondering if there is any other way of achieving this. Also the Detail section has multiple nested Update Panels and if I use anchor, then any of the child Update Panel's update will move the screen to the beginning of the detail Section.

View 4 Replies

AJAX :: Making TextBox Visible On LinkButton Click When Both Are Inside Gridview

Jun 11, 2010

My current code is costing performance issue when ran on server.

ISSUE:

I've a a textbox whixh is invisible by default and a button, which is visible and both are placed inside grid's item template

I've also used ajax's update pannel to supress postback

My requirement is to make thetext box visible on button click which is working fine and fast in the localhost machine

But when put on server,its taking considerably more time to make the text box visible.

[code]....

View 13 Replies

Forms Data Controls :: Making A GridView Visible Based On A DetailsView Mode?

Apr 8, 2010

I have one GridView called GV_IssTypeDesc and one DetailsView called DV_IssueLog.

The scenario is that i only want GV_IssTypeDesc gridview to appear when DetailsView DV_IssueLog is in edit mode. How do i accomplish this?

I refered to: [URL]

For now i have done the following:

UpdateIssue.aspx
<asp:DetailsView ID="DV_IssueLog" runat="server" Height="50px" Width="400px"
AutoGenerateRows="False" DataKeyNames="dbIssID" OnModeChanging="DV_IssueLog_ModeChanging"
DataSourceID="SqlDS_IssueLog" BackColor="White" BorderColor="#E7E7FF"
BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Horizontal">
<asp:GridView ID="GV_IssTypeDesc" runat="server" AutoGenerateColumns="False"
CellPadding="4" DataSourceID="SqlDS_IssTypeDesc" ForeColor="#333333"
GridLines="None" Visible="false">
UpdateIssue.aspx.vb
Protected Sub DV_IssueLog_ModeChanging(ByVal sender As Object, ByVal e As System.EventArgs)
If e.NewMode = DetailsViewMode.Edit Then
GV_IssTypeDesc.Visible = True
Else
GV_IssTypeDesc.Visible = False
End If
End Sub

The "e.NewMode" is underlined blue in color and it is stated "NewMode is not a member of System.EvntArgs".

How do i solve this problem?

By the way, I am using Web Developer 2008, VB.net.

View 7 Replies

Web Forms :: Making Controls Visible / Invisible On Client Side Based On Condition

Feb 11, 2012

in a posyback button click event i get the status(condition ) from database by executin query as said earlier currently i have this controls visible true/ false  on server side code in posyback button click event after getting the condition but as suggested by u as it takes longer  time on server side to makes controls visible true false to do it on client side so in  posyback button click event i assigned a hidden control with the condition value now i want to pass this value to client side script so that i can toggel the visiblity depending on hidden control value from posyback button click event i am activating the setype function in client side which has the code as mentioned...wht i need is pass the hidden value to clinet side & make & position  the controls on client side.

View 1 Replies

Configuration :: Menu Not Visible?

Apr 7, 2010

I opened a website in vs2008 and compiled. Everything looks great locally, but on an IIS server, the menu has stopped being displayed. This site has never had menu issues.

View 5 Replies

Web Forms :: Menu's Sub Menus Are Not Visible In Ie?

Mar 31, 2010

my menü's sub-menus are not visible in ie. but in FİREfox and chrome is visible

View 4 Replies

Menu Navigation Bar With Dropdown Visible To False?

Mar 22, 2011

I have a menu navigation bar with drop down menu in asp.net project.i have done this with jquery.To get into this page i have 5 hyperlinks in previous page. when i click on one of the hyperlink and enter the navigation bar page,i need to make dropdown visible to false. i dont have any idea related to this.

View 1 Replies

Web Forms :: Menu Set Open And Visible On Mouse Click?

Mar 25, 2011

I have a menu. Is there a way so that the submenuitems stay popped out untill there is another click .

View 1 Replies

Web Forms :: Menu Background Not Visible On Production Server?

Sep 29, 2010

I have a vertical menu placed on top of (z-Index) a background image. The background appears nicely on my development server but does not appear on the production server. I have deleted all folders and file from the appropriate directory on the production server and copied all files and folders from the dev server to the production server to no avail. I figure that there must be a setting blocking this functionality on the production server or perhaps that older version (Server 2003) does not support this function.Oh, I have been attempting to add 2 PNG images to this post but cannot succeed.

[Code]....

[Code]....

View 3 Replies

AJAX :: Update Panel To NOT Visible,makes The Media Player's Panel NOT Visible?

Sep 29, 2010

I have a web page that I have a media control player on along with other controls in a table.It's a training video, so the controls are not visible.So the user can advance to the next web page,I thought I would have a button control inside an update panel with a time control so that the user had to watch the video and then the button control would appear after the video completed.I'm setting the button update panel to NOT visible and then turning it one when the time control elapses the same amount of time that the video runs.My problem is that when I set the visible property of the update panel to NOT visible it also makes the media player's panel NOT visible too.They are in two different panels.The medial player in a standard panel and the timer control connected witha separate panel that contains the button for the user to proceed. When I set the visible property to "true" the media player runs but the update panel with the button is visible also.

[Code]....

This is the code for the update panel and continue button that is in a separate table cell.I even split the table and so this is in a completely separate table but I still get the same behavior.

View 1 Replies

AJAX :: Image Is Visible In Image Control In Design Time But Not Visible On Runtime

Oct 3, 2013

I am learning asp.net using Visual web developer 2008 express.

I have an image control with the html code below

<div class="Header">
<asp:Image ID="image1" runat="server"
ImageUrl="D:/Master/test.jpg" Width="500" Height="300"
AlternateText="UNRA Fort Portal Intranet"/>
</div>

In design view, the image shows but when i run the app, the image is not shown. Only the alternate text is displayed.

 The css code code as  below.

.Header
{
top:10px;
left:20px;
position:absolute;
width:800px;
background-image:URL(D:/Master/test.jpg);
background-repeat:repeat-x;
}

View 1 Replies

Web Forms :: Radiobuttonlist Item Make Visible True Or False?

Nov 9, 2010

I am using a radiobuttonlist in my project. Where i want to hide one of radiobuttonlist item visible true or false. according to the selection of the country. I am able to hide the radiobutton but the corresponding text is still displayed. How to hide both radiobutton and also the related text.

View 10 Replies

Forms Data Controls :: Listview Item Visible False?

Jan 14, 2011

I have a listview that renders like this:

yearsexp: 4
desc: a description text on the row databound, if there is no value for yearsexp or desc, I would like to make it not visible. The other one needs to still be visible. So far I have

[Code]....

View 4 Replies

Forms Data Controls :: Making Visible Of Gridviwe Column If All Values In Selected In A Column Is Not Null

Dec 30, 2010

I have gridviwe having 2 columns:

1) DocNumber 2)Title

query select docnumber,title from tbl_docs.

BindwithGridviwe(sql);

Now the issue is that that every document doesn't has document number. I want to make invisible the docuNumber column of the grid viwe if all values in the docNumber retrieved are null.for example:

docnumber tite
null Document 1

null Document 2

null doucment 3

null document 4

if returned result match above where all docnumber are null then make the gridviwe docnumber column ivisible eslemake the greidviwe column visible.

View 4 Replies

Making Control In User Control Visible=false On Mouse Over?

Mar 8, 2010

<div class="pages2" id="more" runat="server">
<a href="" onmouseover="mover()" onmouseout="mout()">More</a><!--<![endif]-->
<ul style="background-color: #626669; padding: 0 6px 0 6px; margin: 28px 0 0 0px">
<asp:DataList ID="DataList2" runat="server">
<ItemTemplate>
</ItemTemplate>
<ItemStyle Wrap="True" />
</asp:DataList>
</ul>
</div>

I have this datalist in a user control i want when i keep mouse over "More", it should be invisible. it is working on .aspx page not on user control. How to do this. This control is placed on master page.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved