|
Textbox firing when an Enter key is Pressed....giv me a solution dat worked in both iexplorer and firefox.
Thankz in advance.
|
|
|
|
|
Masood Kochi,SSF wrote: Textbox firing when an Enter key is Pressed
Firing what? Your question is not clear. Please rephrase it.
|
|
|
|
|
You can write the JavaScript Code and Get the Value of TextBox
<asp:textbox id="txt" onkeypress="CheckEnter_Onclick(event)" runat="server" xmlns:asp="#unknown">
---- This is Javascript Function that show the Value of Textbox in alert Box when Enter Key is Pressed--------------
function CheckEnter_Onclick(e)
{
var key;
key=(e.which) ? e.which : e.keyCode;
if(key==13)
{
var x= document.getElementById('<%=txt.ClientID %>').value;
alert(x);
}
return true;
}
|
|
|
|
|
the user enters an url , and i want to get the html source code of that webpage(url) on button click. can we get the solution using innerHTMl ??? any ideas ??
|
|
|
|
|
|
|
Manish Thaduri wrote: can u be more specific. temme what exactly i hve to do..
Have you tried that suggestion? Spoon feeding is bad and we don't do it here. I have given you the class and method you need to work with. Look at the method's documentation and learn how to use it. If you face any issues, come back with specific questions. If you are not understanding the MSDN documentation and sample provided, you need to take a book and improve your knowledge.
|
|
|
|
|
|
Manish Thaduri wrote: so i need to pass the proxy ip,port no, username , password etc. and im working on it.. but cudnt resolve it !!
As I said, go with WebClient class. It is the easiest one. Use the WebProxy[^] class and set it to WebClient.Proxy property.
|
|
|
|
|
|
Manish Thaduri wrote: I need to use internet explorer object,shdocvw.dll & innerHTML !!
Your user is entering the required URL in text box and you need to get the HTML of that page on button click, right? If yes, WebClient or any request/response classes is the way to go. Alternatively, you can use JS and send AJAX request to the page. Get the response and read values from it. InnerHTML may work in this scenario(I haven't tried it). But I'd suggest the webclient rather than JS.
|
|
|
|
|
I think the main problem is that you obviously have many missing keys on your keyboard - or you are sending in your posts by txt msg
There is no charge for using full words
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
hi.......
how to use sharepoint connector to link excel and powerpoint in web as well as windows..using c#.net.If somebody knows some sample site plz help me out.Thanks in advance
Thanks and Regards
Ch.Gayatri Subudhi
|
|
|
|
|
Hi All,
How to (Stop/Disable) back button click from browser (IE/Firefox) after signout of my application. If any one of you knows plz respond me...
kannak
|
|
|
|
|
I suggest you to search this forum because this question gets asked almost daily. If you are so lazy to find where to search, click here[^].
|
|
|
|
|
Use this java script in you .aspx file
window.history.forward(1);
|
|
|
|
|
use window.history.forward(1) in javascript.
Prince
Team Lead
Quest Solutions
www.imaginethinkact.com
|
|
|
|
|
how to redirect pages with the help of link bottons
|
|
|
|
|
shabsk wrote: how to redirect pages with the help of link bottons
That's a basic stuff. Just write Response.Redirect("pagename") in the link button's click event handler.
|
|
|
|
|
That's simple. Just use 'Response.Redirct("xxx.aspx", false)'.
|
|
|
|
|
Hi,
By using
Response.Redirect("ur URL")
and
server.transfer("ur URL")
S Kumar
|
|
|
|
|
Hi, I would like to know how to call a stored procedure from asp.net ?
|
|
|
|
|
Use SQLConnection , Create SQLCommand , Set CommandType to Storedprocedure , Set CommandText to Stored procedure name. Execute the command.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
|
I am doing an ASP .NET application, where I want to display my grid view as with following requirements.
Paging is working for the grid, and page size is set to 10.
After 10 pages, it shows "..." three dots. I want to show next there always. If I go to page number 15, it should show
the first page as Previous.
If i go to the 11 page now it is showing some thing like this
First ... 11 12 13 14 15 16 17 18 19 20 ...
Here is my Pagerstyle settings for the grid
<pagersettings firstpagetext="First" lastpagetext="" mode="NumericFirstLast" nextpagetext=""Next"" />
Please help to fix this...Thanks in advance.
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
modified on Tuesday, April 21, 2009 12:11 AM
|
|
|
|