|
TimeSpan difference = myFirstDate - mySecondDate;
Man who stand on hill with mouth open wait long time for roast duck to drop in
|
|
|
|
|
thank you for replying
its showing an error "Error 3 Cannot implicitly convert type 'System.TimeSpan' to 'string'"
what should i do.
|
|
|
|
|
Mathew P V wrote: its showing an error "Error 3 Cannot implicitly convert type 'System.TimeSpan' to 'string'"
Eh?! You might like to read the MSDN documentation on TimeSpan to find out how it works and how to get data out of it.
No where in my advice would you have got the error above. Just blindly converting things to strings is often unwise.
Man who stand on hill with mouth open wait long time for roast duck to drop in
|
|
|
|
|
thank you for the valuable reply,
i am new to asp.net. please give me some suggestions so that i can improve.
|
|
|
|
|
Mathew P V wrote: i am new to asp.net. please give me some suggestions so that i can improve.
If you are asking for help then show code so we can see what you are doing. Asking us to guess based on vague or incomplete descriptions does not (as Dr. Cox [Scrubs] would put it) "help me to help you".
Man who stand on hill with mouth open wait long time for roast duck to drop in
|
|
|
|
|
i used
timespan diff=calendar1.selecteddate.substract(calendar2.selecteddate); and now its working thank you for your valuable suggestion i will do the same.
modified on Tuesday, June 2, 2009 6:06 AM
|
|
|
|
|
Hi , iam still newbie in asp.net
I have no idea how to pass parameter to event handler in timer
this the code that i have got
<br />
private Timer Alert = null;<br />
<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
Alert = new Timer();<br />
Alert.Start();<br />
Alert.Elapsed = new ElapsedEventHandler(Alert_Timer_Elapsed);<br />
AlertTimer.Interval = 30000;<br />
}<br />
<br />
private static void AlertTimer_Elapsed(object source, ElapsedEventArgs e)<br />
{<br />
}<br />
<br />
i want int alerttimer_elapsed has a string / object variable as parameters but i am confused how to do it.
thanks guys
|
|
|
|
|
arifliminto86 wrote: i want int alerttimer_elapsed has a string / object variable as parameters but i am confused how to do it.
You don't. The method has all the parameters it is ever going to have - otherwise the signature of the method wouldn't look like Timer.Elapsed event handler.
Also, where would you set the string value from?
Store it as a field on the class and the event handler can pick it up (once you remove the static on the method)
Man who stand on hill with mouth open wait long time for roast duck to drop in
|
|
|
|
|
|
hi
please write code by which .swf run in most of browser
thanks
Azad Yadav
|
|
|
|
|
I have done, plenty of times. If you want to know how to do the same, perhaps you need to try google ?
This is not an ASP.NET question, ASP.NET has no support for swf files, nor can it. That's handled by the browser, and you write HTML inside your ASP.NET site to play them. I've done that, too.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
Need to create a grid view inside grid view in asp.net 2.0 ...is it possible and how?
|
|
|
|
|
|
In my Page i am having buttons.when clicking on that button the events not firing.i am doing URL rewriting in begin_request.for the same page i am doing the rewrite.i want to fire the corresponding events when clicking on the button.please help me on this.
|
|
|
|
|
hi all,
i am using authyorize.net(sim) payment gateway for my shopping cart.previously i used arvic payment gateway.I am new to this .
my requirement is after completing the payment successfull i want to redirect the page from authorize.net to my site with transaction results.
how can i do this in c#?
|
|
|
|
|
I suggest reading the link in my sig. You may also want to read the docs from authorize. You shouldn't have to leave your site at all, unless you're using some sort of cheaper option with them.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
|
|
|
|
|
Christian Graus wrote: You shouldn't have to leave your site at all, unless you're using some sort of cheaper option with them.
Actually, there are systems like 3D-Secure (think Verified by Visa) that take you off the original site (albeit in an IFRAME!) to complete a transaction. This is proper expensive stuff that many banks now demand as part of the PCI compliance agreements they have with their merchants.
However, you are right, it looks cheap. The problem is that Finance departments are demanding it because if they don't the merchant becomes liable for any fraud* (risk shifting by the banks). Marketing/Sales departments are resisting it because it will lose them sales (because it is anothe password to remember, and most people forget)
* An agreement I've seen on a project I'm working on means that without PCI Compliance and 3D-Secure, etc. the bank can charge £25K + cost of fraud investigation + other costs to the merchant. The cost of implementing this extra security in the website is over £25K - Not a cheap solution!
Man who stand on hill with mouth open wait long time for roast duck to drop in
|
|
|
|
|
Hi,
I need to create custom control. But option to add "Web control library" is not appearing in my VS 2.0 framework. Can you told me the link to download the "Web control library", so that I will be able to create my own custom controls.
thanx...
Regards...
Vijay Jain
"One thing you can't recycle is wasted time."
|
|
|
|
|
|
Hi Goalie,
thanx for your reply. But this link is not accessible. Can you provide me some other link.
thanx...
Regards...
Vijay Jain
"One thing you can't recycle is wasted time."
|
|
|
|
|
 That's odd. The link opened for me. I'll just post his article here instead:
Visual Studio 2005 is one the coolest Development Tools available today for developing applications targetting .NET Framework 2.0.
In Visual Studio 2005, there have been a lot of changes, compared to the way Windows Applications and Web Applications were created using Visual Studio .NET 2003 and earlier versions.
For more details, please check my following articles:-
Quick Facts about Visual Studio 2005 - Did you know?
Visual Studio 2005 Web Application Projects and Web Deployment Projects
When developing with Visual Studio 2005, we might have noticed that all the web related templates are moved under "File - New - WebSite" option.
However, creating a Web Control Library is an exception to this. The Web Control Library Template still lies in the "File - New - Project" Option. It is a little suprising and tricky to find the option to create a Web Control Library.
The steps are
1. Click "File" - "New Project"
2. The "New Project" Dialog opens up with the installed templates
3. Select the preferred language "Visual Basic" or "Visual C#" under "Project Types"
4. Expand the preferred language Node.
5. Select "Windows" under the preferred language Node.
6. The available templates are listed under "Templates"
7. Select the "Web Control Library" and click "Ok" to create a Web Control Library Project.
This might be a little suprising since all the Web related projects are moved under "File - New - Website" option whereas the "Web Control Library" still remains here and particularly under "Windows" option.
In short, the answer for the question, from my understanding is that, all Project type templates are moved under "File - New - Project" and the Website related ASP.NET Website, ASP.NET WebService are under "File - New - Website" option.
Cheers and Happy Programming !!!
|
|
|
|
|
Hi Goalie,
thank u very much. But problem is that template option "Web Control Library" is not in my copy of Visual studio. Can you tell me that from where I can download it.
Regards...
Vijay Jain
"One thing you can't recycle is wasted time."
|
|
|
|
|
|
Hi Goalie,
thanx dear for your reply. Also i found the solution. In my copy of Visual studio instead of "Web control library", "Class library" template is available. In this object after adding System.web.dll, i m able to develop web custom control.
Regards...
Vijay Jain
"One thing you can't recycle is wasted time."
|
|
|
|
|
Great Vijay! Glad it worked out for you!

|
|
|
|