|
hai, i m using ASP.NET with C# (.net 2005, 2.0 framework).
when user press the BACKSPACE key or ALT+LEFT ARROW, it should not goto the previous page.
how to proceed this? help me - KARAN
modified on Tuesday, April 1, 2008 1:47 AM
|
|
|
|
|
You can never do that. They are client side events.
|
|
|
|
|
How to create Pdf in windows application? Please Help me
thanku
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
The best advice I can give you is to post in the right forum. This forum is for ASP.NET questions.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
NO BOdy in that forum so i post Here My Dear...........
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
|
Answer:
Dim Filename As String = Application.StartupPath + "\Export.pdf"
Dim _SaveFileDialog As New SaveFileDialog
_SaveFileDialog.Filter = "Apache Files (.pdf)|.pdf"
'sss.Filter = "HTML Files (.htm)|.htm|" + _
' "Active Server Pages (.asp)|.asp|" + _
' "Apache Files (.pdf)|.pdf|" + _
' "Perl Script (.pl)|.pl|" + _
' "All Files|"
_SaveFileDialog.ShowDialog()
Filename = _SaveFileDialog.FileName
If Windows.Forms.DialogResult.Yes Then
Dim myDoc As New Document()
PdfWriter.GetInstance(myDoc, New FileStream(Filename, FileMode.Create))
myDoc.Open()
myDoc.Add(New Paragraph(" "))
myDoc.Add(New Paragraph("User Responses are as Follows:"))
myDoc.Close()
End If
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
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!
|
|
|
|