|
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.
|
|
|
|
|
I want to send mail and read mail for from and subject fields from
SMTP,Exchange server and lotus note in application, anybody have any idea
about this ....any site where i can find solution...i serached alot but not
find any good solution...
pallavi
|
|
|
|
|
Sending mail can be done very easily by using System.Net.Mail.
Receiving mails is a little bit complicated but not so much. You can use Outlook dll or OpenStmp opensource framework for that.
|
|
|
|
|
thanks Michael
can i use exchange server ,lotus notes for reading mail's content in same way as we use smtp.. as i dont know much about exchange server and lotus notes
pallavi
|
|
|
|
|
I have some experienced with Microsoft Exchange Server. I think I used outlook dll or Opensmtp in that project.. but no idea about Lotus.
|
|
|
|
|
|
Hi There,
I am looking for a little help with direction on how to do the above.
Basically I have a sql database which contains a table of properties - this table contains a description col, a group col and the type of custom control to use. The customer has control over this table and can add extra entries to this table, therefore these extra properties need to be displayed in the htlm.
Currently I am creating ASP repeaters in the code behind, as for each of the different groups returned from the table these need to be within a panel that can be collapsed - I have no idea how many different groups will be required - this is why I have to do it in the code behind.
Also within each group, becuase I dont know what type of control I need to add until the data is returned from the database I also add these controls in the code behind.
If this explaination makes any sence to anyone : is there a better way of doing this - as the properties page takes too long to render?
Thanks
Janet
|
|
|
|
|
DixonJM wrote: this table contains a description col, a group col and the type of custom control to use.
Will your table look like this ?
Description Group Control
-------------------------------
A textbox TxtGroup TextBox
DixonJM wrote: Currently I am creating ASP repeaters in the code behind,
If I understood you properly, I don't think the need of a repeater. You can create table's from codebehind by putting HTML code to Response. One more question, if you are making all control dynamic, how you will take value from the control. I think ASP.NET won't maintain state for dynamically created controls ? Is it ?
|
|
|
|