|
Hi
I would like to know how to put validation group in Wizard1 SideBarButtonClick.
I have three wizard stpes.I have used requidred field validation control on each steps . When I Click steps two it validates steps one . I mean to say , the steps two is not active .
rajesh
|
|
|
|
|
Hello, If I need to hash a SOAP message with SHA1 what needs to be done?
Regards,
Pavas
|
|
|
|
|
mpavas wrote: Hello, If I need to hash a SOAP message with SHA1 what needs to be done?
Just a wild guess here but maybe you need to use the encryption libraries. Wait, you do know what a library is right?
led mike
|
|
|
|
|
These are few:
using Microsoft.Web.Services2.Security.X509;
using Microsoft.Web.Services2.Security.Tokens;
using System.Security.Cryptography.Xml;
using Microsoft.Web.Services2.Security;
Looking for some peace of code...which will help to move ahead
Regards,
Pavas
|
|
|
|
|
mpavas wrote: Looking for some peace of code...which will help to move ahead
Did you look at the documentation on MSDN for those classes and namespaces? They often contain example code.
led mike
|
|
|
|
|
They have examples but not for SOAP requests...I mean where to specify code to send a Hash message to webserice...
Regards,
Pavas
|
|
|
|
|
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
|
|
|
|