|
at localhost when i run it i get the following error...
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.
while running online it the page just get postback without showing any error.
|
|
|
|
|
Can you post the update code as well, so that I check if it is missing anything?
|
|
|
|
|
<form id="payForm" action="" method="post">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="bussiness" value="xyz@xyz.com" />
<input type="hidden" name="item_name" value="Tanzanite" />
<input type="hidden" name="currency_code" value="USD" />
<a href="https://www.sandbox.paypal.com/cgi-bin/webscr">
<input type="hidden" name="amount" value="100.00" />
<input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" />
</a>
</form>
either i give the url in form action or not it makes no sense....
|
|
|
|
|
<form id="payForm" action="" method="post">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="bussiness" value="xyz@xyz.com" />
<input type="hidden" name="item_name" value="Tanzanite" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="amount" value="100.00" />
<a href="https://www.sandbox.paypal.com/cgi-bin/webscr">
<img border="0" src="http://www.paypal.com/en_US/i/btn/x-click-but01.gif"
alt="Make payments with PayPal - it's fast, free and secure!" />
</a>
</form>
Try this! it works!
HTH!!
|
|
|
|
|
thanks alot it works..............
one more question if i want to provide the values dynamically what shud i do in this code.
like wan to give email,amount etc.... dynamically...
|
|
|
|
|
Assuming you get the values from some data source on the server, just put the values from the server side code.
|
|
|
|
|
how to convert binary data sotred as blob data field in mysql db to readable ata format and store it to file
|
|
|
|
|
Hi,
How will show the custom message in validation summary Validator
Is it possible?
|
|
|
|
|
You need to set the validation messages for the custom validator control and validate the control. Validation summary control will poll all the validation controls for status and display the messages for all the controls with status invalid.
|
|
|
|
|
I want to access the methods of a dll that is not managed. Seems to be
vb6 from my best guess and what I know about the program. That part I
have managed to figure out. If I drag the x.dll to my bin folder, the
interpreter wrapper is created, etc. I can access the methods in the
dll just fine. The problem is the database connection.
For informational purposes: The dll is compiled for a vbscript .asp
website. There are a few methods in the dll that just manipulate the
input, but most make a db call to get or set or update, etc. data in
the db. The dll expects an ADODB connection. The asp files are setup
such as:
------------------------------------
set DllObj = server.CreateObject("dll.class")
set connect = server.createobject("ADODB.Connection")
connect.open "SystemDSNName","user","password"
'call to method in dll here
value = DllObj.method(data1, data2)
connect.close
------------------------------------ It is using a DSN but just as easily could be a DSN-Less connection.
My problem is that the dll expects the connection to be open and
available to it. Can I make a ADODB database connection available and
open for this dll in a vb.net asp.net website. Basically, I need to
use the business logic and db data changes through this dll, but want
to make the front end in asp.net. Anybody willing to provide a
detailed example of how to do this in VB and VS 2008, .net 3.51, on a
Windows server 2008 R2 with IIS7?
Thanks!
|
|
|
|
|
Hey guys,
I've got a datagrid that needs to be accessible i.e. A user should be able to tab into the rows of that datagrid one at a time. Right now the tab order works for every single link on the page (including the columns of datagrid which happened to be links) but not the rows which have a few clickable links in them (in other words a user can click on those colums and they need to work with tabs alss)
Is there an easy way to fix that?
Can someone please help!
Tina
modified on Wednesday, December 16, 2009 10:38 PM
|
|
|
|
|
Hi All,
Im trying to get the value of the selected row in my gridview:
lblErrorImport.Text = gvColumns.SelectedRow.Cells[1].Text;
Bud im getting this error:
Object reference not set to an instance of an object.
How can i fix this?
Thanks.
|
|
|
|
|
Something is null. Debug and check. I guess it should be selected row.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Hi D@nish,
I checked it, nothing is null...don't know what the problem is here
|
|
|
|
|
Like d@nish is saying.
verify if you have a selected row.
if (gvColumns.SelectedRow.Count > 0)
{
lblErrorImport.Text = gvColumns.SelectedRow.Cells[1].Text;
}
|
|
|
|
|
Hi,
In Asp.net 2.0 :
- you can catch asynch Event on implementing ICallBackEvent Handler.
- the Event LoadViewState is raised after a POSTPACK
So if you create 2 Custom web controls ( "WC1" and "WC2"):
-WC1: inherits from "WebControl" and implements " ICallBackEvent Handler"
-WC2: inherits from "ListControl" and implements " ICallBackEvent Handler"
-override the LoadViewstate in the 2 controls and put a breakpoints.
On the click event of WC1, you call a Javascript Method that send a Callback to the Server
exemple:
<wc1:Webcontrol1 Id="Webcontrol1" onclick="javascript:_doCallback(..)" ..>
Normally When you click on WC1, the LoadViewState event will be not raised because is not a POSTBACK event, BUT strangelly in the WC2 the LoadViewState method is raised!
So the conclusion is, All controls that inherits from "ListControl" raise the LoadViewState method evenif there is no postback!
WHY ?
|
|
|
|
|
Hi,
I right clicked on my project and added a dataset called
'PlntAccuracySWDst.xsd' and dragged the 'PlantInventoryAccuracy' table
that I want to work with from the server Exploerer on to it.
I am trying to access this dataset in my code behind
PlntAccuracySWDst mySWdst = new PlntAccuracySWDst();
For some reason I can't see 'PlantInventoryAccuracyTableAdapter' and
'PlantInventoryAccuracy' datatable objects when I do the 'mySWdst.
(dot)' in my codebehind file. Am I missing some thing here? I have
Select, Insert, and Update stored procs defined in the database and I
want to be able use those here. But as a first step I am unable to
access the DataTable and Table adapters.
Looks like I need to generate the Schema as a typed dataset. But when
I right click on the dataset I do not see the 'Generate Dataset'
option for me to select. so there is no PlntAccuracySWDst.cs file was
created under my 'PlntAccuracySWDst.xsd' file in my solution explorer.
I guess that is the reason why (becuase there is no Schema
generated) I can't access it from my code behind file.
Later on I found out that the the 'Generate Dataset' option is under
the View/Tollbars/DataDesign in my VS 2005. I just selected it and
this action placed a small tool bar under the Standard Tool bar. The
'Generate Dataset' is one of the icons on it. But unfortunately it is
disabled. I am not sure what I am missing here. I need to be able to
create the Schema by clicking the 'Generate Dataset' option.
I am still looking for help. I have searched online all talk about the steps creating typed datasets but none of the articles address what to do to 'Generate Dataset'. Any help is appreciated.
Thanks,
L
|
|
|
|
|
Hi,
I want to know how can I have single active session for single user?
For ex.
Consider I login to website and after successful login my ID is stored in session and If I leave this session in active mode and login to the website using another PC I am able to login to the site and both of my session are active. How can I abandon previous session?
Is there anyway I can achieve this?
Thanking You!
Rock Star
|
|
|
|
|
the server allow only single session!!!
|
|
|
|
|
Nope
I am just using one session in application to store user id thats it.
Rock Star
|
|
|
|
|
Hi
Why did not you deny that log-on when someone have logged on via that account already?
Mohammad Khansari
|
|
|
|
|
I dont want to hit my database for it. without hitting my database I want to achieve this functionality.
Rock Star
|
|
|
|
|
You can create a static class that contains
SessionIDs and UserIDs(or IPAddresses) that logged on
and use that for checking log-on.
like
static class SessionList
{
static ArrayList Sessions;
...
}
OR
You can use Applications State for that
Mohammad Khansari
|
|
|
|
|
Just put the ip to storage while the user logs in. Also for every request, check if the client ip is there in the server.
If the user logs in from another computer, just replace the ip with the new one.
Thus any request from the other client will be rejected as it first checks to the database value which is changed.
|
|
|
|
|
That's a great idea
But is there anything else so I dont have to hit the database.
Rock Star
|
|
|
|