I am trying to hide a linkbutton dynamically depending on the role the user is in. I can hide my other linkbuttons that are located inside a gridview easy but when i use the same method outside of the gridview it does not work. Also if I hardcode visibility to false it hides it but when i am doing it dynamically it is not working.
[Code]....
Why is this not working the way I would expect this too work and can you show me or give me resources to fix this? I searched google but I did not find anything of use.
disable linkbutton if gridview is empty in child pages. I have a Export to Excel LinkButton in master page and in child page I have textbox wherein I pass the input based on which the gridview loads. When the child page loads the Export linkbutton should be disabled. After entering the input in textbox on click of the button the gridview will be loaded wherein now the Export linkbutton should be enabled to export to excel.
I built a simple ASP.NET website which has a menu with all the page URLs linked to each menu item. when I click on a menu item the page URL appears in address bar like "http://mywebsite/xyz/webform1.aspx". I would like to hide this page url and instead show only URL of the website like "http://mywebsite" for all pages.if this is too complicated to achieve, then is it possible to show a fake url in place of actual url for each page? I don't want to show the actual page name in the url.
My project has the following repeater menu shown on the Master Page. I need this menu to remain hidden until the user logs in. How do I access from content page?
Somehow I need to hide a control on an EXISTING WEB PAGE.But the problem is, this control has code behind with VB.NET which I don't know how to read.. :( (I use C#)And this web page works as like an 'organic'. Controls are connected to all over other pages .This is the part to be not shown:
[Code]....
That uc4 prefix is defined at the top of the page: [Code]....
Some how I need to not show LoginControl1.Here is what I tried, first I tried to disable it using: [Code]....
I added Visible="false", BUT IT STILL SHOWS :( guessing visible="false" is ignored :(
Next I tried to delete that control from aspx page and commented out the codebehind function.THIS WORKED, but gave an error at the bottom of the page (yellow triangle error)...This is really hard for me because I am modifying a page which I did not write, nor the code is C# .
On my page, I have some dropdowns along with labels above the dropdowns containing the currently selected items.I also have a grid bellow the dropdowns reflecting the resulting data corresponding to the selected dropdown values.
I need to allow the user to print the grid as well as the label controls while excluding the dropdowns from my resulting printed page.
I would like to ask if somebody knows how to deny view of page in the telerik rad menu to anonymous users. So if the user wont be leged in then he wont be alble to see a page in the rad menu, but when he log in the the page show up in the menu.
'Private Sub GridView1_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.DataBound GridView1.Columns(2).Visible = False GridView1.Columns(3).Visible = False GridView1.Columns(4).Visible = False 'End Sub
When I select another button from the radiobuttonlist I want this to fire (onselectchange). It works but only the first column is visible. So how do I add the above code to pageload?
I am working in a product which is developing using telerik rad controls. Site have a master page which includes rad toolbar for main menus like file, edit etc.
When the site worked in IE 8 the half of the menu got inside of the content page. I changed the compatability settings of IE 8 to comptabality view and it solved. So i can view the site correctly. But in firefox also have the same issue. There not any compactability settings like this ( i think). So how can solve this? I mean wat issue is this ? Any css issue or any control behaviour?
I have a Master Page and on the Master Page I have a Site Map. What I would like to do is when a user logs on deending on the users permission I want to hide some of the Nodes on the Site Map.
I would like to ask a question about hiding a drop down in my gridview. I have a gridview and I have a drop down list to control the page size of that gridview. when there is data in that gridview, it is fine for user to see the drop down list. But when there are records in the gridview, I do not want the user to see this drop down list. How can I hide it when there is no data?
I need to hide the menu and tool bars of a browser window, and the only examples I've found on how to do this are in the DOM with a javascript window.open command similar to the following:
The problem is, I cannot use this as the page (an aspx form) is being called with a server.transfer, so there really isn't a way to use the above code. Is there a way to set the toolbar and menubar without using window.open?
I am using a gridview where i have a table kind of structure inside each gridview row. Inside that table i am having various labels and corresponding values in front of them. Now i want to hide the label itself when the corresponding value is not fetched(or is null) from the database.
I am using asp.net 2010, and I would like to know how can I go about completely hiding a particular page from search engines, similar to how Facebook's security settings are set (for example, if I search for my real name, my fb page will now show up in google).
Working on a site where a user does a search, it takes the input from the user and then runs an SQL command to return the data in a gridview for the user to see. I also have a button where the user can see all the results from the DB (this will be taken out later but for now the DB is pretty small) This is all working fine, but the problem I am having is that when you look at the page source the gridview populates everything in tables on the page. This makes it really easy to just copy and paste and get everything from my database. How can I go about displaying the information to the user in a gridview, but hiding the table information in the html page source?
So I understand that the HperLink is a Client Side Control but I need code behind so that I can store the click event in the database. If I use the Link button, I have the opposite issue where I can access the client side but cannot open the url since this control does not have the NavigateUrl attribute.
When I browse to my page that has the modal popup panel on it, the panel initially is visable, and when I do a postback it acts as intended. let me know if you need the master page....
using above code i am able to print gridview directly without hidden fields.after added to hiddenfields to gridview , hiddenfield values are visible for printing.after i am using gridview.colums[i].visible=false column not visible while printingproblem is after print the gridview not visible whatever my columns set visible false.Example:at printing time i am set checkbox visible false, after printing i want reload same page with checkbox but check box not visible after printing gridview