|
DO you want it in javascript or server side
in javacsript Register the client script
TextBoxId.Attributes.Add("OnClick", "javascript:yourfunctionName");
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
can u help me in how to include Javascript Function of keypress in asp.net.
Thanx
prabumj@gmail.com
-- modified at 2:20 Monday 24th September, 2007
|
|
|
|
|
prabumjkaran wrote: how to include Javascript Function of keypress in asp.net
write this on the server-side to bind the javascript function to the OnKeypress event of the textBox.
txtBox.Attributes.Add("onKeyPress", "Myfunction();")
here is a sample client-side javascript function to include in .js file or you can include in the HTML part of the aspx page within the block...
<code>function Myfunction(){
if(event.keyCode == somevalue)
//put your code
}</code>
<div class="ForumSig"><FONT face=verdana color=brown size=2>Regards<BR><FONT face=verdana color=brown size=1><b>J O H N </b><BR>
"Even eagles need a push." <b>David McNally </b><HR size=1></div>
|
|
|
|
|
prabumjkaran wrote: How can we write textbox keypress event in Asp.net
Sandeep Akhare wrote: TextBoxId.Attributes.Add("OnClick", "javascript:yourfunctionName");
just to set the record straight...
TextBoxId.Attributes.Add("OnKeyPress", "javascript:yourfunctionName");
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
OOPs i interpret as mouse click :->:->
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
|
You can try with Sql Server Agent and the extended stored procedure xp_sendmail .
Set up a job through Sql Server agent that wakes up and check's at proper intervals whether any job to be served ( any notification mails to be sent).
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
|
hai i m new to asp.net, which ctrl is best to use Html / Server
eg i want to add text box ,for that HTML is best or Server ctrl is best
thanx
prabumj@gmail.com
|
|
|
|
|
If one was better than the other in all cases, we wouldn't have them both.
server controls are useful where you want the framework to remember the value of a control when a postback occurs ( as in, when someone clicks a button, etc )
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thank you
prabumj@gmail.com
|
|
|
|
|
hi friends
I installed enterprise libray 2.0.
for example
i open cache block.it will show two categgory
1.cache application block(Nunit tests)
2.cache application block(VSTS tests)
what is Nunit test and VSTS test
|
|
|
|
|
An nunit test is a test using the nunit framework. A VSTS test is a test using Visual Studio Team System.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi thanks
what is the differnce in both?
which is best one?
regards
saravanan
|
|
|
|
|
A unit test is a pretty simple thng, I doubt either framework is 'better'. NUnit is free, VSTS costs about $20,000 ( it does a lot more than just unit tests ). NUnit is probably also more widely accepted, it's sure older.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
thanx
u have any good link regarding this.
regards
saravanan
|
|
|
|
|
Hi,
Does anyone know how can i embbed the content of my aspx web page (containing data in various controls like datagrid, panels... created dynamically) into an email. I have a little idea of it that i need to render the content into html and then can send it... though not a very clear picture. I have used asp.net ( with C#) many a times to send emails but i want to embed a web form now as the my web page is vast... Please show the way through this?
I need this urgently, Please advcie ASAP
Thanks in advance.
Bhawna
|
|
|
|
|
I have created mainProject in Webapplication using VB.Net.Created another project i.e Project2 under that solution.This is For accesing Database we have created the class file.Main Project created the object to access the class.It's working fine
But if u load the whole project in another machine,it's not accessing the class.If u debug,it's not accessing the class.we gave Reference and also created the object in the web page to access the class.
Can anyone help me,regarding this problem.
My code is, GetList is a function of the class clssearch.
Imports project2
Private obj1 as clssearch
Dim ResDT as DataTable
ResDT = obj1.GetList() 'Here it's not accessing the function.In the debug mode also,it's not
accesiing class.So ResultDT is nothing
If Not ResultDT Is Nothing Then
'some code
Else
lblMsg.Text = "No Results Found!"
radsgr
|
|
|
|
|
Again take the reference of your project (which access the database)
and rebuild the solution
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Thanks for replying me.I have tried that also.Remove and add the reference agian.Rebuilded the solution.Still the same.Please help us regarding this problem.
radsgr
|
|
|
|
|
Please make sure the class name in this way
dim obj as project2.yourclassname
Also make sure the access specifire of class, function & property etc which yoy want to access.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Thanks for helping us.after changing the reference,close the soltuion and restarted the computer.
working fine.
radsgr
|
|
|
|
|
I need to create a new directory that will be named by reading from a form, and copy files and folders from _root to that new directory. is this possible in ASP.NET, im using shared hosting that allows me to adjust the privileges. I am very new to ASP. I know PHP, so any help would be greatly appreciated.
|
|
|
|
|
You need to copy files from the client to the server, from the server to the client, or all on the server ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You need to do something like this:
imports Microsoft.VisualBasic<br />
<br />
private sub filetransfer()<br />
dim pfile as string<br />
'This will create a folder in c:\ with the name<br />
'it gets from a field called "user_directory" on the HTML form:<br />
mkdir("c:\" & form("user_directory"))<br />
<br />
'This will loop thru all the files in your root directory and<br />
'copy them to this new folder:<br />
pfile=dir("c:\inetpub\wwwroot")<br />
do while pfile<>""<br />
filecopy("c:\inetpub\wwwroot\" & pfile, "c:\" & _<br />
form("user_directory") & "\" & pfile<br />
pfile=dir()<br />
loop<br />
end sub<br />
when you want something, the universe conspires in helping you achieve it
|
|
|
|