|
sinhasourabh wrote: Iam working on .net from last 9 months and i had enjoyed a lot to use the extensibility of .net. But now iam facing a new problem. My client wants me to write codes for unix/linux/*nix based system to retrieve system parameters.
sinhasourabh wrote: And one thing i want to add is that i haven't worked on unix earlier.
So how do you like doing Outsourcing Software Development?
led mike
|
|
|
|
|
hi folks,
I wud like to display running time in my page using javascript.For that i ve used the following client side function.
<form name="counter"><input type="text" size="8"
name="d2"></form>
<script type="text/javascript">
var milisec=0
var seconds=120
// document.counter.d2.value=0
function display()
{
if (milisec<=0){
milisec=9
seconds-=1
}
if (seconds<=-1)
{
milisec=0
seconds+=1
}
else
milisec-=1
document.counter.d2.value=seconds+"."+milisec
setTimeout("display()",1000)
}
display()
ive hardcoded it as 120 seconds.But i need to pass a value from code behind dynamically and make the timer run for that value.
for e.g i want to pass as display(180) and run the timer.Is there any way of achieving this?Advance thanx
T.Balaji
|
|
|
|
|
It'll be better if you ask the same question in ASP.NET section then it'll be easier for all and you'll get answer early
Cheers!!
Brij
|
|
|
|
|
Hi Balaji,
Use RegisterClientVariable, you may refer to the following code snippet:
At Server Side:<br />
<br />
ClientScript.RegisterHiddenField("HiddenField", "120");
At Client Side:<br />
<br />
var temp = document.getElementById("HiddenField");
I hope this would be helpful.
John Adams
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
Hi!
I've got a Windows application, and need to make a list, where each element is a block, containing a picture thumbnail, and several other controls, like on picture:
http://jamessoftware.com/misc/mylist.gif[^]
I'm C++ programmer, fairly new to C# and .NET. Could you please give me a hand with this:
- What is the best way to have this data stored internally in c# - (like a list of structures in c++)?
- Which controls should I use to make this list work? I mean what do I create in designer (VS2005), what do I need to code?
- I need to be able to drag'n'drop pictures from another list in another panel of the same form. How do I implement this drag'n'drop in both sending and receiving lists?
I'd appreciate an example or some explanation - how do you typically create this kind of thing.
Thanks a lot!
Bob
modified on Monday, August 25, 2008 4:27 AM
|
|
|
|
|
Is this a windows application or a web app? If it's a web app, you could always use a repeater control and put a panel in it with an image control in it, a couple of link buttons and some drop downs in it. I hope that helps.
|
|
|
|
|
I'm sorry, this is a regular windows application. Is there some sort of repeater for this case? I really need this. Thanks!
|
|
|
|
|
There isn't, but it wouldn't be too hard for you to code this for yourself. If I was you, I'd create a user control that contains the items themselves, and then just create as many instances as you need on the page.
|
|
|
|
|
Thanks! I've never made any user controls before - could you please point me to an appropriate sample, if you could think of any? I'm trying to find something which would look kind of similar, but can't find anything so far : (
Also, how do you scroll thru many instances of this control? Can I put it inside some list control, or I should make one on top of that control, too? Any example you could send me to, pls?
I really appreciate your help, Pete! Thanks!
|
|
|
|
|
If you can stretch to installing the WPF extensions for VS 2005, then you can do this really easily in WPF. Take a look here[^] for a sample. This type of databinding/template manipulation is an absolute breeze with WPF.
|
|
|
|
|
Oh man, this is so much new technology to get into.. Is this kind of list with custom list items be done without WPF?
Thanks!
|
|
|
|
|
You can do it with existing technologies, but it is so much more complicated. There is a lot that you have to do to bend WinForms into shape.
|
|
|
|
|
I have created a web application using visual studio 2005 (ASP.Net using C# and SQL Server 2005).Earlier, to test i created few test pages compiled them and uploaded all the related files and folders to the default virtual directory of the web server,It was working.Now, after completing the application once again I compiled the application(which is having new pages and functionality obviously) and then uploaded the complete files and folders (Before uploading I deleted all the files and folders previously uploaded to the web server from its virtual directory)When I opened my site from browser to see it working I got the old page! Even that page is not present in the directory of the web server, its still showing along with the other old pages.I want to upload my new web pages.Somebody Please help.Where am I wrong???My new pages are successfully uploaded but still old pages are coming despite of the fact that they no more exists.What is it???
|
|
|
|
|
Please First delete the old directory from the Webserver.Reset server if possible.Again upload the new one.and second remove all temp files and browser cache from the client machine.
I think it will solve your problem.
Cheers!!
Brij
|
|
|
|
|
hi all,
I am an above average programmer with experience in C++, Visual Basic. I am interested in learning .NET technology. Could any one of you please guide me where should i start. Please mention the learning phases.
Thanks.
Bye...
Khalid Mehmood Awan
|
|
|
|
|
Install Visual studio.Use Google.Do Hand's on.This is the best way
Cheers!!
Brij
|
|
|
|
|
khalidmehmoodawan wrote: Could any one of you please guide me where should i start.
You have this site and loads of great articles to learn from. That should be a good start for you.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
First, you have this excellent site. Second, you have the forums to help you learn. Third, find some good reference books regarding the .NET technology. Two publishers I would look for: Apress and Sams Teach Yourself (do not get Sams C++ books).
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
If you are just getting into .NET: I would suggest that you mingle briefly in VB and then head straight into C# very quickly. I consider C# to have the simplicity of VB with the syntax of C++.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
|
Double Post
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I am coding an extension to the functionality of the ASP.Net default login provider. Using an extended url generated from a database of user e-mails the UserName field of the create user wizard is auto populated and verified against entries in a separate database.
The idea was to allow only those users who receive an email with their details to be able to register. It works fine, however the account cannot be created when the UserName textbox is readonly. If the box is set to readonly=false it works fine, but users can create any username they like and any number of accounts.
Does anyone know why if the UserName textbox of the create user wizard is readonly it will fail in creating the account?
What event is triggered when the create user button is clicked. As its part of a pre made control it is difficult to insert or change the code that runs, I presume it is part of the class library.
Any help would be greatly appreciated.
|
|
|
|
|
Hello,
I have a system with .NET 3.5/VS.NET 2008 installed, but still using only VS.NET 2005 for my projects.
Just realized my applications will not run on systems without the .NET 2.x SP1.
Any way to target the .NET 2.x without the SP1 on this machine?
The project consists of multiple libraries, mostly written in C#, but some written in mixed mode C++/CLI.
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
Don't know any easy way to do this. The only thing that comes in mind is to list classes/methods etc that you cannot use (things introduced in SP1) and search them throughout the project.
One way to do this is to create your own rules in FxCop that will alert if you have illegal calls. This really is not an easy way but I think it could be doable.
Mika
|
|
|
|
|
How to get source code from a dll in VB.
Its urgent .pls anyone help me.
thx in advance.
|
|
|
|