Web Forms :: Use CSS Friendly Control Adapters With NavigateURLs?
May 14, 2010
I have a tab bar already set up and working using CSS Friendly Controls, but how can I navigate to another page while keeping the selected tab as selected. Without the navigateurl everything works. The selected tab uses the selected css like it is suppose to.
The tab bar I have is dynamically created meaning the tab names are pulled from my db. I am allowing users to create tabs, so I cannot create a sitemap.
When I add the navigateurl the new page opens, but the selected tab does not work.
EmptyDataTemplate and EmptyDataText not working in GridView
using CSS-Friendly Control Adapters removes the data that would would be populated by EmptyDataTemplate or specified in EmptyDataText in GridView. One of the solutions is to disable the addapters for GridView components as specified in this answer Is there a solution, that would allow to keep the use of CSS-Friendly Control Adapters for GridView and still take advantage of EmptyDataTemplate functionality?
I am using both the Mobile Device Browser File and a custom .browser file.
In the custom .browser file, there are several ControlAdapters registered. I would like to specify in my custom .browser file to use different ControlAdapters if the detected device is mobile (provided the Mobile Device Browser File lists it as mobile). How do I do that in my custom .browser file? I do not want to modify the Mobile Device Browser File.I am using something like this, but it is not working
I've tried to implement two different solutions that use either and HttpModule or and HttpHandler to do URLRewriting for me. These work great on IIS 7 within my local development environment in Integrated and Classic modes. Currently the production server is running IIS 6.0 on a shared hosting environment. It appears that the request at least hits both the Module and Handler as the URL above redirect to the particular friendly url, but it doesn't redirect and hit hte Module or Handler again. Instead I get a 404 error for the friendly URL.
I was having issues with a gridview and CSS so I posted my question here and received a wonderful answer which lead me to implementing CSS Friendly Adapters for all of my gridviews.I have a table nested in the EditItemTemplate that holds the textbox and the button for a calendar control where I want them, it inherits the CSS applied from the CSS Friendly Adapters. I don't want it to change the CSS so I have changed the CSS inline, with no success. More importantly...
I also have a Ajax calendarExtender control to change the date for that field. When the popup is displayed the table in which the calendar is shown in also inherits the CSS Friendly Adapters code. I have tried fixing this by creating a external css sheet for the calendarExtender's cssClass property and a blending of CSS occurs where the items not specified by the Friendly Adapter Code are set correctly by the calendar.css file that I created.Is there anything that I can do to force the tables inside of the gridview to ignore the inherited Friendly Adapter Code?
I have a dataset which includes some Queries. Now I want to use my queries which I created with the dataset through sql transaction. I have two queries that must execute at the same time and if anything goes wrong it should roll back. Is it possible to use Sql Transaction with Dataset queries?
I have been trying to create a sql statement that uses a subquery to join 2 oracle tables to create a strongly typed table adapter. For example:
Select productName, (select categoryName from categories where categories.category_id = products.category_id) as Category from Products
The ASP .Net tutorial I am working through recommends using subqueries instead of joins for the insert, update and delete commands to be automatically generated by Visual Studio 2010. When I click Finish in the table adapter wizard I get the following error (I am using MySQL version 5.1 and the MySQL Data Connector 6.3.5)
Generated SELECT statement. Error in SELECT clause: expression near 'SELECT'. Error in SELECT clause: expression near 'FROM'. Missing FROM clause. Error in SELECT clause: expression near','. Unable to parse query text.
i'm using custom adapters to identify devices. I'm adding them in web.config like this :
[Code]....
I have create a class named AswMobilePageHtmlAdapter liek this: [Code]....
when I try to debug the web site it gives me an error that say that it can't find the ASW_Skin_Mobile.Presentation.Adapters.AswMobilePageHtmlAdapter class.
I have a listview in a page and I use a DataPager to do the paging. Each time the user clicks a page's number, the page does a postback and it shows the next "x" items. My problem is that I rewrite the url with isapi rewrite and when the user is being redirected to the second, third etc page of items the friendly url is being replaced by the non-friendly url of the page.
I have a small application which allows publishers to update some information at will, one of the problems I have encountered is that sometimes they want to put in a url to certain section within the site.
The url expands the div, and I have this as an expandable div (vertical) and have been using the word-wrap:break-word to put wrap the url.
how to make the user choose what text they want to use and behave like a hyperlink. I was looking for this to be done in the detailsview edit mode.
I am developing a web application using the traditional Web Forms model. I have one page that loads the details of a particular destination. The url comes in the following format [URL]. I understand that this is not properly favored when it comes to search engines. what I need is something like this [URL]. How can I get this kind of functionality through web forms.
What is the best way to implement friendly urls in asp.net 2.0 for example I have http://www.predatorsfc.org/BrowseThreads.aspx?ForumID=23 and would to like add the forum title to the url to make the url more user friendly ?
I am interested in the architecture of a CMS where i can pass a full URL instead of a query string. I would like to make a site that could handle a request to any page... Say'http://www.my-domain.com/directory/page.aspx'and have the resulting response deliver a generic page/file.I would like the request to be passed through an XML document where i could store page names and the corresponding file to render content...
I was discussing load-balancing with a colleague at lunch. I admit that I know very little about this topic. We were discussing the various ways of maintaing session in a ASP.NET application -- none of which suited the high performance load balancing that he was looking for. What about Silverlight? says I. As far as I know it is stateless, you've got the app running in the browser and you've got services on the server that feed/process data. Does Silverlight totally negate the need for Session state management? Is it more friendly to load-balancing? Is it something in between?
have a search on my site, in which search type and search word are in URL like this: /search/t-someword.htmly route for search:
routes.MapRoute("Search", "searchj/{type}-{word}.html", new { controller = "Search", action = "Index"}, new { type = @"[t,s,p]"});
Everything works fine but when I change string to do not show spaces that word like "some words" looks like "some-words" it doesn't work. With spaces it works
I haven't done anything with mobile devices and was just asked to create a mobile version of one of our sites. Is there anything specific to .net for this? I'm not sure where to start.
I have to create 2 print friendly buttons for a page, 1 is to create a print friendly version of a page inside a div and the second to create the same but the area to print is instead inside an <asp:Panel>.
I assume using javascript to open a new window and then displaying the div or panel would be the best way, I've done this in the past but dont recall all the details.
Does anyone have any good samples for doing something like this?
We are evaluating ASP.NET MVC for use now or in the future and one comment was that views are not graphic-designer-friendly.
Are there any plans to substitute Html helper extensions code with something similar to the ASP.NET markup in webforms? I know there are alternative view engines, but I'm just looking for something simple like <%= Html.ActionLink("controller, "action") %> with something like <asp:LinkButton controller="somectrl" action="someactn"/>.
I could probably create controls to wrap helper extensions, but just wondering if it's already in the works.
I need to render a few DropDownLists on my page, allowing the user to select different Categories & Locations so as to return different result sets based on their selection.
However, I want each of the resulting selections to be crawlable. I know I could just render every possible Category, Location etc as standard HTML links on the page, which perform a GET request to the specified URL, but if possible I'd like to contain all these options within a DropDownList to keep things less cluttered.
If I were using MVC I would consider wrapping that small section of the page in a GET form, with each ListItem value being the destination URL (though I wonder if even this approach would be properly crawlable?).
I am using Web Forms though and am just having trouble trying to come up with a solution.
Our users can currently select a number of funds from a page and go to another page to see the funds compared on a chart. I now have to present the user with an option to produce a print-friendly fact sheet page for each fund in the chart.
The requirement is that each page will open in a new window (or tab), and be minimised so as not to be 'too intrusive' when they're opened. how I could go about this? This also means that the user will have to go to each window or tab to print the page.
They also want the print dialog box open in each of the new windows so the user doesn't have to open it. Is this possible, for the print dialog to open at the page load? I disagree that (up to) 10 new windows can ever be anything but intrusive! Ideally I could send these new pages directly to the print queue. Is this possible?
Otherwise, I could Generate a page dynamically for each fund, strip out the contents of the page body and add the content for that fund to a large single page print-friendly factsheet. Does anyone have experience in this kind of work?