|
You can try this.
&uarr
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
hi
visit this link
http://www.modport.co.uk/index.php?showtopic=2045
Jintal Patel
|
|
|
|
|
i created cookie using javascript in page when i go to ather page i want manage it using asp.net i can read the cookie but i cant update it value when i update it value its create ather cookie thnx hope u can hekp me
|
|
|
|
|
Can anybody tell where can i get good tutorials for crystal reports using asp.net2.0
Thanks in Advance...
Erasers are for people who are willing to correct their mistakes.
|
|
|
|
|
|
HI
Is it posible to call asp.net function in javascript
Example
-
i have a javascript function in that i want to call the asp.net values
var customarray=new Array('in this i want to call asp.net values' );
var custom2 = new Array('something','randomly','different');
Than Q
Keerthi
|
|
|
|
|
Hi,
clarify it.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
You can do this with AJAX, or you can write the values you want into the script as variables.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thx For reply
my need is i have a javascript array in that array i want put asp.net array values
For Example :
------------------
in the place of 'an apple','alligator','elephant','pear' etc.. i want to put asp.net array values
var customarray=new Array('an apple','alligator','elephant','pear','kingbird','kingbolt', 'kingcraft','kingcup','kingdom','kingfisher','kingpin');
var custom2 = new Array('something','randomly','different');
Keerthi
|
|
|
|
|
OK, in this case, just write the values into your javascript from the code behind, no need to call it with AJAX, if the values are known, just pass them through.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi dear,
It is Possible to call c# function through javascript.
Please go through google, if again not able to find. plz write me at personalmail@mysampatti.com
By
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
u van also try by this trick
document.getElementbyId(HiddenButton).Click;
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
Hi
Kirthi,
It is possible To Do what u have asked :
Just Look At The Example given Below.
Here I have Passed The Values That I Get From TextBox
This Code U have To Write In Ur ASPX Page
<br />
<br />
<script language="JavaScript" type="text/javascript"> <br />
var cal = new CalendarPopup();<br />
cal.showNavigationDropdowns();<br />
</script><br />
<br />
And This IsWhat i have written in my Saprate Javascript File This Is A Function
<br />
function stepvalidation1(txtdate1,txtdate2,txtdatenow)<br />
{ <br />
var flag=0; <br />
var dt1=document.getElementById(txtdate1); <br />
var dt2=document.getElementById(txtdate2); <br />
<br />
if (isDate(dt1.value)==false)<br />
{ <br />
dt1.focus();<br />
flag=1;<br />
}<br />
else<br />
{<br />
<br />
if(step3validation(txtdate1,0,txtdatenow))<br />
{<br />
}<br />
else<br />
{<br />
flag=1;<br />
} <br />
} <br />
if (isDate(dt2.value)==false)<br />
{<br />
dt2.focus();<br />
flag=1;<br />
} <br />
else<br />
{ <br />
if(step3validation(txtdate2,0,txtdatenow))<br />
{ <br />
}<br />
else<br />
{ <br />
flag=1;<br />
} <br />
} <br />
if(flag>0)<br />
{ <br />
return false;<br />
}<br />
else<br />
{<br />
<br />
return true;<br />
}<br />
}<br />
and this is the line tht i have written in my .cs File
<br />
btn_Update.Attributes.Add("onclick", "javascript:return stepvalidation1('" + date1.ClientID.ToString()+ "','" + date2.ClientID.ToString()+ "','" + System.DateTime.Now.ToShortDateString() + "');");<br />
I think This Can Help
If Any doubt on the above then Ask
Just Do IT™ [Information Technology]™ :->
|
|
|
|
|
HI than Q
it is working fine but
in my web page i am binding values to a array.
that array values i want to pass in javascript.
var customarray=new Array(---- asp.net array values ------- + 'alligator','elephant','pear','kingbird','kingbolt', 'kingcraft','kingcup','kingdom','kingfisher','kingpin');
Keerthi
|
|
|
|
|
Yes you can do this
I assume that u have a method in code behind which returns string, write a logic to return string in following format
Vaue1, value2, value3
<br />
SERVER Method(code behind): <br />
public string GetCommaSepratedUserNames()<br />
{<br />
return "'Manikandan.net, Prem.telecom, someName.Asp'";<br />
}<br />
Here value1, value2, value3 are your desired values, which u want to return from server.
Write the java script like bellow:
<br />
<script><br />
var customarray=new Array(<%=GetCommaSepratedUserNames()%>);<br />
<br />
var custom2 = new Array('something','randomly','different');<br />
</script><br />
<br />
Manikandan.net
[Coding is life]
|
|
|
|
|
HI
Is it posible to call asp.net function in javascript
Example
-
i have a javascript function in that i want to call the asp.net values
var customarray=new Array('in this i want to call asp.net values' );
var custom2 = new Array('something','randomly','different');
Than Q
Keerthi
|
|
|
|
|
Hi,
Using Ajax techniques(XMLHTTP) call back function you can execute ASP.NET functions.
Regards,
Manowj
|
|
|
|
|
Yes you can do this
I assume that u have a method in code behind which returns string, write a logic to return string in following format
Vaue1, value2, value3
SERVER Method(code behind):
public string GetCommaSepratedUserNames()
{
//write u r logic here, instead of my sample
return "'Manikandan.net, Prem.telecom, someName.Asp'";
}
Here value1, value2, value3 are your desired values, which u want to return from server.
Write the java script like bellow:
<script>
var customarray=new Array(<%=GetCommaSepratedUserNames()%>;
var custom2 = new Array('something','randomly','different');
</script>
Manikandan.net
[Coding is life]
|
|
|
|
|
Hi Experts,
Here i stuck to a problem with search functionality to be implemented in my web page.
I have to do serach by using all the key words like OR,~,- etc. just like google.
So i am unable to find out the method to do same.
what i only found is full text serach through SqlServer 2005 but i dont want to use that.
Please suggest be Better.
Thanks is advance
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
hi,
I want to redirect the user if he copy and paste the url of a post login page in a new window. I think there should be some settings in web.config.
I am using aspdotnet 1.1 with vbdotnet.
If any one has a solution for that please send me the code to implement this in my project.
thanks in advance
bikash
|
|
|
|
|
Hi,
you can solve your problem using below tips.
1. Store user name and password in Session and check on every page load whether they are right or not.
2. Store any other variale in Application start (global.asax) and check in every page Load.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
|
|
Hi
got 3 option
if op1 then date will be Today + 7 = 08/12/2007
if op2 then date will be Today + 14 = 15/12/2007
if op3 then date will be Today + 90 = 01/03/2008
n.b. every month doesn't have 31 days
any instruction will be helpful
Sarfarj Ahmed
|
|
|
|
|
hi dear,
u have check all these dynamically through code.
i prefer u to use Switch case for that.
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|