|
Windows apps use windows controls, web apps use web/html controls.
|
|
|
|
|
thank you both for your answers! i will redo them then and fix a few issues on the way...
thanx again
|
|
|
|
|
hi friends
i get code for buynow button of paypal
i am getting a problem to use it.
my code is
<form name="_cart" action="https://www.paypal.com/cgi-bin/webscr" method="post"><br />
<input type="hidden" name="cmd" value="_cart"><br />
<input type="hidden" name="upload" value="1"><br />
<input type="hidden" name="currency_code" value="USD"><br />
'<br />
'<br />
'<br />
</form>
error is:-
Invalid postback or callback argument. Event validation is enabled using <pages enableeventvalidation="true"> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
plz give me right solution
thanks
Pathan
|
|
|
|
|
Put
<br />
<%@ Page EnableEventValidation="false" %> <br />
in your page directive.
|
|
|
|
|
I have tried it but got no any response.
i mean when i put this code in page directory,buynow button does not work properly.user is not redirected to paypal site.
have anybody integrated with paypal?
plz help me
pathan
|
|
|
|
|
Hi,
Is is possible to call a method such as OnServerValidate? Or any "Protected Sub" for that matter?
Thanks.
|
|
|
|
|
Yes, it is possible. However, I would not do that. If you have code that you would like to execute in more then one place put that could in a private method.
|
|
|
|
|
If you have the time and feel like it, please have a look at my other post. It is the reason I made this post. No one has yet replied.
It is called "Custom Validator". Thank you for the reply.
|
|
|
|
|
|
I have an error class in my asp.net with c# project. It is responsible for handling errors.
Could I handle it, when any exception raises, my class method raise?
If yes, tell me how?
Thanks
Rastgar
|
|
|
|
|
Add a Global.asx file to your application. Put your code in the following method.
void Application_Error(object sender, EventArgs e)
{
// Code that runs when an unhandled error occurs
}
|
|
|
|
|
I know application error event.
But there is a problem with it. I should just redirect to another page in this event else, the page which error is raised, will be redirected to error page. But I’d like my old page is still shown. And I show the error in another page. I know that I should write in this event:
Response.Write("window.open('errorpage.aspx')");
But the page that error raises from that will be still redirected to error page or ASP.Net default errorpage. What should I do to prevent from this redirection?
Thanks
Rastgar
|
|
|
|
|
In your web.config file add the following.
<system.web>
<customErrors mode="Off"></customErrors>
|
|
|
|
|
As I mentioned, if I set this tag off, the asp.net shows the error in old page.
But I want the old page still be shown.
If you get confused, plz read my first and second message again to find out my question correctly. I should clear asp default error and show my old page. But how? Server.clearerro() method just clear the asp error but my old page never be recovered.
thanks
rastgar
|
|
|
|
|
Hi,
I have successfully bound a Dropdown List with table data. I have also inserted extra options. I cannot seem to find anything which allows me to have one of the database options being the default value selected.
I know I can do this:
Dim Lst As New ListItem
Lst.Text = "All"
Lst.Value = "0"
Lst.Selected = True
BUT, How do I specify the SELECTED value to be one which was loaded from a database?
Thank you.
|
|
|
|
|
dropdownlist.Items.FindByValue("value") gives me item in C#, i think you can find that in VB too and then set LstItm.Selected to true.
Regards
Shajeel
|
|
|
|
|
Hi, Thank you for the reply
Worked like a charm! Was also very pleased to find "FindByText" as an option. Thanks again mate
|
|
|
|
|
I'm having a problem with using AJAX with classic ASP
I have a dropdown for country which when selected shows the state.
But when, I'm using the AJAX script the "xmlHttp.responseText" actually shows me the HTML code and the client script of the entire page which is not desirable.
Can anyone send me the code for populating one dropdown based on the selection of another dropdown in classic ASP and AJAX.
any help would be appreciated.
Thanks & regds,
Anirban Deb.
|
|
|
|
|
hi all,
coding for sending emails is simple as smtp class is provided in dotnet framework vs-2005. but i am facing problem in writing code for retrieving mails using pop3 or mapi or otherwise.
pls help me in this matter.
language preffered is vb.net.
thanks in advance for help.
regards,
gauri.
gauri
-- modified at 5:06 Wednesday 20th December, 2006
|
|
|
|
|
Hi Dear All,
I need a so very urgent.
I want a put DropDownListBox in GridView at runtime.
When i click on button, new row will be display in gridview with DropDownListBox at runtime and i also binding database in DropDownListBox with MS-Access.
please reply asap.
I hope you all understood my question.
Thanks
Vipul
|
|
|
|
|
Hi,
I need to use a Custom Validator to check whether data is present in a Textbox or not. I am using a custom validator because the field is only required IF the user logged in is from a certain user group.
Anyway.. The OnServerValidate method only fires up when data is present in the textbox. I NEED the method to also fire up when data is not present.
Any ideas? Thank you.
|
|
|
|
|
|
Have you tried it with ValidateEmptyText = true?
|
|
|
|
|
For some reason my custom validator is not recognising the ValidateEmptyText Property.
Im assuming this is not to be implemented in the Front-End. I am trying something like:
Me.cst1.ValidateEmptyText = True [Doesn't Work]
Dim cst1 As CustomValidator<br />
Dim blnStatus As Boolean<br />
blnStatus = cst1.ValidateEmptyText<br />
cst1.ValidateEmptyText = blnStatus
Still has problems. Any suggestions? .. still
Thank you once again for your time.
|
|
|
|
|
i want to pass asp array in javascript function as parameter.
and access the array values in that function.
its in asp and not asp.net
reply fast
diya
|
|
|
|