|
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 ![Smile | :)](https://www.codeproject.com/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
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
|
|
|
|
|
diya_dev wrote: i want to pass asp array in javascript function as parameter.
and access the array values in that function.
You can't pass the actual array from server code to client code. You have to create client code that recreates the array.
diya_dev wrote: its in asp and not asp.net
Then you should post in web development forum, not the ASP.NET forum.
diya_dev wrote: reply fast
Unless you want to pay me, I reply when (and if) I feel like it.
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
hello everyone
i m developing a web application in which i m using crystal reports for reports.
till yesterday it was working fine.but from today it gives me the error
"Error in File E:\Documents and Settings\SERVERHO3\ASPNET\Local Settings\Temp\temp_f07331d1-84fb-4c1d-8ea3-970e931d27d0.rpt: The request could not be submitted for background processing"
and surprise to see that i dont have any "Local Settings" folder in aspnet folder.
So i am confused with this error.
plz rectify my error
thank u very very much in advance
|
|
|
|
|
HI, is there a ASP.NET equivalent for PHP's echo command?
Or else is there a way to write on a web page without using a label or a textfield?
Thanks for any reply!!
|
|
|
|