Make Url Extension Less?
Oct 14, 2010how can i make urls without extention it means without .aspx or .html??
View 3 Replieshow can i make urls without extention it means without .aspx or .html??
View 3 RepliesI'm trying to let the user download different documents where the data is stored in an SQL DB. In firefox, the filetype is correctly read, but not in IE. I'm trying to do this without having to set the ".pdf" or whatever extension the document has, because I haven't got that information. I only have the filetype.
[Code]....
I want to iterate through HtmlTable (Server Side) in ASP.NET 3.5.
foreach (System.Web.UI.HtmlControls.HtmlTableRow trow in someTable)
{
var x = trow.InnerText;
}
I received an error message that "System.Web.UI.HtmlControls.HtmlTable" does not contain a definition for GetEnumerator.
How to write an extension method or alternative to make HtmlTable as enumerable row collection?
Who does know what is the best file extension for RSS feed on the site (for SEO):
(XML) mysite.com/rss.xml
(RSS) mysite.com/rss.rss
(HTML) mysite.com/rss.html
(ASPX, PHP, etc) mysite.com/rss.aspx
(with url params) mysite.com/rss.aspx?param1=val1¶m2=val2
some other
I'm going to use (3) html on my site, is it ok?
I've looked at a few files this AM, all have .xap, and all are throwing errors as I try to debug each of these projects. Here is an excellent example:
http://www.codeproject.com/KB/silverlight/TallColumns.aspx
I'd like to learn how this project works, but each time I try to debug, it throws an error saying 'Error creating control xaml1, unknown server tag asp.SilverLight'. what does this mean? What do I need to do to make this work?
I'm using VWD 2008 Express.
What are pros to use extension-less url? in any terms. like [URL] to [URL] and is it possible to have extension-less url for every page? Update: Is extension less url better for site security?
View 6 RepliesI noticed a lot of ASP .Net sites does not have the URL ending with ".aspx".
An example would be: [URL]
Did they create a Questions folder and put a Default.aspx inside?
In that case, wouldn't there be A LOT of default.aspx in many folders which is hard to maintain (even though it is user-friendly)?
i saw the extension method code but i could not understand what it is and what is the utilities of extension method.
View 3 RepliesI would like to make a custom accordion, in which I have 2 panes, but where you couldn't open the second one until you clicked a validation button in the first one that would open the second...
I tried to just make a button that would hide the first pane but I cant get to make it work.
[Code]....
[Code]....
I want user can save a file after click on a link.
I write the following code:
[Code]....
[Code]....
but save dialog box shows file without extension of file..
and file save on system without any extension...
I am using Tuple class in WCF Service. When i add reference to my web project I get Tuple class. Now i want to add an extension method to Tuple<> class in my service which will be accessible in my Web project.
View 1 RepliesI want to ask, does adding extension methods to datatypes works in the same way as Microsoft's methods or do they have any limitaion.
This is relevant to experienced programmers who had find some limitations while using them.
how to use class extensions with Views?
I'm using VB.Net, Visual Studio 2010 Ultimate and developing an ASP.MVC 2 application.
I have an module that defines some extensions to the String class. In a WinForm application, I would simply use a Imports statement to include my String extension module into my class. But, in Views, the compiler complains when I try doing that.
I want to hide or modify the url extension by default it is set to aspx. Can it be modified in asp.net
View 2 RepliesHow can i hide page extension (for ex .aspx , .php) from url of the page
View 3 Replieswe are developing asp.net web application with form authentication in IIS 6 - Windows server 2003.
the application is working fine.
but .html extension does not working.
How can i add or enable .html extension in my website(IIS 6.0)?
I'm searching for some extension methods that helps programming in ASP.NET. Some functions to work on controls, validators, AJAX or programing in C# in general.It could be methods library or your own methods.Do you know any source of those methods (other than CodePlex - that is good source of generic extensions) especially for ASP.NET?
View 1 RepliesI have a user control is shown through a SimpleModal popup (JQuery), this user control gets some data from database and displays them (the details of a record).
The problem is that this user control makes a round-trip to gets the data every PostBack for the parent page even it's hidden.
I wonder if I could make it gets its data only if the popup is appeared.
I tried to put it inside a Panel with false for Visible property and change it to true when I open the popup, but it stil call Page_Load which gets the data from database!
any link or thread or ASP.NET sample code to make an online book reader/Preview control (same as GoogleBook)
Is there is any 3rd party control available that can display the book with any file extension?
Possible Duplicate: How do I Validate the File Type of a File Upload?
i would like to add file extension for filtering to file upload control in my asp.net page.and do validation on client side.how can i set file extension dynamically..ex:images only(.jpg;.png;*.gif;).
Is there a way to specify a file extension for ASP.NET upload control? E.g. I want to upload images with jpg and png extensions only.I can implement this easily for a windows application, but struggling with ASP.Net
View 3 RepliesI am trying to add page with custom extension, say .asp2 with my set of html tags.Now whenever i try to access the page on browser...it asks me "Save as". This happens because I am using an extn which the server is not able to recognise.What should I do to so that my server, IIS 5.1 recognises this extension??
how to associate custom events on such custom page?
i have mapped *.xyz extension to my own custom handler in asp.net and can run it on Windows asp.net.
How can I do the same thing on mono (Linux/Apache - ubuntu)?
I have this in my web.config:
<httpHandlers><add path="*.xyz" verb="*" type="MyCustomHandler,...">...
I also added similar things to mod_mono.conf and several other files but still I get http 404 The resource cannot be found.
I have a scenario where my application is going to be publishing services that are consumed by both PC's and mobile devices, and I have a HTTPModule that I want to only perform work on only the mobile requests. So I thought the best way of doing this was to point the mobile requests to a different file extension and have the HTTPModule decide to process only if the request targets this new extension.
I don't need a custom HTTPHandler for the new extension; I want to program the services like a normal .ASMX service, just with a different extension.
First, can I do this? If so, how do I do it so that requests to my new extension are handled just like .ASMX requests?
Second, is this the right approach? Am I going about separating and managing the mobile vs. PC requests the wrong way?
What is the best way to go about creating a custom framework for asp.net?
We have several enterprise level asp.net ecommerce websites all running from completely seperate code bases. What I'd like to do is standardise the common components (session management/urlrewriting/surge control etc) and integrate them into the .net framework at the highest level possible and in a way that my developers cannot (easily) make changes.
I've considered creating a common assembly and just referencing that in each of the solutions but this still relies on the developer wiring up the httphandlers/modules and implementing the basepage design pattern for each individual page/masterpage.