I ask myself how do I create a view model correctly.
For instance, I have an edit view with some text boxes and a dropdownlist.
Should I separate the dropdown list into a new view model or shoud the edit view have one viewmodel with a list for the dropdownlist?
Or generally speaking, should I separate special input fields in separate ...
Im using multiple ASCX controls on one page, and the javascript clashes obviously if I use two of the same control. So Ive changed it all to proper OOP javascript so they dont interfere, but my problem now is how do I do the HTML side of things. Both ASCX's will make a div called "foo". So whats the usual way around this? Am I meant to a...
What is the best and easiest-to-use video player for popular video extension in asp.net?
...
I am looking to learn OOP design and development. I would like to know if there are any real world tutorials out there (I googled but didnt find what I was looking for).
For example I am developing an inhome application (something like an HR application)
So I would have a person object, that would be inherited to become an employee, a...
Hi
I found this( http://scheduling.codeplex.com/) and I can't find if this can be used on a shared hosting site. I am not sure if this is just some wrapper that wraps around the windows scheduler or if it is some library that sort of mimics the windows scheduler and can be used on a shared hosting site.
...
Hi How can make the asp.net routing engine ignore routes with an extension of the type
/pathtofile/filename.aspx/morepaths
I know this is hardly a real scenario but I need to know for another similar issue for an autogenerated url
Thanks
...
I have a number of radio buttons belonging to a group. I don't have them in a list, as they are all scattered around the page. How can I easily get the selected radio button?
...
How could I get System.Data.EntityClient in Enterprise Library Configuration dropdown list for DataAccess? I want create connectionstring like below
connectionString="metadata=res://*/MyNet.csdl|res://*/MyNet.ssdl|res://*/
MyNet.msl;provider=System.Data.SqlClient;provider connection string="
Data Source=localhost;Initial Catalog=M...
Hi guys,
I have a StoredProcedure called "usp_posts_getall" and it has 1 parameter called "@thisCategoryID"
in my "thisCategoryID", any values other than 0(zero) will return all the records in my Posts table.
Now I have a category menu items and each time I select, I set the value in my Session name called "SelectedCID".
So, How Do I...
Hello everyone!
I am searching for a simple and free ASP.NET C# shoutbox/chat application, so i can integrate it in a small gamming portal.
The only important thing is that it should have some sort of "banned list", where the admin can ban and unban people.
So far i got no luck on finding something with this ban functionality, i hope ...
In an asp.net webform app, I need to restrict the logged in user to show data only for their company. This is a primary key of my topmost table. How to I set that based off the user. I imagine I would have another table with some user ID mapped to company ID?
...
I'm basically wondering what the best way to deploy an Asp.Net Web Site is, mostly from the point of view of security. Right now, I'm trying to publish the website using Visual Studio 2010. Could someone direct me to a good tutorial on how to do this securely? For example, can it be done over an encrypted connection via Visual Studio?...
Hi,
I have two drop down lists on a page. The behavior is as follows:
select something in list 1
list 2 is enabled
select something in list 2
button is enabled
I am doing the above with autopostback enabled on the drop down lists. To toggle the button I use the code below:
if (ddlAvailablePrograms.SelectedValue != string.Empty)
{
...
I am currently facing a problem. How to get the latest selected value from a asp.net checkbox list? From looping through the Items of a checkbox list, I can get the highest selected index and its value, but it is not expected that user will select the checkbox sequentially from lower to higher index. So, how to handle that?
Is there any ...
MSDN Library has a walkthrough for bulk updates using a SqlDataSource.
http://msdn.microsoft.com/en-us/library/aa992036(v=VS.90).aspx
Not sure what I'm doing wrong,
but I keep getting an error at:
currentID = Convert.ToInt32(GridDocuments.DataKeys(0).Value)
Are there other resources for SqlDataSource bulk updates?
...
I am trying to create virtual subdomain with UrlRewriter.net.
Can anyone please help me with, how can i create virtual subdomain on the fly using urlrewriter.net
Example: Blogger website generates blogname.blogspot.com I would like to do something similar.
If that is not possible with URLRewriter than can anyone help me that how to ...
I'm new to Linq. I have searched and searched the web for a solution, and can't find anything. I have a Linq query and I want to insert a row ("Select User") to the top before I pass it to the drop down list. I've been trying to use the Union but to now avail (it keeps telling me that my object doesn't support the Union method). My code,...
I am using jQuery Uploadify and it doesn't re render the FileUpload control after UpdatePanel's updated.
here's the js code:
$(document).ready(
function () {
$("#").uploadify({
'uploader': 'scripts/uploader.swf',
'cancelImg': 'images/cancel.png',
'buttonText': 'B...
How to create HTML fieldset and legend in asp.net code behind? and add controls in that fieldset?
...
How can i assign value to javasctipt variable from code-behind (C#)?
<script type="text/javascript">
String.prototype.trim = function () { return this.replace(/^\s+|\s+$/, ''); };
function ConstantByCode(_Obj, _Div) {
var pl = new SOAPClientParameters();
_Obj.value = _Obj.value.trim();
pl.add("Code", _Obj.value);
pl.add(...