Monday, March 26, 2012
net session \\servername /delete
Thanks,
Chris
Hi,
Net session command is used to display and delete (if needed) a client
connected to your machine. This command can not be used to show the sessions
connected in a remote machine.
You can do this in a remote machine using the utility RCMD.EXE coming along
with NT resource kit.
I am not sure about windows 2000, can you please post this query in Windows
2000 public groups to get a better responce.
Thanks
Hari
MCDBA
Thanks
Hari
MCDBA
"Winn, Chris" <chris@.edugration.com> wrote in message
news:O5x#liQGEHA.2876@.TK2MSFTNGP09.phx.gbl...
> Anyone know how to perform this on a remote server?
> Thanks,
> Chris
>
net session \\servername /delete
Thanks,
ChrisHi,
Net session command is used to display and delete (if needed) a client
connected to your machine. This command can not be used to show the sessions
connected in a remote machine.
You can do this in a remote machine using the utility RCMD.EXE coming along
with NT resource kit.
I am not sure about windows 2000, can you please post this query in Windows
2000 public groups to get a better responce.
Thanks
Hari
MCDBA
Thanks
Hari
MCDBA
"Winn, Chris" <chris@.edugration.com> wrote in message
news:O5x#liQGEHA.2876@.TK2MSFTNGP09.phx.gbl...
> Anyone know how to perform this on a remote server?
> Thanks,
> Chris
>
Saturday, February 25, 2012
Need to write value of session variable to SQL record
Each user who inserts a new SQL record from the FormView control needs to have their UserID in one of the fields of the record. I have the user ID stored in the Session("UserID") variable. I am having trouble finding the right way to get this done. I have tried using a hidden text box but I can't seem to assign the value. I have tried the Insert Parameters but that will not accept <%# Session("UserID") %> as a DefaultValue. Any ideas would be helpful. Thanks.
Try handling the ItemInserting event of your FormView where you can programmatically set the SqlDataSource.DefaultValue to your Session variable value. For example: protected void FormView1_ItemInserting(object sender, FormViewInsertEventArgs e)
{
SqlDataSource1.InsertParameters["UserID"].DefaultValue = Session["UserID"].ToString();
}|||Worked great with "(" instead of brackets "[". Thanks!|||I'm glad it worked out. My example was in C#. I guess you needed VB sample instead.|||You could of also created a SessionParameter and done it without any code at all.|||
Motley wrote:
You could of also created a SessionParameter and done it without any code at all.
Brilliant!!!