Is there a way to force the asp:Menu control to spit out ul and li instead of tables, so that I can use my existing css styles to style them correctly or is that a lost cause?
I want to create a form that will update an existing database record based on a querystring value passed to the page say UserId.
Rather then using data-bound controls such as the FormView, DetailsView, etc, I would like to use textbox controls, a dropdownlist and a checkboxlist to accomplish this alone. Is this possible? How do I go about binding the data from the database to these controls when the page is loaded and what data source should I create?
Im using VS2008 with no 3rd party controls so its completely standard. Ive seen Web Sites that the "display area" is central to the page and will behave like this when the Web page is resized.
Like http://www.asp.net/ home page
What is the control name(if it exists)? There are Navigation controls available but I cant get them to look professional.Are there any links to show how to set these to look modern and fresh? (again like asp.net tab menu at the top)Id rather not go out and buy 3rd paty controls if possible.
I need to add multiple gridviews to a page displaying different data but of the same structure - the data has a lot of columns and I need it formatting quite tightly - is there a way of creating a template gridview in design mode and then somehow using that however many time I need to in the page as a template.
I do have the following code for for a GridViewd that display pictures that are stored in a file. I am using AutoNumber(GUID) from the database to name the pictures before I stored them to the file. I can save up to 4 pictures using the same AutoNumber but adding these ending to it, Pic1, Pic2, Pic3 ,,,,etc.
The problem that I am having is that after I get the AutoNumber from the database, I want to display a standard picture on the GridView field if there is not particular picture associiated to this record in file. The name of the standard picture is located in the same file under the name of NoPicture.gif. How can I do this? So far this is my GridView code and it is working fine:
I am trying to create strogly typed datasets for my project. When I right click on the xsd file that I need to generate a strongly typed dataset for I can't find the 'Advanced' properties as described in the below article (almost half way down)[URL]As I do not see the Advanced properties option I can't find the 'Custom Tool' property/option to set its value to 'MSDatasetGenerator'. Do I have to install some kind of patch on my VS 2005?
I have created my database in SQL Server 2005 Enterprise Edition and now planning to tranfer this databse to another server, But this other server is SQL Server Standard Edition, So if i try to attach my database which is created in Enterprise Edition will get sucesully connected to Standard Version ? or i will get any error message or i am doing something wrong ? This situation is fine or Version should be kept same ?
I have SQL Server Standard 2008 installed on my machine, alongside Visual Studio 2008.
My current hosting provider (not a huge fan) requires me to access my db's remotely via SQL Server Management Utility. To date, I've been doing it by connecting remotely in VS2008. Their troubleshooting documentation/steps, though, are for the SQL Server Management Express 2008, and i'm having a lot of connectivity issues with them.
I followed the steps here: [URL] to "add additional features to an existing installation" - but when I did so, the setup wizard indicated that the Management Tools-Basic were already installed.
I'm trying to debug one specific issue with ASP.NET application and I suppose the problem could be somewhere in the server configuration.
Specifically the standard ASP.NET header is sent to the client instead of the header crafted by the ASP.NET application
Date: Fri, 04 Feb 2011 12:15:04 GMT Server: Microsoft-IIS/5.1 X-Powered-By: ASP.NET
My question is - where does this header come from exactly? Who is responsible for producing it and sending it to the client? Why would is be sent to the client instead of the once crafted by the application?
I'm using standard routing for asp.net 3.5 sp1, which is setting in global.asax in this way:
[Code]....
This is, certanly, only part of it.
So, the question is: how i can get the title of the routing rule, which is using with current path? When i'm on page "pages/1/first.aspx" how can i get the "pages" as a name of the rule?
but back in the days of Webforms you would return a Dataset which you would then bind to a grid. But now in MVC you're not supposed to pass a datatable because you cannot serialize it and it's technically passing objects into the View where it doesn't belong? But how on earth am I meant to display data on a view?! I can't use LINQ to SQL classes here since this is a pure in memory data structure.
Ideally I'd just like to able to have an object which I can iterate within the view.
I'm really at a bit of a loss I have read the article from the "Gu" and I can only surmise that I have to pass back a ViewData Object instead?? Am I going nuts here?
I am replacing an existing web application, that all it's requests go through a url: www.something.com/scripts/xxx.dll?args
I created my own aspx page that handles these requests and it is called: www.something.com/scripts/xxx.aspx?args
My problem is that there are many existing links, from other website that refer to the xxx.dll?args url.
Can I create my own dll in .net that will receive the xxx.dll?args requests and process them? This isn't a simple redirect, because I also need the args
on my web form i have a standard textbox.after the user enters a number i want to set it's format so 12500 - will be set to 12,500 and so on.how can i do it?
Can anyone provide examples or links on how to use the TreeView control. I'm just curious what some of the industry standards are. Which Events to use, how reference childnodes, etc.
i need to implement a standard encryption decryption logic across an entire project platform which has different clients implemented using different platforms as follows:
iphone app (objectiv c) website (classic asp) webservice (asp.net) samsung bada app (c++)
the iphone app as well as the website need to send info to webservice using encrypted query strings
the web service then decrypts this and processes the info further
wanted to know the simplest way to achieve this. is there some free and ready to use binary available with an easy to use api to achieve this?
encryption needs to be as secure as possible
edited: currently we use AES on the website and webservice front
I have date in a text box in the following format "dd-MM-yyyy"How do i convert this into standard datetime format, i could do DateTime.Parse(txtDate.Text).Date but how do i define the current format of this date before parsing, i mean how do i tell the parser that this date is currently in the format "dd-MM-yyyy" usualy parser assume date to be in "MM-dd-yyyy" format i guess?
I have MVC project, and then I want to load webform standard from special folder (~/views/Report Report.aspx). and I Try to call the report.aspx from homecontroller (different controller). The result is the resource is not found.
I have asp.net form with C#, where is I am taking user information to insert in the database as usual by using Linq. well. Where as I am taking Date of birth also from the user, but if user skip to fill date text box from ui, then I am getting date like '01/01/0001' something like this, which certainly database security would not allow to store it.
So I need to check somewhere in my code that it is null or in this (above given) format. If it is null or in format '01/01/0001' then what exactly I have to do? I don't have any default value for dates.
So what is the standard way to handle if date is null (but not mandatory). So many times I found myself in trap while handling null for various types.