Web Forms :: Customized SiteMapProviders Does Not Refresh The Dynamic Nodes When Log In?
Jul 6, 2010
I used customized sitemap providers to add dynamic nodes in the master page. ( by Override the " BuildSiteMap() " method, add dynamic node into the existing sitemap based on the user's roll. For example, when admin user login , I will add a dynamic node into the map as "Admin link", when general user login, I will add a dynamic node into the sitemap as "general", when default( not log in mood), I will add a dynamice node as "not log in " . menu works when the user first load the page, but menu never change again if I switch the user's log. Does anybody has a good idea how to either make the sitemap refresh when I switch the user's login ? Or any other good idear on how to make my goal accomplished?
View 6 Replies
Similar Messages:
Mar 21, 2011
I have a web form that has 2 drop down menus, when the first drop down menu chooses something, I want the next drop down menu to populate according to the selection on the first drop down menu without the page reloading. Would I use ajax for this? What is the best way to accomplish this?
View 2 Replies
Mar 4, 2010
I want to determine if the following could be implememted using a sitemap and menu control.
I have implemented the selection and navigation using tables and urls.
Each page request the querystring data, get the sql data and create the required selection and navigation urls.
Customers.aspx contains a list of customers with a url for each customer.
[code]....
Can I use a sitemap and menu or tree to provide the back navigation described in the scenario above.
Is it possible to modify the url for one or more sitemapnodes based on a user selection on a page?
Is it possible to add/remove sitemapnodes based on a user selection on a menu?
View 1 Replies
Jan 25, 2010
i'm new one to Asp.net (3.5).. plz tel me how to calculate the node, childnode, sub childnode and so on.. and tel me how to retrive value of all...
Using Recurisive i can do this but i don't how to do..
View 3 Replies
Feb 18, 2010
I have a code that load hierarchy( nodes) into trew view.. by selecting different date, the hierarchy result from SP will show in the treeview..
the problem is even though I select a different date.. the result( node) of previous date is still showing in addition to the new hierarchy result...
it;s like the new result node is appended to existing node.. instead of refreshing the node and showing only the new result. How can I clear out the treeview nodes before adding new nodes from different date?
View 1 Replies
Mar 13, 2012
how can add , edit, delete nodes and sub nodes in treeview in vb.net 2005 and sql server2005
View 1 Replies
Jul 29, 2010
AllowSorting="True" AutoGenerateColumns="False" DataSourceID="LinqDataSource1">
SortExpression="UserName" />
SortExpression="FullName" />
SortExpression="Email" />
SortExpression="LastLoginDate" DataFormatString="{0:dd MMMM yyyy}"/>
<asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="MyDataContextDataContext" onselecting="LinqDataSource_Selecting">
<WhereParameters>
<asp:Parameter Name="Subject" />
</WhereParameters>
</asp:LinqDataSource>
public void LinqDataSource1_Selecting(object sender, LinqDataSourceSelectEventArgs e)
{
this.LinqDataSource1.WhereParameters["Subject"].DefaultValue = this.txtSubject.Text;
e.Result = reporterRepo.GetInquiries();
View 2 Replies
Jan 20, 2011
I have dynamic ajax tab. I need to add refresh and close button in each tab panel.
here is my code:
[Code]....
View 11 Replies
Jan 10, 2011
I am facing a strange issue while adding some dynamic data in my two divs. First div only contains single grid, while other has grouping grid with collapsible panel. When i add dynamic data in my first div, then after adding data, my div and its scroll automatically refresh, but when i add some data dynamically in my group grids then div content refresh, but its scroll do not refresh. This behavior is producing in Firefox and chrome. It is perfectly working fine in IE. One thing that can help you to solve my issue is that i am implementing continuous scrolling on my grids and adding data dynamically using jquery. Interesting point is that when i click some item and then scroll down, then both div content and scroll refreshes, but when i do not click on any item and simple scroll down to load dynamic data then div content refreshes but not its scroll. Link that i use to implement continuous scrolling is
http://www.eggheadcafe.com/tutorials/aspnet/b8381915-06d9-4538-b4bb-5ac2a8e73f34/implementing-continuous-s.aspx
View 2 Replies
Jul 27, 2012
i want to create popup in save click how it can be done?is it possible
View 1 Replies
Mar 3, 2010
I have a problem when I try to pass in paramaters for a report in my report viewer. I have set up the ObjectDataSource and set the paramaters for 3 text boxes that are on the page. The only way I have found to set the paramaters for the report is the user must fill in the paramaters and hit the refresh button on the Report Viewer toolbar ,but I would like to have the user click a asp.net button insted. Is there anyway to call the refresh method from codebehind?
View 1 Replies
Jun 22, 2010
I've created a very simple website with two roles, "administrator" and "employees". I've also added users using asp.net configuration wizard for both. My concern, however, is that going ahead it will not possible to use the wizard to add new roles, assign them or alter them once the site is online. I won't be the administrator and so I need to find a way for the administrator to add new roles and assign them to users from a remote connection. Where can I find some information on creating such forms?
View 3 Replies
Jan 14, 2010
Using a GridView to display unique website department names from a database table, is it possible to create a hyperlink in the GridView to that specific departments page? I'm a beginner and haven't found any examples so unsure as to how this would be accomplished.
View 8 Replies
Sep 1, 2010
am using vs 2005 and sqlserver 2005.in my database table (name : users) there are more than 10 lac records.i have to display the user details in a grid.if i wrote the sql query as " select * from users" then it is throwing the "System.OutOfMemoryException"So i wrote the query using rownumber (i mean first it will get inly specified no of records ex:25 )so it is displaying only that 25 recordshow to give paging in this situation...?y requirement is in the grid i want to get and display first 25 records with the paging asirst Previous 1 2 3 4 5 6 7 8 9 10 Next Last
View 5 Replies
Jan 27, 2010
I have the following situation I am having trouble with.
1) Users select some items from a checkbox & type a message in a textbox
2) The user clicks on a message preview button
3) Based on what they had selected, a message will be created. This message is stored in a database
4) I am using showModalDialog to display their message to the user.
5) The user is given two options, send & cancel
**Here is where the problem starts**
6) If the user clicks send, I want to call a server side method that sends this message to a portal (method already developed) I was trying to use "__doPostBack....", but this is throwing a javascript error.
View 2 Replies
Aug 15, 2012
I am using password recovery control in forgotpassword.aspx page. By default the password recovery control validates the Login id and the security question of a particular user. But i want to give an alternate option. That is, If the user forgets the security answer he can give his PAN Number as identificaiton. Its should be an option like either he can provide security answer or his PAN number. Can we acheive this functionality. Because from my knowledge it looks like Security Answer is mandatory. But i want to provide alternate option that user should give his security answer, if he forgets he can use PAN number for his identificaition. UpmMembershipProvider has default property (requiresQuestionAndAnswer) which is set as true.
View 1 Replies
Jan 18, 2010
1. Is there anyway to make an ifrom refresh without having to refresh the whole page?
2. My iframe just wont display when I run it. It just displays a grey screen with the file name in the middle.
<
iframe
runat="server"
id="IframeOne"
src="~/Test.aspx"></iframe>
View 3 Replies
Jan 9, 2010
I have to create a customized Next/ Previos solution, the DataPager is not flexible enough for what I want. This is what I have so far.
1. A user does a search and 100 records are returned, I have 25 records per page and so get 4 page numbers -- this is already done on search.aspx
2. The user clicks their choice (let's say its 'Post 10') and is taken to that record on details.aspx -- pretty standard stuff.
What I now need is a Next /Previous links on the details page -- so if the user clicked Post 10, on the details page will be two links, Next linking to Post 11 and Previous linking to Post 09. (i'll actually be using the post title as the text in the links not simply Next/Previous) I'm unsure about how I should begin to struture this, should I be looking at creating Temp Tables in Sql Server and step through the records or can I access the dataset from the search page and step through that?
View 2 Replies
Jan 28, 2011
[Code]....
My question is: how can i create my own parameter based upon the QueryStringParameter?
Example:
[Code]....
I now called it QueryStringGuidParameter.
The purpose of this is: I'm not sending any querystring's via the aspx?querystring other thasn aspx?guid={guid identifier}.I hope my code below explains it al little bit.
[Code]....
A soon as a page Redirects f.i. with this example
[Code]....
Instead of calling Response.Redirect i call the Redirect i created. This transforms the querystring in a session with a guid and parameter. The Redirect only sends the guid in the querystring. and the receiving page picks up the guid and translates it back into a querystring.
Purpose is you have a secure way of dealing with info sending via querystrings. Lets say in the past you could easily get other info from the page by just changing a value in the key send via a querystring. In my case lets say the user request a Customer "A" with querystring ?ID=1.
Simple change the query in the addressbar to ?ID=2 (or something else) would give him another customer. Maybe a customer he is not allowed to see. (Of course this can be prevented also in the business layer, but that's not the point.)
So if i simply could create a new QueryStringParameter lets say called QueryStringGuidParameter which i can use in the ObjectDataSource but ideally just for all controllers which are able to use the QueryStringParameter , i don't have to go into code behind and set the SelectParameters in there.
View 4 Replies
Jun 13, 2010
I have an application as in the following,
[Code]....
The application works, but I would like to have 10 results per page. How easily can this be done? I don't want to use data view or grid view like most of the examples talk about, I would like to do this in the fashion that looks like what I have now, only not so many entries in a whole page.
View 3 Replies
Nov 19, 2011
How to use extension methods and customizes generic list collections??
View 1 Replies
Mar 22, 2011
I have a asp.net gridview control on my page with several fields and a couple of command fields. However, the update command is giving me problems.
Here is what works. The update command works provided I put straight text into the textboxes that appear. I even have one field that contains a dropdown list which works fine.
Here's the problem. I have two fields that need to access their value programmatically. These fields will reflect the current datetime and the current loggedin user from active directory. I have already created public strings in the C# code.
When I run the edit command on the asp form the grid uses one "DataKeyNames" element. With this the grid can update the selectedrow. However, I haven't been able to access it programmatically in the C# code. I can access the selectedrow in the "selectedindexchanged" event but then I am not able to update my fields in the gridview itself. So, part one of my question is how to I access the "DataKeyNames" properties of a gridview control.
if I can't access the "DataKeyName" property perhaps I could set the label nested within the gridview to the "myCurrentUser()" public string. I am inserting my code to hopefully make this clearer.
View 2 Replies
Jul 31, 2010
I'm gonna outline the application roughly: it's a tool, where people can upload a CSV-file, which contains their data for some crazy water-plant-biology-stuff. ;) The job of the application is (besides others) to validate their entered species. So far no problem, I've got my string-array with the correct species abbrevations, and i can parse the species names from the user-edited CSV-file.Whenever a species is found, that is not part of the reference-array its being sent to a GridView as a new row. All of the above works fine - if anything isn't explained well, just ask.
Now, what I want to do is to give the user a simple edit-function: beside the WRONG species name, it would be terrific, if there was some sort of drop-down-list, filled with the correct species names (which are stored as a string-array in my .cs-file!). The user looks at his wrong species, then just has to select the correct name from the drop-down-list, either updates row for row, or even better: edit every row, and update once at the end. Is this possible? I remember that it's quite easy to fill template-fields with data through SQL-connections etc, but is there a more simple way to do it? As said, I've got a fine string-array in my .cs-file behind the aspx-page.Haven't found any code for this. Are template-fields in the Gridview the right way?
Which might be a solution for the updating-problem: I keep storing the wrong names in the rows, and just add another column next to the species name, where this drop-down-list should appear. Then i add a button, which, when clicked, gets the old value & the new selected value for each row, and updates the data. Should work? So the problem remains: how do I add a template-field with many (<500) items in the .cs-file to a GridView-Column?
View 5 Replies
Feb 8, 2010
why not all the nodes show in IE6?
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="default.aspx" title="Home" description="Welcome To Aurelio's Restaurant">
<siteMapNode url="" title="Menu" description="Our Menu" >
[code]...
View 2 Replies
Feb 11, 2010
using Visual Studio 2008. This is for a website which produces .aspx webpages. I am creating a .master page template. I would like to create a horizontal drop down navigation menu using custom buttons. I have button jpg which i really like. I of course want the button to have the title ON the button. When i click on the button it should display its submenu below. This menu would use a sitemenu data source from the actual website. I dont see a way to use your own nav buttons in the Visual Studio toolbox. (sure you can edit the padding, color etc. but that's not what i want) Any suggestions or referrals to any generators that will work with an aspx page?
View 2 Replies