View previous topic :: View next topic |
Author |
Message |
dib.ashish
Joined: 23 Jun 2014 Posts: 6
|
Posted: Wed Jul 02, 2014 12:39 pm Post subject: install license in ASP.NET App_Data directory |
|
|
Hello, I am being using below link:
http://www.infralution.com/phpBB2/viewtopic.php?t=1706
For method 1,
The link has mentioned to install license in App_Data folder, but can you give me step by step procedure in order to complete it? |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Jul 09, 2014 12:13 am Post subject: |
|
|
To install the license you need to add a web page to your ASP.NET project with a text box (to enter your ILS license key) and a button to submit. Then add a button click handler as follows:
Code: | protected void _installLicenseButton_Click(object sender, EventArgs e)
{
string key = _licenseTextBox.Text.Trim();
if (!string.IsNullOrEmpty(key))
{
try
{
if (!LicenseUtilities.InstallILSLicense(key))
{
_licenseLabel.Text = "Invalid License Key";
}
}
catch (Exception ex)
{
_licenseLabel.Text = "Error Installing ILS Key: " + ex.Message;
}
}
} |
or in VB.NET
Code: | Protected Sub _installLicenseButton_Click(sender As Object, e As EventArgs)
Dim key As String = _licenseTextBox.Text.Trim()
If Not String.IsNullOrEmpty(key) Then
Try
If Not LicenseUtilities.InstallILSLicense(key) Then
_licenseLabel.Text = "Invalid License Key"
End If
Catch ex As Exception
_licenseLabel.Text = "Error Installing ILS Key: " + ex.Message
End Try
End If
End Sub
|
Then publish and run your project on the web site and enter the license key. _________________ Infralution Support |
|
Back to top |
|
|
|