|
acutually our senario is that we r using online purchase functionallity, in which our payment provider site want all the customer details like credit card no, amount in xml file, which should be submited on a specific url.
when we submit xml file we also get a xml document in response.
i m nt getting any solution , bcoz i used xmlhttprequest bt it dsnt support cross domain connectivity.. thanks for ur help
|
|
|
|
|
instead of using numeric function in all pages , i just want to create a js file which contains a function of numeric check and this function has to be called in all asp.net pages for numeric check, kindly guide me on include how to include the js file on the pages, call the necessary JavaScript functions
modified on Wednesday, September 30, 2009 12:27 AM
|
|
|
|
|
Guide you with what? Creating the file? Using the file?
Create the file, include it on the pages, call the necessary JavaScript functions.
only two letters away from being an asset
|
|
|
|
|
If you want to create a custom numeric textbox just create a custom control and include the script file for validation.
|
|
|
|
|
Google broken? Try Bing.
Seriously, a very small amount of research and you will find the answer. Try it, you might actually learn something.
We are not here to do your work for you and it will make you a better, more productive developer if you learn to research. If you try something and have difficulties with it, we'll help, but don't ask for something that you could have answered for yourself with five minutes of research.
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: Google broken? Try Bing.
Brilliant.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi,
I want to display all data (starts from the letter enter in TextBox) from database under the TextBox as popup while enter a text in textbox.Its simply same as Google search TextBox.I do not want to use "Autocomplete" , and need to do this by without using AJAX.Kindly help me
Thanks & Rgds
Elam
|
|
|
|
|
Without using ajax, you cant fetch data from database if you want to avoid a post back. One possible alternative is to load the data from database into a hidden field on the page load and implement the “auto complete” with javascript. Another method is to post back after each key stoke. It is the bad design anything that I can imagine. What is the problem for ajax? Ajax tool kit has an auto complete control. It is easy to use.
|
|
|
|
|
Elamanand wrote: and need to do this by without using AJAX
I want to fly to America, but I don't want to use a plane. I guess that's tough for me.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: I want to fly to America, but I don't want to use a plane. I guess that's tough for me
Use Other Transport..! It Will Take Some more Time..! But You Will Reach..! Thts the thing You Are Going to Say?
|
|
|
|
|
LOL - that must be it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hello,
I have a couple of link buttons and I am trying to get them to open a page in a new window. I know how to do this with a normal link, but I also have some very simple code behind that I need to run (Set a session variable).
I am writing this in C#, and have had no luck getting the page to open with the session variable passed.
Let me know if you have any suggestions, or if you know how to do this through a normal link. Thanks for your time.
C# Code
protected void lnkEnterprise_Click(object sender, EventArgs e)
{
Session["Owner"] = 1;
Response.Redirect("~/SampleDashboardDetails.aspx");
}
JM
|
|
|
|
|
JohnQuar1 wrote: Response.Redirect("~/SampleDashboardDetails.aspx");
Well, this is your problem. Obviously, given how ASP.NET works, redirecting in your C# code can never open a new window, that's just impossible. You need to open a new window in your client side code.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I agree with you, and I would write some small javascript to do this, but I need to pass that session variable as well. The page I am trying to open has a gridview that has a session variable parameter as an input, so I need to pass the session before the page loads so that the gridview is immediately populated.
|
|
|
|
|
how about using
this.ClientScript.RegisterStartupScript(this.GetType(), "aa", "window.open(\"yourpage.aspx?s=" + Session["val"].ToString() + "\");", true);
means passing through querystring?
|
|
|
|
|
javascript:window.open('SampleDashboardDetails.aspx', ...) is the only option to you.
You have to do this from client side as Christian suggested.
you can use
this.ClientScript.RegisterStartupScript(this.GetType(), "aa", "window.open(...);", true);
to write the script response to the client.
|
|
|
|
|
So I'm a little confused, does this.ClientScript.RegisterStartupScript(this.GetType(), "aa", "window.open(\"~/SampleDashboardDetails.aspx?s=" + Session["Owner"].ToString() + "\");", true); go on the page I am trying to open in the page load?
Thanks.
JM
|
|
|
|
|
I found a solution. I ended up changing the link buttons to links and passed a variable through the link, then grabbed the variable and stored it to the session variable I was using in a Page_PreInit function.
Send it from first page:
<asp:HyperLink ID="lnkEnterprise" runat="server" NavigateUrl="~/SampleDashboardDetails.aspx?Owner=1" Target="_blank">Enterprise Details</asp:HyperLink>
Receive on second page:
protected void Page_PreInit(Object sender, EventArgs e)
{
Session["Owner"] = Request.QueryString["Owner"];
}
Thanks for your help guys.
|
|
|
|
|
Hi,
<table id="myTable" border="1">
<tr> <b><td>Name </td> <td>Age</td></b></tr>
<tr> <td>Shivani </td> <td>25</td> </tr>
<tr> <td>Naren </td> <td>28</td> </tr>
<tr> <td>Logs</td> <td>57</td> </tr>
<tr> <td>Kas</td> <td>54</td> </tr>
<tr> <td>Sent </td> <td>26</td> </tr>
<tr> <td>Bruce </td> <td>7</td> </tr>
</table>
The above table is in my aspx page. One button name is download. Once i click the download button it will be download and write and save into excel file?? Is it possible??
Hope yours reply. Please make soon reply me. Its very urgent.
Every Successful Person Have A Painful Story
|
|
|
|
|
From where are you getting these data ? What is the data source? If it is from Data Table you can easily import it to Excel file.
|
|
|
|
|
Its not a data table. It is an aspx page that is --.table have an id. How can i import to excel. Not only data. Whatever it is in this table how write and save it to excel???
Every Successful Person Have A Painful Story
|
|
|
|
|
If you don't have a data source, if it's plain old html in your page, then the answer is almost certainly string mashing code, or perhaps regex..
Of course, if you just have a html page in your website, then you can just manually create your excel file from that data, as it's not going to change.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
I have two treeviews in my page which are working inside an update panel. The issue is,the vertical scroll bar is not displaying properly for the right most treeview and it is happening only in IE6. In IE7 it is working fine. Is there any workaround for this? Please suggest.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
use
style.overflow = scroll;
|
|
|
|