|
how do we provide security to a web service
with regards
|
|
|
|
|
|
I know i need to install Atlas for .net framework 2.0 but how can i use ajax for .net framework 1.1?
Can any1 refer to some examples?
Best Regards
3ala2
|
|
|
|
|
Yes u can.
u have to add some lines in web.config's <httphandler> tag and follows the code rules for ajax.
regards
ravi
|
|
|
|
|
Can u give me a link that shows an example of implementation?
Best Regards
3ala2
|
|
|
|
|
|
Dear Friends,
I am using VS 2005 and ASP.NET 2.0. I've a form in which there is a DataGridView and a button. There is an ID column shown in the datagridview, which is of no importance to the user, so i've hide it.
Now what i want is that whenever user clicks a cell in a row of datagrid, i get the value of ID column of that row. I dont want to do a post back, instead i want to get the ID value at the client end using Javascript or so.
How can i determine the value of hidden coumn of datagridview at client end.
Imtiaz
|
|
|
|
|
Hi,
I have a two level dropdown menu.When i expand the dropdown menu, the menu goes behind the dropdown list which is there. For all other controls it works fine except dropdown list.Please suggest me a relavant code to tackle this problem.
If anyone has got any code to solve this problem then plz share it wit me.
Thanks,
Riz
Riz
|
|
|
|
|
I am having an intermittent server error occur, that is becoming extremely annoying. Obviously, I've googled this, but I can't find anything that resolves the issue permanently. Some of the things I have tried include:- Restarting IIS ('iisrestart' command).
- Terminating the aspnet_wp process.
- Ensuring that the Indexing Service is not running.
- Deleting all the files and folders under C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/photogallery/
- Deleting all files from C:\Inetpub\wwwroot\PhotoGallery\bin
One or more of these 'solutions' will temporarily fix the issue, but it will always come back, sometimes immediately and sometimes after half an hour or more. I don't believe it is a permissions issue, or it would not work at all...
There must be someone out there who can solve this, once and for all!
A copy of the error follows:
Server Error in '/PhotoGallery' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Access is denied: 'PhotoGallery'.
Source Error:
Line 196: <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 197: <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<font color=red>Line 198: <add assembly="*"/>
</font>Line 199: </assemblies>
Line 200: </compilation>
Source File: c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config Line: 198
Assembly Load Trace: The following information can be helpful to determine why the assembly 'PhotoGallery' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = PhotoGallery
(Partial)
LOG: Appbase = file:LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: PhotoGallery
LOG: Attempting download of new URL file:LOG: Attempting download of new URL file:LOG: Attempting download of new URL file:LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: PhotoGallery, Version=1.0.2521.34692, Culture=neutral, PublicKeyToken=null
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
|
|
|
|
|
You might try to copy the assembly PhotoGallery.dll from the bin to the temp folder C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/photogallery/419f933f/edac69a7/ whenever you have the error. I know that this error only occurs with the ASP.NET 1.1, it is related to the way the CLR locates the assemblies at runtime.
|
|
|
|
|
hi,
Anyone please suggest an good article for the difference between inheritance vs composition in .net
ram
|
|
|
|
|
Then you have to explain what you mean by composition.
---
b { font-weight: normal; }
|
|
|
|
|
He's talkin about Aggregation
|
|
|
|
|
|
Hi,
How to update UI(ASP.NET) on the fly whenever data get changed in back end(SQL Server)? Please Suggest some approach.
Thanks,
Manoj K.
Analyst Programmer
SYNTEL Ltd.
|
|
|
|
|
That's not really possible. The HTTP protocol does not allow the server to send anything to the client without the client asking for it.
You can make the client poll the server for changes, but that of course means that there is a delay as you can't send requests often enough to make the changes appear instantly.
There is a technique called server push that would allow you to send data from the server, but that means that you run a component in the browser that has a constant connection to the server. This of course limits the number of clients that the server can handle.
---
b { font-weight: normal; }
|
|
|
|
|
|
Guffa wrote: That's not really possible.
SqlDependency is ideal for caching scenarios, where your ASP.NET application or middle-tier service needs to keep certain information cached in memory. SqlDependency allows you to receive notifications when the original data in the database changes so that the cache can be refreshed.
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: Guffa wrote:
That's not really possible.
SqlDependency is ideal for caching scenarios, where your ASP.NET application or middle-tier service needs to keep certain information cached in memory. SqlDependency allows you to receive notifications when the original data in the database changes so that the cache can be refreshed.
Yes, that helps to keep the data in the web application up to date, but still the browser knows nothing about the update.
---
b { font-weight: normal; }
|
|
|
|
|
The best approach would be to use Ajax in order to get the client to Poll the server for changes at regular intervals (once every second say). Ajax lets you update the UI without refreshing and reloading the entire page. Some tutorials on Ajax...
http://www.codeproject.com/Ajax/
Be careful if you do this that you don't overload the server and database with requests.
|
|
|
|
|
|
Look at CacheDependency or SqlDependency if you are using 2.0
only two letters away from being an asset
|
|
|
|
|
i have been assigned a task that is mmm ... any way the problem was solved by creating a web service that uses and "Initiates" a static class which contains a "Queue" for handling FIFO Scenario and a timer that is used to perform some action on the first 4 elements of the queue every specific period .. and i ithink it works fine for now .. but the question is :-
does the life time of this static class -and the queue member of it offcourse - depends on the webservice ?? or what ?? and if not .. what will determine the life time of this static class and its members ??? brifley if this class considered in the memory locations preserved for the use of the web service when will this memory released ??
i'm afraid that this static class and the queue member may be removed form memorey and then loosing this data ..
thanks in advance for your expected cooperation
|
|
|
|
|
Davids_Maguire wrote: i'm afraid that this static class and the queue member may be removed form memorey and then loosing this data ..
Yes, you should be afraid.
The static variable will remain intact as long as the web application is running on the server, but the server may shut down the application any time it feels like it. In that case, the next call to the web service will be starting a new instance of the application, and the static variable will be empty.
---
b { font-weight: normal; }
|
|
|
|
|
thanks so much for help ..
but you said
"The static variable will remain intact as long as the web application is running"
i don't think you mean the web application that calls the WebService
but the static variable will remain in memory as long as the server that hosts web service not the - web application -is running .. right ??
and thanks again
|
|
|
|