Saturday, February 7, 2015

Remote desktop through router

http://www.msfn.org/board/topic/16211-remote-desktop-connection-through-netgear-router/

Friday, February 6, 2015

Coded activity

Add a reference to System.Activities

using System.Activities;
using System.Activities.Statements;

using System.Activities.Expressions;

Thursday, February 5, 2015

Wednesday, February 4, 2015

search string in javascript

if (mystring.search("target") > 0){

user control

x.ascx
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="x.ascx.vb" Inherits="xxx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<script language="javascript" type="text/javascript">  

x.ascx.vb
Public Class xxx
    Inherits System.Web.UI.UserControl

in ascx the control grid view when bind to data source, then in ascx Javascript has access to the data source

ex id is part of the data field in the data souce
then you can  have javascript in ascx file

if (id !=null)
{
}
else
{
}


VS 2010 search in files

control shift F

Monday, February 2, 2015

ASP.NET MVC logged in user




http://stackoverflow.com/questions/263486/how-to-get-current-user-in-asp-net-mvc

@user.identity.Name is the logged in user.