|
in my application i am storing values in a cache variable.i want to retain the value till the application closes. it is coming correctly. the problem is when another user takes the same application cache variable is havingthe previous users cache value.can i create new instance of that cache variable? or any other method?..........
|
|
|
|
|
Hi, Do you mean each user is seeing the same cache contents & that's not what you want?
If so place what user currently placing in the cache into the users session.
|
|
|
|
|
i want to store large amount of data means dataset .that's why i am using cache variable.
|
|
|
|
|
This may not be elegent but could you stick the dataset into the cache and use the datatable default view Rowfilter property to get the user specific stuff?
private DataView getUserDataFromCache(string user)
{
DataView dv = Cache["Dataset"].Tables[0].DefaultView;
dv.RowFilter="UserID='" + userid + "'";
return dv;
}
|
|
|
|
|
Hi,
I am developing an application using vb.net. it generates an exe for running the project we have to execute that exe properly.My problem is that now i want that a particular user can use my exe for one month only after that it will show an message that you have to install again that exe. so i want some help for implementing that in vb.net. how can i do that.
Thanks in Advance
|
|
|
|
|
To make things simple, a registry key is the way to go. It must be encrypted in a decryptable way. Invent your own cryptography algorythm, this way not everyone can figure out what the encryption means. Do NOT give the key a name that describes the program, or simply give a number as the key's name.
|
|
|
|
|
Hi guys and Gals Im new to this so here goes, I already have a site of my own www.ukcoldwar.org.uk This I built myself on frontpage, each page is indivdually built which when wanting to change logo's etc makes it very hard....
So my question is this. I want to build a new site where the hearder anf ooter are standard and the content changes.... I have been looking round the site and am totally lost.. Can any one point me in the right direction ??
Regards Duncan
|
|
|
|
|
Which tool do you want to use developing your website... Are you still using frontpage or do you have Visual Studio or something?
|
|
|
|
|
Hi,
If you are using Visul Studio 2005 then by using the Master Pages you can complete your task.
Regards,
Sandeep Kumar.V
|
|
|
|
|
Hi Friends,
How can i Convert a Number(Like 98) to a ASCII equivalent char("a")
Thank in advance..
Amit Metkar
3i-infotech, Mumbai.
|
|
|
|
|
Cast that to char
int a = 98;
char c = (Char)a;
Response.Write(c.ToString());
|
|
|
|
|
Thanx
but we can do it another way ,
using Encoding Class having GetString(byte[]) method.
acually i tryed this one after posting this Q
Anyway thanx..
Amit Metkar
3i-infotech,Mumbai.
|
|
|
|
|
sys.webfroms.pagereqestmanagerservererrorexception: an unknown error occurred while processing the reqest on server.the status returned from the server was 500
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
|
|
hi friend good morning
i am using ajax panel where i have a text box.when i input like this:- < and abcd <avcd html="" starting="" greatethan="" and="" abcd=""
then="" http="" error="" 500="" occurred....error:-
"sys.webfrom.pagereqestmanagerserver="" error:an="" unknown="" occurred="" while="" processing="" the="" request="" on="" server,the="" status="" code="" returned="" from="" server="" was:500"
help="" me=""
<div="" class="ForumSig">Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
Hi, All
I have Developed one Web application in Asp.net 1.1 . Now the requirement is, I want to make license for this application.
like, I can give license for 1 month, 6 month, lifetime or Demo version who want to buy or try this application.
or if u know other way to licensing to this web application.
please give replay for this.
Thank You
Sachin Patel.
Forte Interactive Pvt. Ltd.
Baroda.
|
|
|
|
|
I don't think Implementing licencing for webapplications is not an easy job. Make me clear with this
1. How you will give your application ? Fully compiled, or with source code
2. Where users host it ? on their server or your server space ?
One Idea to implement this is by WebServices . Your webapplication should be able to send request to a remote webservice resides on your server. This webservice should check whether the user is authorized to use the application.
|
|
|
|
|
Re 1. I will give if Fully Compiled (setup) not with source code.
Re 2. I think users host it on their own server or who had interested to host on our server space.
Yes, i know that it will implement with Webservices. but i not well familiar with webservices, i have never use webservices.
If u have some other idea's to provide this application to customer with licensing then please let me know....
thank yor
sachin
|
|
|
|
|
Optimum solution would be using webservices. It is very simple to create a WebService than creating entire ASP.NET website. You have to call the webservice method which validates the licence information on each page load. So let's frame it out like this
PageLoad() -> CheckValidLicence() -> [ WebService ] -> WebMethodLicenceValidate(UserId)
In WebMethodLicenceValidate() function you need to check the requested user having permission to continue using the product. Send a value back to the page and check this value on the page load. You can navigate user to Licence expired page if webservice returns no access message. For more information on Creating and Consuming webservices please read this[^] excellent article by Scott Mitchel.
|
|
|
|
|
Hi
I have produced a table which allows me to select the current user or delete the user from the table
But i am unsure how to handle both events, i have the delete working, but when i try to run the select method, it will run both the delete and select methods, how do I handle these correctly my asp code is as follows
<asp:TemplateColumn HeaderText="Delete User">
<ItemTemplate >
<asp:linkbutton id="cmdDel" runat="server">Delete</asp:linkbutton>
</ItemTemplate></asp:TemplateColumn>
<asp:TemplateColumn HeaderText ="View user Profile">
<ItemTemplate>
<asp:LinkButton ID="cmdSelect" runat="server" >Select</asp:LinkButton></ItemTemplate></asp:TemplateColumn>
</Columns>
<PagerStyle HorizontalAlign="Left" />
<AlternatingItemStyle BackColor="ActiveBorder" />
<HeaderStyle BackColor="Navy" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
</asp:datagrid>
and my vb code is
Sub DataGrid1_ItemDataBound(ByVal sender As Object, ByVal e As DataGridItemEventArgs) Handles dgPriv.ItemDataBound
Dim l As LinkButton
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
l = CType(e.Item.Cells(6).FindControl("cmdDel"), LinkButton)
l.Attributes.Add("onclick", "return confirm('Are you sure you want to delete this item?');")
End If
End Sub
Sub dgpriv_ItemCommand(ByVal sender As Object, ByVal e As DataGridCommandEventArgs) Handles dgPriv.ItemCommand
Dim iid As Integer = dgPriv.DataKeys(e.Item.ItemIndex)
Dim litErr As New Literal
Dim myConnection As New MySqlConnection("Server=localhost;;database=ftp1;")
Try
Dim param As New MySqlParameter
Dim myDeleteCommand As MySqlCommand = New MySqlCommand("sp_delete", myConnection)
myDeleteCommand.CommandType = CommandType.StoredProcedure
param = myDeleteCommand.Parameters.Add("?p_id", MySqlDbType.VarChar)
param.Direction = ParameterDirection.Input
param.Value = iid
myConnection.Open() 'Open the connection
myDeleteCommand.ExecuteNonQuery() 'Delete the record
myConnection.Close() 'Close the connection
Catch ex As Exception
litErr.Text = ex.Message
MsgBox(ex.Message)
End Try
refresh()
End Sub
Sub getUser(ByVal sender As Object, ByVal e As DataGridCommandEventArgs) Handles dgPriv.ItemCommand
MsgBox(dgPriv.DataKeys(e.Item.ItemIndex))
End Sub
|
|
|
|
|
boyindie wrote: i have the delete working, but when i try to run the select method, it will run both the delete and select methods,
Yes it will fire same ItemCommand event. You need to check the CommandName inside this event. Do like
if e.CommandName = "Delete"
'Delete
End If . Make sure that you are setting command name for the link button's
|
|
|
|
|
hi,
when ur doing any datagrid operation rowdatabound, itemdatabound, and if ur select then selectedindex changing fires
so if u r doing something like delete , update in itemdatabound event then
better to check first which operation u r performing,
how to check this,
if ur using templates for delete column then the button in that template has property CommandName give any name(Delete) & check the same at itemdatabound event
if ur not using templates then bydefault its command name is "Delete" for Delete Button
<br />
if(e.CommandName == "Delete")<br />
{<br />
}<br />
if(e.Commandname == "Update")<br />
{<br />
}<br />
Amit Metkar
3i-infotech, Mumbai.
|
|
|
|
|
Hello!
How ca I do a query in crystal report where I will set a condition on what report data it will show?
Let say I have a textbox that will specify a particular date so may report will show the indicated date.
Kindly give me a tutorial.
Thanks.
|
|
|
|
|
isaii wrote: Let say I have a textbox that will specify a particular date so may report will show the indicated date.
I suggest you to query DB and get result for the indicated date. Get results to a DataSet. Now set report source as this DataSet.
|
|
|
|