Sunday, August 2, 2009

I'm new to programming; shall I go for Microsoft visual c#.net or Microsoft visual basic.net?

I need to know the difference between them so I can choose the best for my work

I'm new to programming; shall I go for Microsoft visual c#.net or Microsoft visual basic.net?
Both not too differ, since you are new to programming suggest you go for C# as it's more popular then VB.NET out there.
Reply:C# Report It

Reply:why not use Delphi ? no need to have something with the word Microsoft in the name of it if you use windows you will know of the problems it has so why add more to it by going with something made by the same company? i use Delphi as i found it to be easy to pick up and go simple commands and easy to use.
Reply:It wont differ much. but in my opinion, go for C#.
Reply:Both are same ,difference in Syntax.
Reply:you must find out which one is more popular in your country (or your town). they just a like, only different in syntax. the important thing is not which one you will choose, but the programming logics and basic. if you are good at one of them, you can easily learn and use the other one.


Can any body give me code for how to add data in datagrid programatically in asp.net with c#?

i want to learn how to add data in datagrid programatically in asp.net with c#. i want all code like connection string and all the thing i want to learn. please help i need it very urgently.

Can any body give me code for how to add data in datagrid programatically in asp.net with c#?
this is how we did it.....we filled it with objects through an object data source. You can get your source from anything though (pasting code here sucks....)








%26lt;asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetAllOrders"


TypeName="DBAccess"%26gt;


%26lt;FilterParameters%26gt;


%26lt;asp:QueryStringParameter DefaultValue="" Name="SearchParam" QueryStringField="Search"


Type="String" /%26gt;


%26lt;asp:QueryStringParameter DefaultValue="" Name="CategoriesParam" QueryStringField="Cat"


Type="Int32" /%26gt;


%26lt;/FilterParameters%26gt;


%26lt;/asp:ObjectDataSource%26gt;


%26lt;asp:GridView ID="GridView_Orders" CssClass="datagrid" runat="server" AllowPaging="True" AutoGenerateColumns="False"


DataSourceID="ObjectDataSource1" PageSize="15" BackColor="White" BorderColor="#CCCCCC"


BorderStyle="None" BorderWidth="1px" CellPadding="3" OnSelectedIndexChanged="GridView_Orders_...


%26lt;Columns%26gt;


%26lt;asp:CommandField ShowSelectButton="True" /%26gt;


%26lt;asp:BoundField DataField="OrderID" HeaderText="OrderID" SortExpression="OrderID" /%26gt;


%26lt;asp:BoundField DataField="CustID" HeaderText="CustID" SortExpression="CustID" /%26gt;


%26lt;asp:BoundField DataField="OrderDate" HeaderText="OrderDate" SortExpression="OrderDate" /%26gt;


%26lt;asp:BoundField DataField="ShipDate" HeaderText="ShipDate" SortExpression="ShipDate" /%26gt;


%26lt;asp:BoundField DataField="Shipper" HeaderText="Shipper" SortExpression="Shipper" /%26gt;


%26lt;asp:HyperLinkField DataTextField="Cost" DataTextFormatString="{0:c}" HeaderText="Cost" /%26gt;


%26lt;/Columns%26gt;


%26lt;FooterStyle BackColor="White" ForeColor="#000066" /%26gt;


%26lt;RowStyle ForeColor="#000066" CssClass="datagrid" /%26gt;


%26lt;SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" /%26gt;


%26lt;PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Center" /%26gt;


%26lt;HeaderStyle BackColor="#006699" Font-Bold="True" CssClass="datagrid" /%26gt;


%26lt;/asp:GridView%26gt;

















Then for your connection string....we put that in the web.config file. Looks something like this.








%26lt;?xml version="1.0"?%26gt;


%26lt;configuration xmlns="http://schemas.microsoft.com/.Net...


%26lt;appSettings/%26gt;


%26lt;connectionStrings%26gt;


%26lt;remove name="LocalSqlServer"/%26gt;


%26lt;add name="LocalSqlServer" connectionString="Data Source=192.168.11.11;Initial Catalog=Ecommerce1; User=namehere;Password=ttGurVBx" /%26gt;


%26lt;/connectionStrings%26gt;


%26lt;/configuration%26gt;


How do we decide an application in .net that it should be vb.net or c#.net?

how we have to make an decision on application that particular language or tool will be specific

How do we decide an application in .net that it should be vb.net or c#.net?
Check to see whether you'll be affected by vendor lock-in. Check if the development tools are open and free. Ensure the code is cross-platform so it has an element of future proofing and portability. Ensure you've got the support for the databases you require, such as Oracle.
Reply:every tool and language has its own advantages and disadvantages. one particular problem can be solved by many technologies but some of them will be more fast and efficient than the other. so it depends on the kind of problem. also i think c# should be chosen since the syntax is lot similar to c and java whereas vb.net has more english like words. but still both do the same thing.
Reply:...You make a VB.NET or C# project in Visual Studio according to your choice.

gifts

How to Box and Unbox in C# .Net?

In this article I will explain the concepts of Boxing and UnBoxing. C# provides us with Value types and Reference Types. Value Types are stored on the stack and Reference types are stored on the heap. The conversion of value type to reference type is known as boxing and converting reference type back to the value type is known as unboxing. Let me explain you little more about Value and Reference Types. Value types are primitive types that are mapped directly to the FCL. Like Int32 maps to System.Int32, double maps to System.double. All value types are stored on stack and all the value types are derived from System.ValueType. All structures and enumerated types that are derived from System.ValueType are created on stack, hence known as ValueType. Reference Types are different from value types in such a way that memory is allocated to them from the heap. All the classes are of reference type. C# new operator returns the memory address of the object.





Read more on Boxing and Unboxing in C# .Net at http://www.buzzycode.com/ShowArticles-id...


What county of oregon is the c-net guy missing in???

Josephine is where Merlin (the town that they are working out of) is, but the search is in Jackson County. If he went further down the Rouge River it would be in Curry county. As you can see, the area he's lost in is very close to the junction of the three counties.





Here's the link ot the families website with the latest info: http://jamesandkati.com/





Unfortunately, they have now found him and he did not survive.

What county of oregon is the c-net guy missing in???
The search is being conducted near Grant's Pass, Oregon, which is in Josephine County.

innia

What is the coding for programming C#.net?

when i typing in textBox and the message that i typed in the textBox will appear directly in 1 by 1 of alphabetic in Label.

What is the coding for programming C#.net?
can u give more explanation? ur question is not clear
Reply:Click on your textbox control and click on the property for it and then look for a lighting icon on the property window. Select the icon and look for the event called OnTextChanged. Double click the event and it will generate a method in your code.





Then add the following code inside the code area of the new method:





MyLabel.Text = MyTextBox.Text;





Note: MyLabel is the name given to your label control and MyTextBox is the name givien to your TextBox control on your form.


How to display the elements of XML file in a tree view using C# and ASP.NET?

help me in displaying the elements of sample.xml file in a tree view using ASP.NET and C#. Suggest some good sites that


gives detailed info on TreeView

How to display the elements of XML file in a tree view using C# and ASP.NET?
Search in MSDN library


How to make cd formate and hosting one web application done by asp.net using c#?

i have completed asp.net project that is web application .code behind c#.web application project want to make a cd formate (my project is online test abt IQ test contain multiple choice ).

How to make cd formate and hosting one web application done by asp.net using c#?
You can't run an ASP.NET application from a CD. ASP.NET requires a running instance of IIS, which requires Windows 2000 or later, which won't fit on a CD, nor provide you with the writable directories required by IIS.


How to call a webservices in vb or c#.net 2000 version from visual basic?

If you are asking about visual studio .net then I can help you. For using a web service, open you solution explorer and right click it. Then select "Add a web reference". As soon as you select this, an inbuild browser opens. Give the url of the web service or travel to that page using that browser. After successfully adding that webservice, a new class will be added. Use that class methods. Those class methods are nothing but the web service methods.





Enjoy...

gerbera

Hello all I am going to face the interview for ASP.NET, VB.NET and C #.NET so pls send Question / Answer?

i'm kind of lost at what you're wanting





do you want someone to send you question/answers that may be asked of you in an interview for .NET programming position?





if so i've listed some sites in the sources


How do I read a text file in C#.net from a linux box?

Someone told me I needed to install Samba on the linux box. I would then have to make my windows server a client of the Samba server ??? But even after that, how do I read the file in my windows service program ???


Thanks, Ken

How do I read a text file in C#.net from a linux box?
Not sure what you are trying to do.





But if you are wanting to do .NET stuff on a linux box try this.


http://www.mono-project.com/Main_Page


How can i make a checkbox readonly in c#.net?

Disable it by setting its Enabled property to false





%26lt;asp:CheckBox id="chkMyCheckBox" runat="server" Enabled="false" Text="You cannot check Me!" %26gt;%26lt;/asp:CheckBox%26gt;





You might also want to do that programatically





chkMyCheckBox.Enabled = false;


Which language provides a competitive edge for freshers:c#.net or JAVA?

They both have very similar syntaxes, that's all. In term of deployment, C# wins big. It's a lot easier to be expert in C# because you learn the Microsoft-way. Java is harder because too many frameworks from open-source A, B, ... etc. And, worse, each of them has totally different views on solving thing. I think this is why Java progresses slower than anticipated.

Which language provides a competitive edge for freshers:c#.net or JAVA?
Java..
Reply:JAVA.......................................











Get yourname.com in Rs. 199.00 p.a.


at


www.domain199.com
Reply:Java and dot net have a really good future buddy..specialize in any 1of them for a good future...


:)


All t best...
Reply:c++

rosemary

How can i make a program on Visual C#.net that provide 4 people play a card game online?

I can make that program for 1 user on 1 computer, but I dont know how can i make my computer to connect another computer via internet to play the game.

How can i make a program on Visual C#.net that provide 4 people play a card game online?
idk
Reply:You need to use socket.


Can anyone guide me in programming with visual c#.net?

FREE Visual C# 2005 Training CD


Learn Visual C#2005 from the leader in developer training. Each CD is three hours of training with a value of $115.


How to pass the value to the user control using c#.net with asp.net?

U nee dto create events n delegates.


public color p_setuserbackcolor


{


get


{


value;


}


set{


tetxbox1.backcolor=value;


}


}


Declaring delegate:


public delegate void abc(object s,eventargs e);


public event abc myclic;








Hope u get the concept n can use now

How to pass the value to the user control using c#.net with asp.net?
It necessarily depends on where the value is produced.


If it is on the client side like a field in a form, you can access Request object from the user control, hence the value. You can also use Session object to pass values, but this will consume some memory depending on the value.
Reply:user control is also a class,so you can use the same way to pass the value to the user control as to the class.
Reply:I think you are asking about the Web User Controls, its better to use the session values.





Set the value on session on the Page_Load()





use the session value in the User Control Code.


Exception when I run a program developed with C# .net 2.0?

I used visual studio 2005 to developed an application. it was working well. recenty i used "Computerinfo" class of "Microsoft.VisualBasic.Devices" namespace. for which I had to add a visual basic dll as reference. But my problem is when I run the program from Visual Studio 2005 IDE It works fine. but after publishing It throws an exception with 'detail', 'quit' and 'continue' button.





************** Exception Text **************


System.Management.ManagementException: Provider load failure


at System.Management.ManagementException.Th... errorCode)


at System.Management.ManagementObjectCollec...


at System.Management.ManagementObjectCollec...


at Microsoft.VisualBasic.Devices.ComputerIn...


at Microsoft.VisualBasic.Devices.ComputerIn...


at MountUp.MainUI.MainUI_Load(Object sender, EventArgs e)


at System.Windows.Forms.Form.OnLoad(.....

Exception when I run a program developed with C# .net 2.0?
I recall reading somewhere that not all of the "My" objects available to VB function properly in C#. Since most of the objects provided through the "My" keyword are available to C# through other means, it's probably better in the long run to spend a little more time to write the code for that directly. You didn't say exactly what property you were trying to access when the exception occurred, but from what I can see that's available through the ComputerInfo class you'll probably have to resort to pinvoke to get most of that info.

wallflower

Is there any online video tutorials to learn C# / .NET?

Like this...





http://www.vtc.com/products/csharp.htm

Is there any online video tutorials to learn C# / .NET?
learnvisualstudio.net
Reply:try this it might be helpful..good luck....


http://www.asp.net/learn/videos/default....


What is the equivalent to Math.Random() in C# .net?

if you follow the top post it is not random for multiple calls in the same timespan. Use the following to fix that





System.Random objRandom = new System.Random(((int)((System.DateTime.No... % System.Int32.MaxValue))));








public int GetRandomNumber(int Low,int High) {





// Returns a random number,


// between the optional Low and High parameters





return objRandom.Next(Low, (High + 1));





}

What is the equivalent to Math.Random() in C# .net?
The following code returns a random number:











int num = random.Next();





The following code returns a random number less than 1000.











int num = random.Next(1000);





The following code returns a random number between min and max:











private int RandomNumber(int min, int max)


{


Random random = new Random();


return random.Next(min, max);


}


Is it safe to download free music from c/net download.com?

yes

Is it safe to download free music from c/net download.com?
I think that it is best and safe to download music from that site but don't try to download some spy software from it because it contained spyware and viruses.


if u don't believe then u can check by this method go to www.download.com and type there "Power spy 2006" and save the file oin your computer then scan it with Norton Antivirus it will show u the risk of spyware. But yes don't insatll it otherwise it can put a spyware in ur computer but i thinks that it is best for music download ok i also thinks that u get it!


Take care
Reply:yeah of course





try " www.emp3s.com "
Reply:that site is one of the safest sites you could ever dream of DLing from. go for it! :)


How to convert the VB6.0 programs to C#.net programs if there is any website to convert?

There's no such site, as far as I'm aware.


I don't think it's possible to convert from VB to C, because it would be too difficult (READ: impossible!) to do such a thing (they are too different programing languages, one is compiled, one interpreted...). You'd better try to understand the algorithm(s) in the programs and rewrite the code!

How to convert the VB6.0 programs to C#.net programs if there is any website to convert?
probably not. The only possibly conversion you can have is maybe into assembler. I've never heard of a program that would translate between languages. Languages are different and they don't have the same functionality. So translating between such different languages is pretty much impossible. You would have start from scratch.





Sorry for the bad news.

hollyhock

What's a more marketable programming language: Visual C#.NET or Visual Basic.NET?

.net is more marketable right now if you know it because it has been being used for a longer period of time, but with C# the capabilities and visuals that you get are razor sharp and allow more implementation, but it will be a while before it becomes really powerful. Businesses are always hesitant of new technologies until they are sure + they don't want to send employies for training so if you learn it now in a year, when you are good it will be taking off even more so than it is now, plus you will be able to market yourself with the newest, latest and greatest knowledge.

What's a more marketable programming language: Visual C#.NET or Visual Basic.NET?
Visual C# . NET is definitely more marketable. As you might know, the demand for .Net Programmer is very high right now and it just keep getting better. Today, .Net framewok is a complete for application development where everything come in handy. You no longer need to download third party software to complete your application. ...
Reply:C# is replacing VB, most of the new tools etc MS releases support C#(like the XNA framework, no support for VB, C# only)
Reply:C# is the better choice as it resembles both C++ and Java. Moreover, because of this, you would do well to learn it as it will prepare you for a potential move to Java.





I say that from experience as I was an old ASP/VB/Com developer that moved to C# in 2001 and am now on a Java J2EE team.
Reply:The older computer languages are always more in demand but competetion is all the more keen. Spoting the trend toward C# can give you a leg up on ALL the competetion. Like the Nike phrase...JUST DO IT!


Welcome , How to work Server and client with C#.NET or VB.NET?

Your question is too broad and vague. Can you be more specific?

Welcome , How to work Server and client with C#.NET or VB.NET?
I want to build chat Report It



Which is the best book for learning c#.net?

I think Brian has it right with either


the Wrox book:


http://www.wrox.com/WileyCDA/WroxTitle/p...


(note that some of the more recent Wrox books are having some Q/A problems, I am not sure about this one)


or, the O'Reilly book:


http://www.oreilly.com/catalog/learncsha...





I also like the Deitel series:


http://www.deitel.com/books/csharphtp2/





A wonderful book to learn (and to learn by doing) Windows Applications is this one:


http://www.amazon.com/gp/product/1932394...





You will probably need a more general C# book alongside it if you have never programmed C# before.





But, if you go through Brown's book, you will know WinForms and how to program Windows applications.

Which is the best book for learning c#.net?
You usually can't go wrong with either a Wrox or O'Reilly book.





Wrox:


http://www.wrox.com/WileyCDA/WroxTitle/p...





O'Reilly:


http://www.oreilly.com/catalog/learncsha...
Reply:There are several books you will get in the market but if you are the biginner for C# language then I would like to recommend the book "Wrox Publications Beginning C#" . This is the best book for beginners, as it guides you through the basics of .net framework as well the fundamentals of C#.
Reply:you can easily find ebook on internet and buy the book as per your taste after viewing it.


How can I authenticate my website developed in asp.net and c#.net (Practice) with the help of win.config?

Hello all you greate Pro.


I am developing a three pages website for practice. I have used Login page, AdminHomePage,and Containt Page.





Home.aspx kept in Root Folder, Login.aspx contain in Admin folder and AdminHome.aspx in Secure Folder.





I Configured win.config as follows.





%26lt;location path="Admin/Secure"%26gt;


%26lt;system.web%26gt;


%26lt;authorization%26gt;


%26lt;allow users="?"/%26gt;


%26lt;deny users="*"/%26gt;


%26lt;/authorization%26gt;


%26lt;system.web%26gt;


%26lt;/location%26gt;





I also write codes in Login.aspx Login Buton as follows





protected sub btnLogin(....)


{


if(FormAuthentication.Authenticate(txtus...


{


Session["SesIS"]=Session.SessionID


FormsAthunticate.redirectfromloginpage(t...


}


}


}

How can I authenticate my website developed in asp.net and c#.net (Practice) with the help of win.config?
Look over you code:


%26lt;allow users="?"/%26gt;


%26lt;deny users="*"/%26gt;





try





%26lt;allow users="*"/%26gt;


%26lt;deny users="?"/%26gt;





This will allow all authenticated users and deny any unknown users..


You are allowing anonymous users then denying all users.





Go to http://www.msdn.com or http://www.asp.net to learn more.

cabbage

What's your opinion about Microsoft Visual C++.net??

for writing programs and create games....!!!





any alternative??

What's your opinion about Microsoft Visual C++.net??
Ehhh... I'd have to disagree strongly with the previous user.


If you're coding a game, 99.9% chance it will be in C/C++/C# (unless its a mobile game).


How do I know this? I'm a programmer at Electronic Arts.





As one of my professors once said, "Java is what a programming language should be, but its also what a program should NOT be." This is because you have much lower-level control with C/C#/C++ - the very things that make it harder than Java are the things which make it more powerful.





I should mention, though, that games can be made in practically every language. If you just want to "make a game," sure, go ahead, use whatever you want (but do your homework - each language has its particular advantages). Heck, games can be made in Flash or Shockwave if you want. It depends on what you're trying to do. If you want to make a PC game like most people think of, though (like just about every game you've ever played) its a very very safe bet it was made in C/C++/C#.





As for Visual Studio .NET, I like it. But its personal preference. Some people prefer other IDEs (as they are called), but VS .NET is a good standard.
Reply:It's fine. There are many alternatives to it.





What language you write in should be dictated by what you want to do and what language gives you confidence. For games, what language you use depends largely on the engines you want to use.
Reply:It is a pretty good program, especially with the newer version (2005).





I am not a big fan of C++, though. If you are just starting out, I would definitely recommend Java. It is simpler (but can still be just as powerful as C++) and there are much more support for it.


Where to find exercise solutions to visual c++.net how to program by dietel?

yoc can find huge solutions in this site


www.codeproject.com


if you need any help contact me


Plz introduce online refrence about ajax for c#.net?

Here:


What are the access modifier in dotnet(C#.net)?

check the link:

What are the access modifier in dotnet(C#.net)?
you know in advance programming may have a lot variables and values,so we should define a scope for accessing to them.


access modifier helps us to do it.


access modifier define the scope of access of a object such as variables,classes,methods,events ,... .





for example:


public %26gt;%26gt;%26gt;%26gt; object is accessible from anywhere of your code


private %26gt;%26gt;%26gt;%26gt;object is accessible from the class which object is defined in and subclasses.


protected %26gt;%26gt;%26gt;%26gt;object is accessible from which object is defined in and inherited classes

phlox

I want to validate a textbox in c#.net for windows application?

The textbox should take only numbers,backspace and Enter key.when i press the enterkey after entering the number in textbox it should invoke a method.(priority of this question is high and urgent.)

I want to validate a textbox in c#.net for windows application?
Use Validator control in asp .net


What are the access specifier in dotnet(C#.net)?

check the link....

What are the access specifier in dotnet(C#.net)?
you know we have objects (such as classes,methods,variables,


events,...) in programming, so we should define scope for accessing them.





access modifier(or specifier) helps us with that.


we define access scope of an object via access modifier.





for example:


1)public %26gt;%26gt;%26gt;%26gt; object is accessible from anywhere of your code within the namespace


2)private %26gt;%26gt;%26gt;%26gt; object is accessible from the class which object is defined in,and all subclasses of it


3)protected %26gt;%26gt;%26gt;%26gt; object is accessible from the class which object is defined in, and all inherited classes





attention:


if you want to access it from another name space should use "static" after public %26gt;%26gt;%26gt; "public static"





I wish it would be helpful
Reply:Upto my knowledge,





private,


protected,


protected friend,


public,


friend





These are the access specifiers in dot net


I am looking for a good book on C# and C#.net prefarably by indian author. even foreign authors will do?

I recommend these books for learning C#


What's the eistiest way in Console C#.Net to shut down the program?

Use the Environment.Exit() method.

verbena

Cross tab report of crystal report in c#,.NET?

please help me to solve this


me table values are follows:


name, type, result


a 1 0


b 2 0





Crystal Report should look like


. name


type result


such as





. a b


1 0 -


2 - 0





thanx

Cross tab report of crystal report in c#,.NET?
I'm still a noob when it comes to cross-tab reports/queries, but to me it seems like a cross-tab is best utilized for sums or counts of two-field groups. For instance, you could use a cross-tab to generate counts of each type grouped by each name. But once you add the result variable, I think a cross-tab is no longer appropriate.





To do what you're describing, I would just lay out the report using a table instead of a cross-tab.


Which is the best standard book for c++,.net please tell?

books prefered

Which is the best standard book for c++,.net please tell?
For the c++ the best book is by Robert Laffore.


It is of Galgotia Publication and book name is Object Oriented Programming in Turbo C++ Balagurusami is also good book but for using that book you should have a good knowledge of C++.


Robert Laffore is best for beginners as well as experts
Reply:i think BALAGURUSWAMY is the best 4 c++
Reply:Bruce Eckel's MindView, Inc: Thinking in C++ 2nd Edition by Bruce Eckel


This two volume book, which covers Standard C++, is available free on-line. ... you for your book 'Thinking in C++' which is, with no doubt, the best book I ...


http://www.mindview.net/Books/TICPP/Thin...
Reply:T Ramachandran is the best books for C++.


Download some books which mey be useful to u from here


http://www.download-googlesearch.blogspo...
Reply:Balaguru swami is for kid. beat book on c++ Author "kanitkar"
Reply:Collection of Free-e-Books on C++ Programming Language





1. C++ GUI Programming with Qt 3 ( Author:Jasmin Blanchette, Mark Summerfield ISBN:0131240722 Pages:464 Publication Date:January 15, 2004 Publisher:Prentice Hall PTR )





2. Visual C++ 6 Unleashed ( First Printing:July, 2000)





3. An Introduction to C++ Programming( Author:Björn Fahller)





4. An Overview Of The C++ Programming Langauge( Author:Bjarne Stroustrup)





5. How To Think Like A Computer Scientist With C++( Author:Allen B. Downey)





6. Introduction to OOP Using C++( Author:Peter Müller)





7. A Beginner's C++( Author:Neil Gray)





8. Programming in C++ - Rules and Recommendations( Author:FN/Mats Henricson and Erik Nyquist)





9. Thinking in C++ Volume 1 - Introduction to Standard C++( Author:Bruce Eckel)





10. Thinking in C++ Volume 2 - Practical Programming( Author:Bruce Eckel, Chuck Allison)





11. C++ In Action - Industrial Strength Programming Techniques( Author:Bartosz Milewski)


How to prevent user to browse to previous page everytime after logout in ASP.NET using c#. Please help, urgent

The language using is ASP.NET in c#, try to using session but cannot work. Please give me some code example. Thanks a lot.

How to prevent user to browse to previous page everytime after logout in ASP.NET using c#. Please help, urgent
You'd think you could capture the back button event in ASP.net, but that isn't so. But there's a couple tricks you can use.


The first one is to use a javascript like this one:





%26lt;script language="JavaScript"%26gt;


%26lt;!--


javascript:window. history.forward(1);


//--%26gt;


%26lt;/script%26gt;





It will send the user forward one page, so hitting back brings them right to where they are.





Another way is to create a blank page. For example if you have a 4 page site, and the 4th page is the logout screen. Add a 5th page with nothing on it. When the user goes from page 3 to page 4, they hit page 5 first. So the "Next" button on page 3 says Response.Redirect("Page5"). The only thing in Page 5 is in the page load event, which says Response.Redirect("Page4"). It goes by so fast the user never sees it and doesn't know he went through one page on the way to another.


So now the user is on page 4 and hits the back button to go to page 3, but it actually loads Page 5, which immediately sends the user to page 4.





Try both of those and see if one suits you.
Reply:the easiest way would be to have a javascript tag to go forward as follows: This is more of a pseudo code, so you can expand on it.





%26lt;html%26gt;%26lt;head%26gt;


%26lt;script language="javascript"%26gt;


href.location=go.forward();


%26lt;/script%26gt;





%26lt;/head%26gt;%26lt;/html%26gt;


Please tell me where can i find c#.net programs for web page creation?

There are several sites and tutorials out there to show you how to accomplish your goals in C# for the web (ASP.NET)





Typically I would just search for the specifics of what I'm looking for.





For example: C# marquee tutorial.


to look up how to do a marquee in c#





If there's anything specific you need help with you can email me and I'll try and help you find what you need.

snapdragon2

Has anyone enrolled or completed the visual c# .net program at penn foster career school?

If so please tell me about your experiences, good and bad, and if you completed it, how well were you able to find a job afterwards?


How can i save an image using c# .net? just a save button with a save functionality,...?

it can be save in a specific location like desktop, etc. ...thankyOU

How can i save an image using c# .net? just a save button with a save functionality,...?
You will need to use the image class in the system.drawing namespace.





// Construct a bitmap from the button image resource.


Bitmap bmp1 = new Bitmap(typeof(Button), "Button.bmp");





// Save the image as a GIF.


bmp1.Save("c:\\button.gif", System.Drawing.Imaging.ImageFormat.Gif);





// Construct a new image from the GIF file.


Bitmap bmp2 = new Bitmap("c:\\button.gif");





// Draw the two images.


e.Graphics.DrawImage(bmp1, new Point(10, 10));


e.Graphics.DrawImage(bmp2, new Point(10, 40));





// Dispose of the image files.


bmp1.Dispose();


bmp2.Dispose();


How to set start up form in c#.net?

Assuming you know how to use the command line to compile or using an IDE:





using System;


using System.Windows.Forms;





namespace MyNamespace


{


class Program


{


[STAThread]


static void Main()


{


Application.Run(new Form());


}


}


}





This code will create a new System.Windows.Forms.Form and run it. You will have to extend the Form class and add the controls you want and then run a new instance of that class instead of Form.





Alternatively,


Download Visual C# 2008 Express from


http://www.microsoft.com/express/vcsharp...


and you can create a Windows Form Application and Visual C# 2008 Express will generate the base code for your form. You can then use the builtin designer to easily create your own form.

How to set start up form in c#.net?
In visual Studio, you set it in the project properties.





In the SDK





Quick example without VS:





namespace Microsoft.Samples.WinForms.Cs.SimpleHell... {


using System;


using System.Windows.Forms;





public class SimpleHelloWorld : Form {





[STAThread]


public static int Main(string[] args) {


Application.Run(new SimpleHelloWorld());


return 0;


}





public SimpleHelloWorld() {


this.Text = "Hello World";


}


}


}


What is a method in C#.NET?

An example would be great.

What is a method in C#.NET?
A method (not just in C#, but also in other object oriented languages) is a function that is part of a class. It is for this reason sometimes also referred to as a member function.





class Test


{


    public int Add(int x, int y)


    {


        return x + y;


    }


}





In this example, Add() is a method of the Test class.
Reply:method is function that it can capsuled your code and run some related code in it.for example in windows application when you click any button it execute a method that do something(running some code)

avender

Can you give suggestions about c-net.com?

There are free downloads, supposidly on this site. There were several things that said "freedownloads." Can you suggest free, really truly free downloads for dvd and cd burning?

Can you give suggestions about c-net.com?
http://www.deepburner.com/?r=download
Reply:I like ImgBurn for CDs and DVDs





http://imgburn.com/





By "truly free", do you mean "open-source"? If so, see InfraRecorder."





http://infrarecorder.sourceforge.net/





By the way, SourceForge is an excellent place for free software:





http://sourceforge.net/index.php


If 1st Radiobuttonlist 'item' is check, 2nd radiobuttonlist is enable/disable(asp.net with C# using JScript)

It has 2 Radio ButtonList Control...


If 1st RadioButtonlist have 3 buttons and 2nd will 3 Buttons...


1st radiobuttonlist item will select the 2nd will enable/disable the radiobuttonlist control....


(By Using ASP.Net with C# and also Using JavaScript)

If 1st Radiobuttonlist 'item' is check, 2nd radiobuttonlist is enable/disable(asp.net with C# using JScript)
This might help get you started on working with the Radiobutton class





http://msdn2.microsoft.com/en-us/library...


How do you embed standard C code in a C++ .NET app?

extern "C" {


/* C code */


}





(not just for MS tools, part of the C++ standard)


What are the differences between c#.net and java?

Java and C# more or less match with each other.Java is influeced by C++ whereas C# is enhaced version of C++. C# derives from C/C++ with modernization and type safety- to adapt the changes in environment and to implement advances in the art of programming.


In Java the return type ofmain() is void whereas in C#, We are not restricted only to void we can also also have int.


In Java pointers does not exist and was not designed to be compatible with any other languge. Although the default for C# code is safe mode , we can declare classes or method to be unsage This enable us to use pointers , structs andstatically allocated arrays.Both the safe mode and unsafe code run in the managed space , which implies no marshalling is incurred when calling unsafe code from safe code.


In Java the main(), if there are no parameters required we still need to incle the command line parameters array. This is not the case with C# we can declare Main() as


public static void Main(){...}


Although Java supports constructors, it doesn't have destructors. Whereas in C# we have destructors to release all the expensive resources even though we have garbage collector, which does the same - isn't invoked immediately after the variable goes out of scope, but only at certain intervals or memory conditions.





In Java it is not possible to declare unsigned integers whereas in C# POS type system i.e., intended to support the complete implementation of a wide range of programming language makes us impossible to declare unsigned integers.








check this page for more

What are the differences between c#.net and java?
"The CLI and C# have many similarities to Sun's JVM and Java. They are strong competitors. Both are based on a virtual machine model that hides the details of the computer hardware on which their programs run. Both use their own intermediate byte-code, Microsoft calling theirs Common Intermediate Language (CIL; formerly MSIL) and Sun Java bytecode..NET in its complete form (Microsoft's implementation) is currently only fully available on Windows platforms and partially available on Linux and Mac, whereas Java is fully available on nearly all platforms." - Wikipedia





Basically, .NET is made by Microsoft where you have to buy their development software and usually works only on Windows. Java is made by Sun and works on Windows, Mac, and Linux, and free development software is available such as Eclipse http://www.eclipse.org/ and others.
Reply:C++ (pronounced "see plus plus", IPA: /siː plʌs plʌs/) is a general-purpose programming language with high-level and low-level capabilities. It is a statically typed, free-form, multi-paradigm, usually compiled language supporting procedural programming, data abstraction, object-oriented programming, and generic programming.





C++ is regarded as a mid-level language. This indicates that C++ comprises a combination of both high-level and low-level language features.[1]





Dr. Bjarne Stroustrup developed C++ in 1979 at Bell Labs as an enhancement to the C programming language and named it "C with Classes". In 1983 it was renamed to C++. Enhancements started with the addition of classes, followed by, among other features, virtual functions, operator overloading, multiple inheritance, templates, and exception handling. The C++ programming language standard was ratified in 1998 as ISO/IEC 14882:1998, the current version of which is the 2003 version, ISO/IEC 14882:2003. A new version of the standard (known informally as C++0x) is being developed.








.net (network) is a generic top-level domain (gTLD) used on the Internet's Domain Name System. The .net gTLD is currently operated by VeriSign. Registrations are processed via accredited registrars and internationalized domain names are also accepted (see details).





.net is one of the original top-level domains (despite not being mentioned in RFC 920), created in January 1985. It was initially intended for use by network oriented entities such as Internet service providers. Currently, there are no formal restrictions on who can register a .net domain name. Therefore, while still popular with network operators, it is often treated as a second .com.





In addition to being an abbreviation for "network", "net" is also a romanisation of the Russian word нет ("no" or "not", also commonly romanised as the more acoustically appropriate "nyet"), and a domain name like "object.net" can be interpreted as "there is no object". Some domains exploit this pun, for example mozga.net (brain absent) or putina.net (not Vladimir Putin) and DamoW.net (there is no Damien Walsh).





Some online poker or other gambling sites operate real-money games at a .com address and games without actual stakes (promoted as being for fun or education) at the same name in .net. This can be used to get around legal issues regarding the advertising of online gambling in the United States, since the .net site can be promoted legally, but such promotion helps make people aware of the name of the real-money site even in jurisdictions where such things are of questionable legality.








Java is a programming language originally developed by Sun Microsystems and released in 1995 as a core component of Sun's Java platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java applications are typically compiled to bytecode which can run on any Java virtual machine (JVM) regardless of computer architecture.





The original and reference implementation Java compilers, virtual machines, and class libraries were developed by Sun from 1995. As of May 2007, in compliance with the specifications of the Java Community Process, Sun made available most of their Java technologies as free software under the GNU General Public License. Others have also developed alternative implementations of these Sun technologies, such as the GNU Compiler for Java and GNU Classpath.





Java's design, industry backing and portability have made Java one of the fastest-growing and most widely used programming languages in the modern computing industry.
Reply:I've never done C#, but I have done C++. Let me tell you, if they are anything alike, they are both very similar to Java. The syntax is a little different, but there are plenty of similarities.





C#.net is part of the .net framework, which is all microsoft. Java, however, is made by Sun Microsystems and is compatible with different platforms. .Net is good if you are learning other Microsoft based languages, such as vb.net

violet

Which of these are better in REAL JOB WORLD?C#.NET or VB.NET?

I am using VB.NET and I really like it and it is best now a days coz every one wants the better Grapgical user Interface for their system. Other thing about VB.NET is, you don't need to do much more coding. Software will do every thing for you and in built classes and objects would support every thing that you wanna do.





I prefer VB.NET.

Which of these are better in REAL JOB WORLD?C#.NET or VB.NET?
C#.NET is the more marketable skill. C++ was the standard for years, but the .NET platform has made C# extremely popular. You can get a job doing either C# or VB, but you will earn more money with C#.





In my last job at a major tax and finance software company, they selected C#.NET as the platform on which to standardize their development.


Which is the best book for visual basic&c++,c,.net?

I have some links below - not exactly books but useful video and pdf resources for the above from Microsoft. Hope they are also useful

Which is the best book for visual basic%26amp;c++,c,.net?
for vb Unleased VB


c++ Robert Lafore





c Spirit of C
Reply:For c++ use OOPS by EBalaguruswami
Reply:I dont use C++ but thers good tutorials here


http://3dbuzz.com/vbforum/sv_home.php
Reply:Sams Teach Yourself Visual Basic in 21 Days


Teach Yourself C++ in 21 Days


and other books of same series