|
i have already a slang word Access dictionary. Ok i clear my problem with a one example.
example is ....
the sentence is "you are a dogboy." ...
here "dog" will be the slang word and how can i detect dog word form this sentence...
please help me
|
|
|
|
|
i am having one gridview in my application where i am displaying one linkbutton column in it. By clicking on the link some xxxx.wav will be downloaded and directly played in the media player.
Code:
<ItemTemplate>
<a href='feedback/<%#Eval("Filename")%>' target="_self"><%# Eval("FeedbackTitle") %></a>
</ItemTemplate>
what i want is, to show some xxx.gif image to the user at the time of downloading it will be useful for larger files.
if anybody has a solution for this please do let me know.
with warm regards
sunilwise
|
|
|
|
|
I upload a site but it display an error "Object reference not set to an instance of an object".In my class
it display an error in these lines
Dim st As String = ConfigurationSettings.AppSettings("str")
Line 9: Public con As New MySqlConnection(st)
How can i solve this problem.I am using mysql dataconnection.
|
|
|
|
|
I'd guess that your problem is that the config file is not set up properly, and your code doesn't check for nulls.
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 all,
there are two textboxes in my page. FromDate and ToDate. dates are selected from popup calender and displayed in respective textboxes. when I click on a button, have to satisfy the following conditions.It is working with MM/dd/yyyy format.. but when I change the format to dd/mm/yyyy getting error..
1. Difference between FromDate and ToDate sholud not greater than 31.
2. FromDate should be less than ToDate.
3. ToDate is not greater than current date.
below is the code I had written: This code is working fine with MM/dd/yyyy date format.. but when I give the date in dd/mm/yyyy getting error.
TimeSpan tsDaysDifference = Convert.ToDateTime(txtToDate.Text).Subtract(Convert.ToDateTime(txtFromDate.Text));
if (tsDaysDifference.Days > ConInterfaceManagerCommon.DATE_RANGE)
{
StringBuilder strbldrErrorScript = new StringBuilder("");
strbldrErrorScript.Append("alert('Difference between from and to dates should not morethan 31')");
strbldrErrorScript.Append("");
ClientScript.RegisterClientScriptBlock(this.GetType(), "Error", strbldrErrorScript.ToString());
return false;
}
else
if (tsDaysDifference.Days < ConInterfaceManagerCommon.DATE_MINIMUM)
{
StringBuilder strbldrErrorScript = new StringBuilder("");
strbldrErrorScript.Append("alert('From date should be lessthan todate')");
strbldrErrorScript.Append("");
ClientScript.RegisterClientScriptBlock(this.GetType(), "Error", strbldrErrorScript.ToString());
return false;
}
else
if (Convert.ToDateTime(txtToDate.Text) > DateTime.Now)
{
StringBuilder strbldrErrorScript = new StringBuilder("");
strbldrErrorScript.Append("alert('To date should be lessthan current date.')");
strbldrErrorScript.Append("");
ClientScript.RegisterClientScriptBlock(this.GetType(), "Error", strbldrErrorScript.ToString());
return false;
}
else
return true;
Can anyone help how to find the date difference in dd/mm/yyyy format on serverside?
Many Thanks
|
|
|
|
|
When converting to a datetime object, you need to specify the format of the date if you are giving it a format other than the default for the server. Your server is expecting mm/dd/yyyy, so if you want to specify a different date format, you will need to tell the ToDateTime function what format you are providing the data in.
|
|
|
|
|
i want the asci code of an upward arrow
|
|
|
|
|
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]
|
|
|
|