|
Hi all.
first, sorry for my bad english.
My client wants the source code of my application. I told him that I can release it under a payment. But my client will not be allowed to sell my application to anyone. I want implement something in my web app that guarantee this.
Can someone help me?
Best regards,
Marco Alves.
|
|
|
|
|
Marco2250 wrote: I want implement something in my web app that guarantee this.
I dont think so that anything will gurantee this !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
You can't put anything (ethical) in the code.
|
|
|
|
|
Hi, here is my scenario...
i have the following in my solution...
App1 - normal application
App2 - normal application
CoreApp - library containing classes and 'core' functionality
App1 and App2 talk to each other via their sql server databases.
now, sometimes app1 and app2 may be installed on the same server, sometimes they are not.
so, if they are installed on the same box there will be a connection string to the other apps db in their web.config file.
if the connection string does not exist then i must call the other apps web service which will perform the db insert for me.
i made an interface, lets says its called IComms
this interface is implemented by the web service and the class that performs the direct insert.
it defines the method signature that allows app1 to put something in app2s database.
so to send a message i write this code in App2..
<br />
<br />
dim proxy as IComms<br />
'see if we have connection string for app1 database<br />
<br />
if getConfigSetting("App1ConnectionString").length = 0 then<br />
'use web service<br />
proxy = new app1.webservice<br />
else<br />
proxy = new CoreApp.dbCalls<br />
end if<br />
<br />
proxy.sendmessageToApp1("hello")
this is all very well, but the reference to app1s web service in app2 does not create an implementation of the interface on the proxy class.
is there any way round this or should i just design the app without the use of an interface?
---Guy H (  ---
|
|
|
|
|
Hello all
I am in desperate need of help with this problem.
I would like to do the following but can't figure out how to do it.
(This is the part I know how to do):
Present a ListBox which contains a items associated with a database table.
The user can remove items such that the listbox might contain less than all the items from the database table.
(I don't know how to do this part):
Present the items from the listbox in a datalist control using a objectdatasource, associated with some sort of select method in a BLL object, which will then work on a typed dataset.
I think it would be smart if I could give a collection of id's taken from the listbox, and send it as an argument to the select method in the BLL object. The select method should then return BLL objects, with all the data associated with the chosen id's from the listbox
Hope my describtion makes sence, and that you guys can help.
Thanks in advance
/dresen
|
|
|
|
|
Hi Friends
I want to bind the String with the DataGrid , in such a way
that i have one string say "125:test" . I want this string to be bound with the datagrid , so that , each and every character , means
1 2 5 : t e s t , will store individually ,in the individual cell of the datagrid.
Please , guide me.
Thanking you,
Param
param
|
|
|
|
|
Hi,
You can create rows and cells using a loop where in you parse a given string and put 1 character in the cells text property. But please note that there will be problems if your strings are not of same length. If that is the case, you will have to enter the blank values in cells where there are less number of characters. Hope I am clear enough and the solution can be implemented
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
store the characters in a table (1 char per column), then databind it.
|
|
|
|
|
Hi,
I dont remeber but you can directly attach a string as a data source to a data grid as --
value = "123:test"
dataGrid1.datasource=value
here value is declared to be a string variable. I read it somewhere on the other forums here on CP (not able to remember the exact link)
But i dont think that this will work in case if multiple rows are needed. Dont know ! i havent checked it myself !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
hai
its working out,i checked
string value1="123 test";
DataGrid1.DataSource=value1;
DataGrid1.DataBind();
with regards
|
|
|
|
|
Hi All
I have one datagrid.I have one string like value= "123;value".whenever I bind this string with datagrid like
datagrid.datsource=value
datagrid.databind
when my grid is displayed one character per cell.
But I want whole string in one cell.How can i do that?
pls reply me
Thanks
monika
|
|
|
|
|
This must be homework if this exact question has been asked more than once by different people.
|
|
|
|
|
Hi All,
i dont know whether this is right forum or not for my problem. But please give me the solution for me.
What is the use of Microsoft Enterprise Libraries over Ado.Net in .Net.
Can anybody please give me the solution.
Thanks in Advance
Thanks and Regards
Venkat
|
|
|
|
|
ELs are basically wrappers to make easier calls.
|
|
|
|
|
Can i use one page of vb.net and another of c#.net in a single asp.net project ?
Thanks in advance
"I firmly believe that
any man's finest hour,
the greatest fulfillment of all that holds dear,
is that moment,
when he has worked his heart out in a good cause
and lies exhausted in the field of battle - victorious..."
|
|
|
|
|
Yes you can, the framework read the directives individually over the html Code page, what server Synthax code to use.
keep Learning and you never will be out of date...
|
|
|
|
|
Britney S. Morales wrote: keep Learning and you never will be out of date...
Very true !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
Thanks
Also please tell how to add a vb.net page to c#.net web project
"I firmly believe that
any man's finest hour,
the greatest fulfillment of all that holds dear,
is that moment,
when he has worked his heart out in a good cause
and lies exhausted in the field of battle - victorious..."
|
|
|
|
|
i have 2 listboxes,whichever item i select in the first listbox should appear in the second and the item in first listbox shud be removed,im using this piece of code
<br />
For iCount = 0 To lststates.Items.Count - 1<br />
If lststates.Items(iCount).Selected Then<br />
lstselectedstate.Items.Add(lststates.Items(iCount).Text)<br />
'lststates.Items.Remove(lststates.Items(iCount).Text)<br />
lststates.Items.RemoveAt(iCount)<br />
End If<br />
<br />
Next<br />
but im getting this error
"Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"
can anyone pls rectify it,its very urgent
kavitha
|
|
|
|
|
Say that when you start "lststates.Items.Count - 1" = 10; this will be computed only once. When you remove an item it gets the index out of range. Try counting down from lststates.Items.Count - 1 to 0.
|
|
|
|
|
Hi
Once u removed the item from listbox u need to decrease the count (count--)to 1. because once u removed the item count will be reduced. i think below code would be helpful to u. the code which i added is put in bold and underline
For iCount = 0 To lststates.Items.Count - 1
If lststates.Items(iCount).Selected Then
lstselectedstate.Items.Add(lststates.Items(iCount).Text)
'lststates.Items.Remove(lststates.Items(iCount).Text)
lststates.Items.RemoveAt(iCount)
iCount=iCount-1
End If
Next
|
|
|
|
|
hello sir,
thanks for u r reply
i tried u r code ,but im getting the same error,pls help
kavitha
|
|
|
|
|
This because your for loop iterates through the items before any have been removed. Once an item is removed, the high index will be out of bounds.
|
|
|
|
|
Hi,
When I tried to use a dll created from one vb application in my vb.net project,it is giving error like "registration Failed". I have tried to register using regsvr32.Then it is hsowing registered successfully..But when I tried to add a reference it is giving the same error.
How to resolve this..Any idea/steps are much appreciated..
Thanks,
RPM.
|
|
|
|
|
hello friends : the exception is as follows :
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type System.Security.Permissions.ReflectionPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SecurityException: Request for the permission of type System.Security.Permissions.ReflectionPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.]
System.Security.SecurityRuntime.FrameDescHelper(FrameSecurityDescriptor secDesc, IPermission demand, PermissionToken permToken) +549
System.Type.GetType(String typeName, Boolean throwOnError) +0
System.Web.Configuration.HandlerMapping..ctor(String requestType, String path, String typeName, Boolean defer) +141
System.Web.Configuration.HttpHandlersSectionHandler.InternalCreate(Object parent, XmlNode node) +506
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300
on local pc , everything is working fine. I have tried options like "setting trust level full" and "adding <securitypolicy>" but both these option not work with asp.net 1.1 web.config file. also installation of .net framework is fine. plz help
regards,
max
|
|
|
|