Finding CSS-Friendly Menu Adapter That Emits The Same Markup As 4.0?
May 12, 2010
For .NET 2.x/3.x there exists a CSS-Friendly Adapter on CodePlex that emits markup for an ASP.NET Menu Control as an ul.
The .NET 4.0 Menu control will also emit an ul, but the CSS class names are different from those emitted by the CSS-Friendly Adapter 1.0 on CodePlex.
In the interests of having a single version of CSS for .NET 2/3/4 sites, I want to create a version of the CSS-Friendly menu adapter that emits the same markup as the .NET 4.0 Menu control.
View 1 Replies
Similar Messages:
Feb 2, 2010
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?
View 4 Replies
Jan 13, 2011
I have a CSS Adapter enabled Menu(having sitemap data source) which I have created using this tutorial Multi Level ASP.NET Menu with CSS Friendly Control Adapters. Now I want to load a div(containing contact info) on one of this menu item's onclick event. let me know how I can do this with jquery? Where should I add the code?
View 7 Replies
Apr 15, 2010
I am working with asp.net 2.0 I have 1 problem Regarding Menu Control I used menu control in Master page. Now I have to find out Menu Item from Menu control depending on Condition. how to do that on server and Client side.
My code:
<asp:Menu runat="server" Orientation="Horizontal">
<StaticMenuItemStyle CssClass="jobTabNormal" />
<StaticSelectedStyle CssClass="jobTabSelected" />
<DynamicHoverStyle CssClass="jobTabHover" Font-Bold="true" />
<DynamicMenuStyle />
<DynamicSelectedStyle CssClass="jobTabDynamicSelected" />
<Items>
<asp:MenuItem Text="Job Details" Selected="true" NavigateUrl="#" Enabled="true">
</asp:MenuItem>
<asp:MenuItem Text="Cargos" Enabled="false" NavigateUrl="~/Pages/cargoDetails.aspx">
</asp:MenuItem>.......
View 3 Replies
Mar 31, 2010
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.
View 2 Replies
Jan 13, 2010
In the menu adapter class, How can i use base controls (i.e. asp.net menu ) render contents which generates tables rather than adpter.rendercontents which does generates Span with Hyperlinks?
View 1 Replies
Mar 27, 2011
This question appear when I worked with partial view (MVC3/Razor), but I am sure - it's clear Razor Syntax question, not related direct to partial view. So - I have partial view Menu.cshtml with full markup as:
@model IEnumerable<SportsStore.WebUI.Models.NavLink>
@foreach(var link in Model)
{
@Html.RouteLink(link.Text, link.RouteValues);
}
No problem - "parent" view call it @{Html.RenderAction("Menu", "Nav");} and all work as magic.
But, if I will edit the Menu.cshtml as:
@model IEnumerable<SportsStore.WebUI.Models.NavLink>
@foreach(var link in Model)
{
Html.RouteLink(link.Text, link.RouteValues);
}
(see - NO '@' before Html.RouteLink!) all just broke: now @{Html.RenderAction("Menu", "Nav");} output is totally empty, no one HTML tag. Want to know - what is the difference between two piece of code? I assume @ before foreach also automatically "drop into" and apply to Html.RouteLink as well? So - am I wrong?
View 2 Replies
Nov 28, 2010
I am working on a custom menu control, partially as a learning exercise, and I am having trouble with Visual Studio's IntelliSense support for it in markup view.The conventional ASP.NET menu allows you to place an arbitrary depth of <asp:MenuItem/> elements under the <Items>...</Items> element. I'm after the same behaviour for my menu.Mine unfortunately does not. VS insists on an empty tag:
<hn:AwesomeMenu runat="server" ID="menu">
<Items />
</hn:AwesomeMenu>
[code]...
View 1 Replies
Mar 5, 2011
I am using asp.net sitemap with the in-built asp.net menu but this is very 'dull'. I want to apply CSS and jQuery to give it a better visual look and feel. I have read various articles based on[URL] However, i really liked
[URL]
Is there any examples or tutorials similar to this which are FREE?
View 2 Replies
Mar 6, 2010
I'm about another 5 hours down the road into trying to use another ASP.NET control that should be amazingly simple yet for whatever reason I can't seem to get to work.
The StaticSelectedStyle property of a Menu control as described here: [URL]
I can't make it work. I've read forum posts that say it won't work unless I bind the menu controls to a sitemap. I've done that and it doesn't work.
I've gone so far as to copy the example code on [URL] and paste it verbatum into a new aspx page in brand new projects in both VS2005 and VS2010 beta and I STILL can't get it to work (after altering the NavigateUrl of one of the menu items to be the page that the code was sitting on...e.g.
[Code]....
If Microsoft's own example code won't even work I'm not sure I'm feeling very hopeful here. It seems entirely stupid to have to go create my own navigation menu when the Menu control does 98% of what I need it to do (except highlight when it's on the selected page).
View 6 Replies
Feb 5, 2010
I need code for gridview context menu like edit, delete,cancel
View 2 Replies
Mar 5, 2011
I am using asp.net sitemap with the in-built asp.net menu but this is very 'dull'. I want to apply CSS and jQuery to give it a better visual look and feel. I have read various articles based on [URL] However, i really liked [URL]
Is there any examples or tutorials similar to this which are FREE?
View 1 Replies
Jul 25, 2010
Is It Possible to Load XML File data into Adapter
Code:
protected void Page_Load(object sender, EventArgs e)
{
DataSet ds1 = new DataSet();
DataSet ds2 = new DataSet();
if (!IsPostBack)
[code]...
View 8 Replies
Jan 27, 2011
I'm new to .net... long time programmer though
I'm trying to return the full recordcount of a data adapter but I'm struggling.
This is a snippet of the code I am using
[Code]....
This works ok but it only returns the number of records I am actually filling into the dataset table.... So my query might return 700 records but because I am only returning 15 back into the dataset table (to paginate the results) then it only shows 15 records found.
Do I have to fill a 2nd dataset table with the full results set and count that? Should I return a count of records as a column in the products table.
What's the correct way of doing this (and what's the most efficient way of doing this)?
View 9 Replies
Nov 2, 2010
what i have is the following code.
[code]...
View 2 Replies
Jul 12, 2011
I am trying to update an access DB using a table adapter created within a vs 2010 dataset file. When i click my submit button nothing happens. Also using an insert method created the same way it works.... When I dubug using the immediate window i receive this message:
Argument not specified for parameter 'StockNum' of 'Public Overridable Function UpdateQuery(StockNum As String, Year As String, Make As String, Model As String, Color As String, Location As String, TiresNeeded As Boolean, StockIn As Date?, SvcRONum As String, UCIStartDate As Date?, UCIEstCompleteDate As Date?, Repairs As Boolean, CollisionRONum As String, Detail As Date?, Other As String, OnLot As Boolean, OffProperty As Boolean, Sold As Boolean, Original_RecNum As Integer) As Integer'
The PK column in this DB is recNum. Here is a snippet of the code:
Code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
getData(Request.QueryString("param1"))
End Sub
Private Sub getData(ByVal user As String)
'declare variables to fill
[Code] ......
View 4 Replies
Jul 18, 2010
I am trying to add "Select Scope_Identity()" to my table adapter but vs2010 respond with "Unable to parse query text." error message.
Code for Insert SQL is -
INSERT INTO orders
(creditAutorizarionNumber, OrderName, OrderPersonPhone, OrderPersonEmail)
VALUES (@creditAutorizarionNumber,@OrderName,@OrderPersonPhone,@OrderPersonEmail)
I tried to add -
;Select Scope_Identity()
How can I use the Scope_Identity() withing a BLL table adapter ?
View 2 Replies
Jan 11, 2010
I have a strange issue. I have a XSD file where I have created some TableAdapters. When I have reopened the XSD file it seems like I am not able to create a new table adapter since all the options which will come when I right click on the XSD file are disabled. I have cross verified whether I am on debugging mode but...I was not..(I am not even able to drag and drop an adapter from the left toolbox menu either)I am getting the same issue when I open the same XSD file on somebody else machine but I am able to create TableAdaperts in other XSDs.Can somebody suggest me a solution for this
View 5 Replies
Jan 30, 2010
May I know which is the best and user friendly CMS for C# asp.net which is free and a link to it..
View 4 Replies
Jun 26, 2010
I am a new to ASP. Very experienced in MS Access... Logical move to ASP.
Problem:
When designing my first .aspx on PC and testing via localhost; all is well.
When move to server I get this error msg:
"The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource2222' could not be found."
I have been reading for a solution for the past three days.
My reading tells me that there should be a reference somewhere in the web config file to id the business object dataset , but do not see any. No luck in surfing for a tip either.
I thought Visual Studio 2010 was a rapid app that allow one to design and test on PC and move easily to server for production. I am I expecting to much.
View 1 Replies
May 1, 2010
to get limited records using this method? i.e. by filling dataset using adapter and providing min and max record limit?I wish to do custom pagination using this method.
View 6 Replies
Mar 4, 2010
I have created a function that is called when a user wishes to upload a file to the database. The problem I am having is that it won't write the files to the database anymore. This function used to work before I implemented a treeview (which connects to the database). I am struggling to see how the treeview could have cause the file upload to stop working (the error may not even be related to the implementation of the treeview).
The error message I am receiving is: 'Update' is not a member of 'CMS.SiteFilesDSTableAdapters.SiteFilesTableAdapter'.
The code for the upload function is:
<System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Insert, True)> _
Public Function AddSiteFile(ByVal FileData As Byte(), ByVal FileName As String, ByVal FileDescription As
[code]....
It is throwing the error at: Dim rowsAffected As Integer = Adapter.Update(SiteFiles)
' Return true if precisely one row was inserted, otherwise false
Return rowsAffected = 1
EDIT: I managed to solve this problem by following:
http://www.asp.net/%28S%28pdfrohu0ajmwt445fanvj2r3%29%29/learn/data-access/tutorial-69-cs.aspx
Basically, I had used an Inner Join to gather all the fields, and table adapters don't seem to like them.
INSERT INTO [SiteFiles] ([FileData], [FileName], [FileDescription], [FileType], [FileCreated], [FileCreatedBy]) VALUES (@FileData, @FileName, @FileDescription, @FileType, @FileCreated, @FileCreatedBy)
View 1 Replies
Nov 11, 2010
Code:
SqlDataAdapter da = new SqlDataAdapter("select * from " + txtTableName.Text, DataStoreGeneral.GetConnectionString());
DataTable dt_app = new DataTable();
da.MissingSchemaAction = MissingSchemaAction.AddWithKey;
da.FillSchema(dt_app, SchemaType.Source);
da.Fill(dt_app);
SqlCommandBuilder build = new SqlCommandBuilder(da);
da.InsertCommand= build.GetUpdateCommand();
da.Update(ds.Tables[1].GetChanges(DataRowState.Added));
Problem: In my scenerio i had dataset with a table (in code->ds.Tables[1]) in rowstate added. I wanted update on database with this table so i changed insert command of adapter to update command of command builder, but no update got performed. When debugged in sql profiler i found that update command generated by builder is checking all columns in where clause and with parameter value of data table instead of from database column value.
exec sp_executesql N'UPDATE [ShopResources] SET [GROUP_RESOURCE_ID] = @p1, [SEQ_NO] = @p2, [SUB_RESOURCE_ID] = @p3, [EFFICIENCY_FACTOR] = @p4, [RUN_COST_PER_HR] = @p5, [RUN_COST_PER_UNIT] = @p6, [BUR_PER_HR_SETUP] = @p7, [BUR_PER_HR_RUN] = @p8, [BUR_PERCENT_SETUP]
= @p9, [BUR_PERCENT_RUN] = @p10, [BUR_PER_OPERATION] = @p11 WHERE (([GROUP_RESOURCE_ID] = @p12) AND ([SEQ_NO] = @p13) AND ([SUB_RESOURCE_ID] = @p14) AND ((@p15 = 1 AND [EFFICIENCY_FACTOR] IS NULL) OR ([EFFICIENCY_FACTOR] = @p16)) AND ([RUN_COST_PER_HR] = @p17)
AND ([RUN_COST_PER_UNIT] = @p18) AND ([BUR_PER_HR_SETUP] = @p19)
The problem I identified is parameter values inside where clause are from data table which is obvious that update condition will not be met. Is there some way to restrict where clause to primary key only in Command Builder?Or why is command builder taking where clause parameter values from datatable instead of command (query)?
View 2 Replies
Mar 5, 2010
I just installed Oracle 10G Express Edition. Installation was successful, when I tried to connect the database usingScott/tiger or hr/hr it does not Connect and throwing an exception :ORA-12560: TNS:protocol adapter errorHow can I get rid of this error to connect to the database.I am using Windows Vista 64 Bit OS....
View 5 Replies
Jun 4, 2010
or on one sql statement in VS 2008.
How to use two connection strings on one data adapter
View 3 Replies