|
Which value you want to store on session ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
|
Hi all,
Is there any predefined thing in C# to convert the dollar into rupee or ice versa
Thanks,
Amit Patel
|
|
|
|
|
|
Abhijit Jana wrote: Try this :
How does this give an answer his question???
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
|
Amit Patel1985 wrote: Is there any predefined thing in C# to convert the dollar into rupee or ice versa
What does it has to with ASP.net?
Btw, there is no such thing in C# or in any other language( AFAIK ) which supports currency conversion.
You need to get the conversion rates of the currency for this. And a simple mathematical function will do that.
private float ConvertToRupeeFromDollar(float fAmount, float fConversionRate)
{
return fAmount * fConversionRate;
}
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
hii,
There is Cust0m Converter convertor in java .is there any like custom converter in C#.
Thanks,
Amit
|
|
|
|
|
Hi guys really i got tired in this...,
i am using create xmlhttp concept in my project...,
its working fine in ie...,but not in mozilla...,
in mozilla if i give the alert statement for my request object...,
its working fine...,if i remove the alert its not working...,
really not getting whats the probs...,
function CreateXmlHttp1()
{
var browserName=navigator.appName;
if (browserName=="Microsoft Internet Explorer")
{
if(window.ActiveXObject)
{
try
{
senNif = new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e)
{
try
{
senNif = new ActiveXObject("Microsoft.XMLHTTP");
}
catch(oc)
{
senNif = null;
}
}
}
}
else
{
if (window.XMLHttpRequest)
{
senNif = new XMLHttpRequest();
}
}
}
function SetNewDiscussion(txtcomment,txtname,txtemail)
{
var tf=checkTextArea(txtcomment, "2000");
if(tf == false)
{
alert("Please Enter only 2000 characters");
return false;
}
if(txtcomment=="")
{
alert("Enter Your Comment");
document.getElementById("txtDiscComment").focus();
return false;
}
else if(txtname=="")
{
alert("Enter Your Name");
document.getElementById("txtDiscName").focus();
return false;
}
else
{
var bloghidsrno=document.getElementById("<%=hidblogsrno.ClientID %>").value;
var tdDiscnewresult=document.getElementById('tdDiscnewresult');
var Url;
Url="BlogsDiscussionInsert.aspx";
var params = "blogsrno="+bloghidsrno+"&txtcomment="+txtcomment+"&txtname="+txtname+"&txtemail="+txtemail+"×tamp="+new Date().getTime();
CreateXmlHttp1();
var type="RP";
if(senNif)
{
senNif.open("POST", Url, true);
senNif.onreadystatechange = function(){getDataResponseNew(tdDiscnewresult);};
senNif.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
senNif.setRequestHeader("Content-length", params.length);
senNif.setRequestHeader("Connection", "close");
senNif.send(params);
}
}
window.location.reload();
}
function getDataResponseNew(id)
{
//alert(senNif.readyState);
if(senNif.readyState == 0)
{
id.innerHTML="UNINITIALIZED";
}
else if(senNif.readyState == 1)
{
id.innerHTML="LOADING";
}
else if(senNif.readyState == 2)
{
id.innerHTML="LOADED";
}
else if(senNif.readyState == 3)
{
id.innerHTML="INTERACTIVE";
}
else if(senNif.readyState == 4 && senNif.status == 200)
{
id.innerHTML=senNif.responseText;
}
}
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
Dude! I don't find anything wrong but u were reloading your page imdtly sending request. can u comment it and have a try
//window.location.reload();
|
|
|
|
|
Hi All,
I have developed a site(IN Classic ASP) for news channel and i want to implement/Show Live vedio on site . Its just like a chennal on web where user can see pre recorded video. How can i implement this functionality in classic ASP site?
My site in classic ASP 3.0 and MS sql server 2005. My hosted server is not streaming server. please help ...
Thanks in Advance
Life is not easy ,let's make it.
|
|
|
|
|
asprajesh wrote: My site in classic ASP 3.0 and MS sql server 20
So, What are doing in ASP.Net forum?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Thanks for your suggestion.
Life is not easy ,let's make it.
|
|
|
|
|
May posting this question to web development forum helps you !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
hi..
all i m showing three columns in gridview from database.the columns names are
DemandFor,Demand,demandPostedOn.In the last column i have given a button name "Feedback".
On click of this button i want to redirect on "Feedback.aspx" page.I n this page i want to show the fields DemandFor and Demand in the textboxes.I have redirected the page on button click.
but i dont know how to get the values of that particular row in which the button was clicked.
can any body guide me or give me a sample code.thanks...
|
|
|
|
|
|
nagendrathecoder wrote: http://www.codeproject.com/KB/webforms/GridView_DropDownList.aspx
sry its working fine
plz check the above link once..
If It Helps Click It as Answer
|
|
|
|
|
|
When you are click on the button, on the RowCommand Event, use GridViewRow Class to hold the data for tat row. the pass it to next page either using session or query string.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
hiii...
i got it sir.thanks sir....
Regards
parikshit
|
|
|
|
|
welcome sir
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi,
I have a page which refresh every 3 - 5 seconds, i gave refresh in meta tag. While refreshing, as normal all the controls are dissapear and display a white page for some milliseconds. I need to block the controls from disappearing at the time of refresh. ie, the user should not understood that page is refreshing.
How can i do that
Thankyou
Ypki
|
|
|
|
|
What is use of refresh the whole page ? Do you want to update any particular section or value on your page ? Then why you are not looking into AJAX Update Panel and AJAX Timer control to refresh the particular section, rather than Refreshing whole page.
Thank You !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
The whole page contain a dynamically created html table with number of cell, in each there will be a value, these values will change frequently. Thats why i am refreshing the whole page.The page contain only that html table.
In AJAX Update Panel also the controls will dissapear for some milli seconds..ryt??
|
|
|
|
|
Use AJAX based solution.
Say you load the page within a div.
During refresh, make an AJAX request which will get the latest data and show in the div.
To know how to do an AJAX request follow :
http://www.w3schools.com/Ajax/Default.Asp[^] tutorial.
|
|
|
|