just check registration.aspx.cs and let us know....
Sebastian T Xavier
Posts
-
Cant find onClick function in C# -
Enter-PSSession : Connecting to remote server failedHello, I was trying to connect to a machine(192.168.1.194); using powershell using the following query Enter-PSSession 192.168.1.194. But I got the following error. Enter-PSSession : Connecting to remote server failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.At line:1 char:16 + Enter-PSSession <<<< 192.168.1.194 + CategoryInfo : InvalidArgument: (192.168.1.194:String) [Enter-PSSession], PSRemotingTransportException + FullyQualifiedErrorId : CreateRemoteRunspaceFailed Can you help me to solve this? Any help would be appreciated. Thanks & Regards Sebastian
-
Is there a way to restrict the user from changing virtual directory name:thumbsup: Yes. Thanks for your time. :-D
-
Is there a way to restrict the user from changing virtual directory nameAt last I have found this. Just removing installation folder node from user interface editor will do this for us. Thanks for your support. Regards Sebastian
-
Is there a way to restrict the user from changing virtual directory namebut this is a typical scenario....
-
pdf rendering optionsIts doable with abcpdf. But i don't remember the exact code. Can you please refer there help, which will be automatically installed.
-
pdf rendering optionsI have used abcpdf for the same purpose. Its very easy to integrate. Meanwhile, which tool have you used to get your pdf output from webpage?
-
Web Page Similarity in all browsersyou need to program it such a way that it is compatible all main browsers
-
Is there a way to restrict the user from changing virtual directory nameIs it possible to restrict the user from changing virtual directory name while installing a web application using a web setup? Regards
-
C Sharp Login with different user privilegeIt will be better to define different roles & privileges; Then we can show / hide different tabs based on the privileges of the logined user.
-
How we can check whether exchange server is installed in a system using c#.How we can check whether exchange server is installed in a system using c#.
-
Issue with regular expressiongreat help....worked...thanks
-
Issue with regular expressionGot the idea, Thanks... again i have another question... Here is my updated expression...
string x = "user = 'sa' password='e X65dere!@#$%^&*()' server = 'localhost'";
Regex rx = new Regex(@"password=\'([a-zA-Z0-9\\!@#$%^&*|() _'""*-+{}<>,.;/?:~`\[\]\\\\]+)\'");
var r = rx.Match(x);
if (r.Groups.Count > 0)
{
var g1 = r.Groups[0];
MessageBox.Show(g1.ToString());
}In this case it will match for every small & large cap letters, numbers and special characters except = . If the password contains = the expression fails... can you please help?
-
Issue with regular expressionI have solved this by changing the expression as follows...
Regex rx = new Regex(@"password='([a-zA-Z0-9\\%^&_*]+)\'");
Regards Sebastian
-
Issue with regular expressionHello, I have an issue in regular expression matching...
string x = "user = 'sa' password='eX65dere' server = 'localhost'";
Regex rx = new Regex("password=\'([a-zA-Z0-9]\\_+)\'");
var r = rx.Match(x);
if (r.Groups.Count > 0)
{
var g1 = r.Groups[0];
MessageBox.Show(g1.ToString());
}while executing this, I have got the following error message. parsing "password='([a-zA-Z0-9]\_+)'" - Unrecognized escape sequence \_. the following will work fine, when i try to add _ to the expression the exception occurs.
Regex rx = new Regex("password=\'([a-zA-Z0-9]+)\'");
Can anyone help me on this?
-
crone fileWhat is your exact requirement? for scheduling tasks it will be better creating a desktop application & using windows scheduler to schedule it....
-
Problem with Exchange server monitoringHello All, I have a problem with Exchange server 2007. I was trying to execute the following query get-mailbox | FL. This query was working when I tried it in the Exchange server's power shell console after executing following query Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin. But I need it to be executed from a remote machine, so I have executed it from my powershell console , as follows... $server='192.168.1.23';$pwd= convertto-securestring '123' -asplaintext -force;$cred=new-object -typename System.Management.Automation.PSCredential -argumentlist 'exchangeserver\Administrator',$pwd; invoke-command -computername $server -credential $cred -scriptblock {Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin get-mailbox | FL} But, this query fails with the following error...
A positional parameter cannot be found that accepts argument 'get-mailbox'.
+CategoryInfo :InvalidArgument: {:} [Add-PSSnapin], ParameterBIndingException
+FullyQualifiedErrorId: PositionalParameterNotFound,Microsoft.Powershell.Commands.AddPSSnapinCommandI have modified this query again and added a ; after the snapin add section. $server='192.168.1.23';$pwd= convertto-securestring '123' -asplaintext -force;$cred=new-object -typename System.Management.Automation.PSCredential -argumentlist 'exchangeserver\Administrator',$pwd; invoke-command -computername $server -credential $cred -scriptblock {Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin; get-mailbox | FL} This is also fails with the following error.
Active Directory server exchangeserver.xxxxxx.local is not available. Error message: The supplied credential is invalid.
+ CategoryInfo : NotSpecified: <0:int32> \[Get-MailBox\],ADOperationException + FullyQualifiedErrorId : A2B6F75B,Microsoft.Exchange.Management.RecipientTasks.GetMailbox
Then I have removed the add-snap-in section from the command and executed again. $server='192.168.1.23';$pwd= convertto-securestring '123' -asplaintext -force;$cred=new-object -typename System.Management.Automation.PSCredential -argumentlist 'exchangeserver\Administrator',$pwd; invoke-command -computername $server -credential $cred -scriptblock {get-mailbox | FL} Now it throws another error message.
The term 'get-mailbox' is not recognised as the name of a cmdlet, function,
-
File upload using httpThanks a lot.... Its a great help Let me try to implement it Best regards Sebastian
-
File upload using httpYeah, It should serve the purpose .... Let me try to implement it Best regards Sebastian
-
File upload using httpHello All, I need to upload files to a server using http in a windows application. Is that possible? I have got some examples using HttpPostedFile , but that is in web application. The code is given below...
if( filMyFile.PostedFile != null )
{
HttpPostedFile myFile = filMyFile.PostedFile;
int nFileLen = myFile.ContentLength;
if( nFileLen > 0 )
{
byte[] myData = new byte[nFileLen];
myFile.InputStream.Read(myData, 0, nFileLen);
string strFilename =
Path.GetFileName(myFile.FileName);
FileStream newFile = new FileStream(strPath,
FileMode.Create);
newFile.Write(Buffer, 0, Buffer.Length);
newFile.Close();
}
}I have placed an openfiledialog in a windows form and used the following code..
FileInfo fileInf = new FileInfo(openFileDialog1.FileName);
But how I can assign this FileInfo to HttpPostedFile. Any help would be appreciated. Thanks in advance... Sebastian