|
mpavas wrote: They have examples but not for SOAP requests
I don't understand. The method of encryption is not effected by the content being encrypted.
mpavas wrote: I mean where to specify code to send a Hash message to webserice
I don't understand. If you want to encrypt the message you would do it prior to sending the message. However there are mechanisms that can be used to encrypt SOAP messages like HTTPS so I have no idea why you are trying to do it yourself.
led mike
|
|
|
|
|
Oks, thanks..A friend asked me to hash the message before sending it across to web service. I think I miss understood it. Instead I should hash the message then send it across using HTTPs calling a web service. There is no need to hash a soap message itself. Is this right?
Thanks for your effort in answering the question.
Regards,
Pavas
|
|
|
|
|
mpavas wrote: There is no need to hash a soap message itself. Is this right?
Not if the Service is setup (configured) to use HTTPS no. If it is not then you can't do it.
mpavas wrote: A friend asked me to hash the message before sending it across to web service.
Sure that's an alternative way to do it. You would just execute the encryption library on the message content before setting the content of the Web Service message body.
led mike
|
|
|
|
|
When you say message content you mean the value which i will pass in a web method call right?
For example I will do a hash on the stock name as below:
string stockname ="CIPLA"
servce.getSotckdetails( HASH(stockname) )
Regards,
Pavas
|
|
|
|
|
|
Thanks a lot! Thank you. You solved my understanding with terminology problem.
Regards,
Pavas
|
|
|
|
|
Hi,
I want to create a button and associate an event handler with it, actually I want to be able to update/remove items from database using update/remove buttons like this:
Item1:
Description: ........................... [Remove] [Update]
Item2:
Description: ........................... [Remove] [Update]
.
.
.
Item N:
Description: ........................... [Remove] [Update]
So how to create a button for each item?
Thanks
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
You mean without using the designer to drag and drop them on the form? Yeah that's tricky yes? You can do that by writing code, it's something that software developers know how to do. Maybe you can hire one to do that part for you eh?
led mike
|
|
|
|
|
Thanks for the answer, but I want to do it myself
Any ideas?
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
Mohammad A Gdeisat wrote: Thanks for the answer, but I want to do it myself
Sure but you can't even do the Googling yourself[^]
Good luck
led mike
|
|
|
|
|
Yes, Thanks
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
This seems like a ridicously easy thing to do but I'm stumped...
I have a databound checkbox that I am displaying in a Gridview (template) column. I want to be able to fire a server event whenever a user clicks on a checkbox. Since the gridview control doesn't fire an event when the user clicks on the checkbox, my app can't figure out which row was clicked. The OnCheckedChanged event does work but I can't find a way to pass the key field to the event to identify which checkbox was changed.
Any clues on how how to get a checkbox in a GridView control to fire a gridview event when a checkbox is updated by the user?
Thanks in advance!
|
|
|
|
|
The CheckBox control has an AutoPostBack[^] property. Set it to true to get the control to initiate a postback when it is clicked. Wire all your checkboxes to the same event handler. When a postback occurs, the sender argument of your event handler will contain a reference to the control that initiated the postback.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Thanks for responding.
I don't need the value of the checkbox (in the sender object). Instead, I need the value of the key field for the row clicked (which is in a hidden field in the GridView control).
Thanks
|
|
|
|
|
On Checkbox_Checkchanged event you can get the handle of the current Gridview row using Sender object, eg.
this.Parent.NamingContainer which is gridviewRow
Postmaster
http://www.programmingknowledge.com/[^]
|
|
|
|
|
Thanks for the help. Got it!
|
|
|
|
|
I need to perform some operations when the browser leaves an ASP.NET page. How can I embed such validation? In other words, is there any event out there that is triggered when the browser leaves the page? (And not Unload, since such event is only triggered when the page is removed from memory.)
Thanks in advance.
Stupidity is an International Association - Enrique Jardiel Poncela
|
|
|
|
|
There is no server side event that can detect when the user leaves a page. Once the page is rendered, the server has no knowledge of the actions taken in the browser.
You can, however, detect when a page is unloaded from client script. Take a peek at the onunload event, especially as it pertains to the document object. If you hook that event, you can make an asynchronous call to the server and perform whatever tasks that you need to.
Hope that helps.
--Jesse "... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi
|
|
|
|
|
Ok, I'll try that OnUnload event thing you mention. Thanks a lot!
Stupidity is an International Association - Enrique Jardiel Poncela
|
|
|
|
|
This is what I have in web.config:
<sessionstate mode="InProc" cookieless="false" timeout="20" />
Also this is the piece of code in all my page_loads after the Login,
Dim emp as Employee = Session.Item("employee")
If emp is Nothing Then
Response.Redirect("Login.aspx")
End if
After like 20 seconds or so, no matter whatever page I am in, if I click a button or something to cause a Postback I am redirected to the Login page. Am I missing something here?
I am using VS 2005, IIS 6.0 (on a remote server)
1. I have checked the server, it shows time out of 20 mins
2. If I add a breakpoint at Session_End event in my Globals.asax its hit after 15-20 secs and Application_End event is hit immediately
Thanks for reading!
|
|
|
|
|
Nobody ha! I posted the same question in the Asp.net forums. Is my problem weird or am I being just plain stupid???
|
|
|
|
|
place the page_load code in page_init event handler
Put the code in an IF statement
IF NOT Page.IsPostBack is Nothing
|
|
|
|
|
Thank you so much for the reply!
1. I already have that IF block and porting that piece of code to Page_Init did not solve my problem.
2. No matter what I do (even if I do nothing/keep causing postbacks), Session_End event in my Global.asax is hit in like 20 seconds or so, EVERY time. I am confused. It used to work well with VS 2003. I have both installed in my PC, btw and my IIS version is 6.0 and I have configured my IIS for this particular project to be of Version 2.0
|
|
|
|
|
Adding something which I think is relevant
My website is under the Default Website group in IIS and when I right-click on the default web sites to view the properties, it shows the ASP.Net version as 1.1 and the new website I am developing is on VS2005 and framework 2.0. Problem, is it?
|
|
|
|
|
can be.
via start->run->cmd
go to cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
run aspnet_regiis -i
framework 2.0 is now default.
|
|
|
|