|
SetExpressCheckoutReq setRequest = new SetExpressCheckoutReq();
SetExpressCheckoutRequestDetailsType setDetails = new SetExpressCheckoutRequestDetailsType();
setRequest.SetExpressCheckoutRequest = new SetExpressCheckoutRequestType();
i am using express checkout to use above methods for calling Express Checkout method what shd i do i mean which referance i shd add?
Thanks & Regards,
Prashant B. Lavate
Software Engineer
Mobile : +919423872257
Pune(India)
|
|
|
|
|
|
hello
pls tell me how to hide menu bar in asp.net 2.0 with c#
Gayatri
|
|
|
|
|
What menubar are you using?
usually you would just reference the ID of the control in c# and put control.visible = false.
|
|
|
|
|
Are you talking about Internet Explorer menu bar? If yes, then you can't. But you can do it using javscript in popup windows.
|
|
|
|
|
This is the first time I've had to ask for help, but this issue is really getting to me and I can't seem to find a solution, or any mention of it. Apologies for the essay...
A few weeks ago I inherited a webapp to maintain/update as necessary from someone who has long since left the company, I've had to learn what I needed as I went as the company doesn't really do webapps, mostly windows apps written in C# and MFC so they have about as much of a clue about this app as I do.
It's a lovely combo of html, css and classic asp/vbscript on a device running WindowsCE.
The problem: There's a requirement for the app that it must logout automatically after 2 minutes of being idle "no problem", I thought. The code is already in a nasty state, and I've done what I can but at this point a total rework is needed, for the time being it needs patching. So what I whipped up was a cookie that gets created upon login, and reinitialised after a new page is loaded (and the time hasn't expired).
Example:
Response.Cookies("MyCookie").Expires = DateAdd("n", 2, now())
In addition to this, one of the now unused frames contains a piece of script to refresh the page just after 2 minutes, effectively logging the user out when the page refreshes if it's been idle. Not a great solution, but it does the job for now. The client also requires this run under Firefox and IE7.
A few weeks ago during testing, I noticed that on Firefox, the cookie would not expire, and every 2 minutes or so the page would refresh and the app would still be logged in. IE7 however was fine. The problem was that the cookie's expiry was an hour longer than I told it to be... Unable to find a cause I assumed it was something existing in the app/firefox and decided to detect which browser was running and set different expiries for the cookie (2min for IE7, -58mins for FF). This worked for a day, then all of a sudden, FF wouldn't login, the cookie was expiring immediately, so I changed it back again. All was well, til now...
The same problem is now occurring in IE7, and once again, setting the cookie expiry to -58mins for IE7 "solves" it, but FF is fine this time. So I'm thinking there's a problem elsewhere causing this, and that I should look for the cause because the "workaround" of setting -58mins is no kind of solution at all, especially if the behaviour is not consistent.
Again, apologies for the essay Cheers for your help.
|
|
|
|
|
Is this a ASP.NET application? If yes, set the Session Timeout in web.config file and check for the session. Session are stored in server, so no need for writing scripts for different browsers.
|
|
|
|
|
Unfortunately it's not .NET, just classic ASP.
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
Sometimes debugging web applications may drive you nuts. I have seen so many issues in development machines. When ever I change cookies settings, I wipe clean from the client machines and start clean. While this have no merit, I would also delete the cache and start clean.
For added benefit, if you are using IE developer toolbar, you can wipe cookies only for a given server from the "cache" menu.
Yusuf
|
|
|
|
|
|
grr, youve been told about this already.
How is anyone supposed to make sense of that jargon you have put above
|
|
|
|
|
Hi,
If I would like to retrive the article from the database and display in - using asp.net like the link below
http://www.asp.net/
Or put some bullet that I create, how can I do that?
Thanks.
Regards,
Katelva
|
|
|
|
|
From your message above I can derive that you want the following:
1. Display an article which is stored in a database
(Dont store the actual article in the database, store the address for it and then just retrieve that as you would do with a normal field.)
2. Create a bullet point list for which the articles display in
(This is easy just write a loop to loop all articles in your database which match todays date and then in the loop put <li> and then the field name)
|
|
|
|
|
i am developing a web based application
where i use
i want to pass textbox ID which is in a grid view to the java script.
how it can be possible
Sourav ghosh
|
|
|
|
|
Don't repost.
Check Ignore HTML tags check box to post HTML code
please don't forget to vote on the post that helped you.
|
|
|
|
|
Would you not just use var myValue = document.getElementbyID('mytextBox').value;
|
|
|
|
|
No, because a GridView is a NamingContainer so will give a UniqueID to your textbox.
|
|
|
|
|
Yeah forgot about that, he would have to find the control within the gridview.
|
|
|
|
|
<asp:GridView id="GridView1" runat="server" Font-Size="X-Small" ForeColor="#333333" Width="802px" AllowPaging="True" GridLines="None" CellPadding="4" ShowFooter="false" AutoGenerateColumns="False" CssClass="grid-view" OnDataBound="GridView1_DataBound">
<EmptyDataTemplate>
<asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="Red" Text="No Data Found"></asp:Label>
</EmptyDataTemplate>
<Columns>
<asp:BoundField DataField="ORDER_NO" HeaderText="ORD_NO" ></asp:BoundField>
<asp:BoundField DataField="ITEM_NO" HeaderText="ITEM_NO" ></asp:BoundField>
<asp:BoundField DataField="BALTONS" HeaderText="BALTONS" ></asp:BoundField>
<asp:BoundField DataField="ORDDATE" HeaderText="ORDDATE" ></asp:BoundField>
<asp:BoundField DataField="DUEDATE" HeaderText="DUEDATE" ></asp:BoundField>
<asp:BoundField DataField="MATNR" HeaderText="MAT_NO" ></asp:BoundField>
<asp:BoundField DataField="DESCRIPTION" HeaderText="MAT_DESCP"><HeaderStyle Width="5000px" /><ItemStyle Width="5000px" /></asp:BoundField>
<asp:TemplateField HeaderText="PLANQTY">
<ItemTemplate>
<asp:TextBox ID="txtplanqty" runat="server" BackColor="#ffffcc" OnTextChanged="txtplanqty_TextChanged" AutoPostBack="true" Font-Size="x-Small" Text='<%# Eval("PLAN_QTY") %>' Width="70px"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="TRGT_PRD">
<ItemTemplate>
<asp:TextBox ID="txttrgtprd" runat="server" Font-Size="X-Small" onfocus="getdata(this)" OnTextChanged="txttrgtprd_TextChanged" BackColor="#ffffcc" Width="70px" Text='<%# Eval("TRGT_PRD") %>' AutoPostBack="true"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#EFF3FB" />
<EditRowStyle BackColor="#2461BF" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
<script language="javascript">
function getdata(obj)
{
var txt = document.getElementById(obj);
txt.value='0';
}
</script>
it is my code.plz help me
sourav ghosh
|
|
|
|
|
<asp:textbox id="txttrgtprd" runat="server" font-size="X-Small" onfocus="getdata(this)" ontextchanged="txttrgtprd_TextChanged" backcolor="#ffffcc" width="70px" text="<%# Eval("TRGT_PRD") %>" autopostback="true" xmlns:asp="#unknown"></asp:textbox>
function getdata(obj)
{
var txt = document.getElementById(obj);
txt.value='0';
}
note in the above snippet that you are passing a reference to the textbox (this) to the javascript method, hence you dont need the getElementById at all - you already have a reference to the element.
therefore, your javascript method can simply be
function getdata(obj)
{
obj.value='0';
}
or your textbox's onfocus could simply be:
onfocus="this.value='0';"
|
|
|
|
|
Please give more info about what you are trying to achieve, as often you dont even need the ID of the textbox. If you do, a textbox has a UniqueID property which you can use from Javascript
|
|
|
|
|
<pre>
<asp:GridView id="GridView1" runat="server" Font-Size="X-Small" ForeColor="#333333" Width="802px" AllowPaging="True" GridLines="None" CellPadding="4" ShowFooter="false" AutoGenerateColumns="False" CssClass="grid-view" OnDataBound="GridView1_DataBound">
<EmptyDataTemplate>
<asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="Red" Text="No Data Found"></asp:Label>
</EmptyDataTemplate>
<Columns>
<asp:BoundField DataField="ORDER_NO" HeaderText="ORD_NO" ></asp:BoundField>
<asp:BoundField DataField="ITEM_NO" HeaderText="ITEM_NO" ></asp:BoundField>
<asp:BoundField DataField="BALTONS" HeaderText="BALTONS" ></asp:BoundField>
<asp:BoundField DataField="ORDDATE" HeaderText="ORDDATE" ></asp:BoundField>
<asp:BoundField DataField="DUEDATE" HeaderText="DUEDATE" ></asp:BoundField>
<asp:BoundField DataField="MATNR" HeaderText="MAT_NO" ></asp:BoundField>
<asp:BoundField DataField="DESCRIPTION" HeaderText="MAT_DESCP"><HeaderStyle Width="5000px" /><ItemStyle Width="5000px" /></asp:BoundField>
<asp:TemplateField HeaderText="PLANQTY">
<ItemTemplate>
<asp:TextBox ID="txtplanqty" runat="server" BackColor="#ffffcc" OnTextChanged="txtplanqty_TextChanged" AutoPostBack="true" Font-Size="x-Small" Text='<%# Eval("PLAN_QTY") %>' Width="70px"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="TRGT_PRD">
<ItemTemplate>
<asp:TextBox ID="txttrgtprd" runat="server" Font-Size="X-Small" onfocus="getdata(this)" OnTextChanged="txttrgtprd_TextChanged" BackColor="#ffffcc" Width="70px" Text='<%# Eval("TRGT_PRD") %>' AutoPostBack="true"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#EFF3FB" />
<EditRowStyle BackColor="#2461BF" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
<script language="javascript">
function getdata(obj)
{
var txt = document.getElementById(obj);
txt.value='0';
}
</script>
it is my code & i want to pass the ID="txttrgtprd" to the getdata() function
thanks & Regards
Sourav Ghosh
|
|
|
|
|
Please send me source code for integrating ExpressCheckout API or any help
Thanks & Regards,
Prashant B. Lavate
Software Engineer
Mobile : +919423872257
Pune(India)
|
|
|
|
|
We cant just send source code to you, we are trying to help you not do the work for you.
Try searching google for some code and then come back here when you are struggling to implement it.
|
|
|
|
|
i am developing a web based application
where i use
<asp:gridview id="GridView1" runat="server" xmlns:asp="#unknown">
<column><asp:templatefield>
<itemtemplate>
function getdata(obj)
{
var txt = document.getElementById(obj);
txt.value='0';
}
i want to pass textbox ID which is in a grid view to the java script.
how it can be possible
Thanks & Regards
Sourav Ghosh
|
|
|
|