So in my simple learning website, I use the built in ASP.NET authentication system.
I am adding now a user table to save stuff like his zip, DOB etc'. My question is:
In the new table, should the key be the user name (the string) or the user ID which is that GUID looking number they use in the asp_ tables.
If the best practice is to...
I have a fairly simple ASP.NET 2.0 menu control using a sitemap file and security trimmings. There are only 21 menu options, but the results HTML of the menu is a whopping 14k. The site is hosted on our company's intranet and must be serverd to people worldwide on limited bandwidth, so I'd like to reduce the size of the menus.
What is th...
Does anyone ever found/used an ASP.NET application similar to Joomla?
I need to set up a quick and dirty CMS on a Windows Server and our client doesn't want us to use something else than ASP.NET.
Thanks!...
I'm working on a website which will switch to a new style on a set date. The site's built in semantic HTML and CSS, so the change should just require a CSS reference change. I'm working with a designer who will need to be able to see how it's looking, as well as a client who will need to be able to review content updates in the current l...
ASP.Net server side controls postback to their own page. This makes cases where you want to redirect a user to an external page, but need to Post to that page for some reason (for authentication, for instance) a pain.
An HttpWebRequest works great if you don't want to redirect, and Javascript is fine in some cases, but can get tricky i...
At work, we are often working on multiple branches of our product at one time. For example, right now, we have a maintenance branch, a branch with code just going to QA, and a branch for a new major initiative, that won't be merged for some time now.
Our web project is set up to use IIS, so every time we switch to a different branch, we...
I would like to implement an online ordering system for restaurants. I am starting to research this a bit, and wanted to throw it out here.
Is there any open source projects already started out there I could work with and contribute to?
Would it be easier to just roll my own?
-If so, any suggestions on where to start? ASP.NET, Ruby ...
The ASP.NET AJAX ModalPopupExtender has OnCancelScript and OnOkScript properties, but it doesn't seem to have an OnShowScript property. I'd like to specify a javascript function to run each time the popup is shown.
In past situations, I set the TargetControlID to a dummy control and provide my own control that first does some JS code a...
I encounter an error of the form: "The model item passed into the dictionary is of type FooViewData but this dictionary requires a model item of type bar" even though I am passing in an object of the correct type (bar) for the typed user control....
I want some links to include a fragment identifier. Like some of the URLs on this site:
http://stackoverflow.com/questions/5619/ie6-ssl-ajax-post-form-404-error#5626
Is there a way to do this with any of the builtin methods in MVC? Or would I have to roll my own HTML helpers?
Thanks
...
Hi,
I have a route that I am calling through a RedirectToRoute like this:
return this.RedirectToRoute("Super-SuperRoute", new { year = selectedYear });
I have also tried:
return this.RedirectToRoute("Super-SuperRoute", new { controller = "Super", action = "SuperRoute", id = "RouteTopic", year = selectedYear });
The route in the glo...
Hi,
I recently encountered a problem where a value was null if accessed with Request.Form but fine if retrieved with Request.Params. What are the differences between these methods that could cause this?...
I am building a server control that will search our db and return results. The server control is contains an ASP:Panel. I have set the default button on the panel equal to my button id and have set the form default button equal to my button id.
On the Panel:
MyPanel.DefaultButton = SearchButton.ID
On the Control:
Me.Page.Form.De...
I have a asp.net application that we've written our own logging module for.
My question is, where is the standard place to write a log file to? I.e. the website will be running as the anonymous user identity (e.g. IUSR on IIS7) and I need a place where I know it'll have permission to write to.
Cheers,...
Hi guys, as you can probably tell from my rep, I have just got my invite so I am a complete n00b! :D First off I would like to say thanks to Jeff and the team for what looks like is going to be an excellent site for the community.
So, my question:
I am still kinda new to the ASP.NET world, so I could be way off base here, but so far th...
I've just been learning about master pages in ASP.NET 2.0. They sound great, but how well do they work in practice? Does anybody have experience of using them for a large web site?...
Has anyone got anything better than creating a copy of the original datatable and then looping through it to create a distinct view ?
From what I've read and attempted, the dataview doesn't support distinct (currently system is in Studio.NET 2003 - looking to move to 2005 shortly but 2008 isn't on the radar - so if newer versions do, pl...
Hi,
I have an asp.net page with an asp:button that is not visible. I cant turn it visible with javascript because its not rendered to the page. What are my alternatives to solve this?
Thanks in advance,
Artur
...
I'm making a webform using a loginview, the problem is that because the control includes a grey bar telling you what type of control it is it throws of correctly formatting the page (It has LoginView1 at the top), is there a way to hide this on the LoginView as the contentPlaceholder does an excellent job for this.
I've found that you c...
Using preview 4 of ASP.NET MVC
Code like:
<%= Html.CheckBox( "myCheckBox", "Click Here", "True", false ) %>
only outputs:
<input type="checkbox" value="True" name="myCheckBox" />
There is a name there for the form post back but no id for javascript or labels :-(
I was hoping that changing it to:
Html.CheckBox( "myCheckBox", "...