|
Thanks
Paul
That help me...
Actually What makes the diffrence in your search and my search is : "Keyword"
i was't getting the links that u have posted me.
Anyway my work is finished
Thanks
Be tolarable
Believe Yourself :->
|
|
|
|
|
try this code
var date1="07/23/1985";
var current=new Date();
var entered=new Date(date1);
var one_year=1000*60*60*24*365;
var no_of_days=Math.ceil((current.getTime()-entered.getTime())/(one_year));
alert("You are "+no_of_days+" Years old");
you can write the code inside a function and pass the date as a string.
When you fail to plan, you are planning to fail.
|
|
|
|
|
Hi all,
I am using aspnet 2.0 with C#.NET as language. Can any on pls help me out generating an init event . I saw some articles which say directly write a n event in code behind as
protected override void Page_OnInit()
{
....
....
}
but it gives an error Error DBControls.Page_Init()': no suitable method found to override..
what might be the problem?
|
|
|
|
|
|
Thanks for ur reply..
I found that the link you provided explains init event for ASP.NET 1.1. I am familiar with it. I m searching for ASP.NET 2.0.
|
|
|
|
|
try this
<br />
protected override void OnInit(EventArgs e)<br />
{<br />
base.OnInit(e);<br />
}<br />
also check this article
-----
|
|
|
|
|
Hello friends,
Please help me.
I want to play a video file resided in my local computer in ASP.NET page.
please tell me the code.
I used <embed src.....="" /> but it is not working.
Bye..
Regards,
Bharath
Bharath
|
|
|
|
|
|
Try this one
<br />
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" name="mediaplayer1" runat="server" showstatusbar="true" enablecontextmenu="false" autostart="true" width="320" height="240" loop="true" src="Video/happybirthday.wmv" />
|
|
|
|
|
I have store the images in a folder while do submit. Now i have retrive those image from that folder to the new page.
pls help me...
krishna
|
|
|
|
|
Do you want to display that image in the page?
if yes just set src property to html image.
<img src="foldername/imagename.jpg" />
bEst rEgard
pAThan
please don't forget to vote on the post that helped you.
|
|
|
|
|
while inserting iam sending datas with image, like each product have one image..so datas storing in db table.. images storing in a folder....so now if i give the condition than datafield with perticular image has to be displayd in a new file.
krishna
|
|
|
|
|
Hello,
I am using div tag as server control.I want to set "style=display:none" property of div in codebehind file.How can I do ? anybody know this,plz help me.
Thank& Regards
Vijay s
|
|
|
|
|
you should have runat="server" for the div then in code behind do this
divid.Style.Add("display","none");
-----
|
|
|
|
|
Hi I m new to asp.net.I m using .net with vb.net. I hv a cookie in which items are added. For Example I hv 10 items added to cookie like router = 10, modem = 8, usb = 5, .....
Now I want to removie only usb from that cookie. How can I do that. Pls help me, its very urgent. Thanks in Advance.
|
|
|
|
|
coooooooooooooollllllllllllllllllMindddddddddd wrote: I want to removie only usb from that cookie.
hello frnd try this
Dim mycookie As HttpCookie = New HttpCookie("example")'create object<br />
<br />
mycookie.Values.Add(" router", "10")'assign value<br />
mycookie.Values.Add(" modem", "8")'assign value<br />
mycookie.Values.Add(" usb", "5")'assign value<br />
<br />
mycookie.Values.Remove("usb")'remove cookie<br />
-- modified at 1:10 Saturday 17th November, 2007
|
|
|
|
|
your display name is spoiling the alignment.
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Then ths s bug in codeproject website :p
|
|
|
|
|
I think its OK now.
|
|
|
|
|
coolmindd wrote: I think its OK now.
Thanks
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Hi,
I wants to fetch cost of products from competitors website, so that i can accordingly i can do comperision from our products . How i can do this?
please help..
krishna veer singh
|
|
|
|
|
go to their website see the cost and compare it to yours...;P
best thing is to contact them, get their database connectionstring, connect to their database and fetch the price. (IF THEY ALLOW YOU - chances are they will not unless you pay them good amount)..
-----
|
|
|
|
|
I can visit competitors website to take price, but this is manual.
I do not want this, actually i want it programmatically.
And as for as my concern no any competitor can provide their database connection string.
krishna veer singh
|
|
|
|
|
krishnaveer wrote: no any competitor can provide their database connection string.
Obviously, even if you had their connection string, doesn't mean you could access their DB, almost certainly not. You think the Amazon database is on a public network ?
You're going to need to write screen scraping code, and rewrite it every time they change their website.
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 Christian Graus,
Will you please tell me how i can do this. Actually it's very necessary for me.
Thanks
krishna veer singh
|
|
|
|