iam using Asp.Net 2005professional but can't find how to creat a web-appliction using C# language.......if anybody knows plz tell me ...( the suggestion which works will get full 10 points)
Can anybody plz tell the steps 2 creat a WebApplication using C# in ASP.NET 2005?
I'm assuming you mean that you're using Visual Studio.NET 2005 Professional.
Click on File and then New. Select "Web Site". In the lower left corner, you have the ability to change the language from Visual Basic to C#.
Monday, May 24, 2010
.NET C# Drag and Drop?
Are there some one who has an example of Drag an Drop in a list view (C#)
.NET C# Drag and Drop?
http://www.codeproject.com/cs/miscctrl/d...
.NET C# Drag and Drop?
http://www.codeproject.com/cs/miscctrl/d...
How can i insert and retrive pdf files into sql server database and i am programming with c#.net?
u've to use blob / clob data type for doing so.
and you've to use byte array in c# for uploading or retrieving from database.
try documentation for details. if you could'n find any answer contact me.
How can i insert and retrive pdf files into sql server database and i am programming with c#.net?
Store the names/locations of the files, rather than the filles themselves - this will be very fast.
If you store the files as BLOB's (binary large objects) processing will be slow, and your database will be harder to manage.
wallflower
and you've to use byte array in c# for uploading or retrieving from database.
try documentation for details. if you could'n find any answer contact me.
How can i insert and retrive pdf files into sql server database and i am programming with c#.net?
Store the names/locations of the files, rather than the filles themselves - this will be very fast.
If you store the files as BLOB's (binary large objects) processing will be slow, and your database will be harder to manage.
wallflower
Now i creating new website for discussion forum .give me some idea about how to use c#.net classes in website
The only way to know about c#.net is to either ask a computer person or seach the internet or to refer from a book!
How I can create property or event for a component when I desin it in ControlLibrary (C#.Net)?
you can import the dll from the control library to use the object you created.
Which is the best paid profession in it / computer: 1. networking, 2. unix, 3. oracle 4. c#.net. please help?
please guide for usa job seeker from india
Which is the best paid profession in it / computer: 1. networking, 2. unix, 3. oracle 4. c#.net. please help?
oracle DBAs who are super experienced probably are in the most demand so higher salaries. the networking experts are probably number 2. the key thing is experience...
Which is the best paid profession in it / computer: 1. networking, 2. unix, 3. oracle 4. c#.net. please help?
oracle DBAs who are super experienced probably are in the most demand so higher salaries. the networking experts are probably number 2. the key thing is experience...
Need Help with Loan Calc Logic in C# for ASP.NET 2.0 App?
Hi!
I am coding a ASP.NET 2.0 mortgage calc app and need some help with the C# code required to perform the actual calcs. Here are the specs.
The following data is available:
- Selling price
- Down payment
- Interest rate (value between 0.0 and 1.0)
- Number of years
- Periods per year (12, 24, 52)
- Payment per period
Based on validation groups, I need to calc the following:
1. Payment per period using the following formula
payment = (Principle x Rate) / (1 - (1+Rate)) ^ -period
(or)
"Payment is equal to principle times rate divided by 1 minus (1 plus rate) to the negative period power"
2. Loan amount using the following formula
loanAmount = Payment *(1 - (1 + Rate)^-period)/Rate
(or)
"Loan amount is equal to payment times 1 minus (1 plus rate) to the negative period power divided by rate"
Any help is appreciated!
Need Help with Loan Calc Logic in C# for ASP.NET 2.0 App?
These people might be able to help you..
http://www.bleepingcomputer.com/
They gave me great help.
I hope this helps you.
Good Luck!
hollyhock
I am coding a ASP.NET 2.0 mortgage calc app and need some help with the C# code required to perform the actual calcs. Here are the specs.
The following data is available:
- Selling price
- Down payment
- Interest rate (value between 0.0 and 1.0)
- Number of years
- Periods per year (12, 24, 52)
- Payment per period
Based on validation groups, I need to calc the following:
1. Payment per period using the following formula
payment = (Principle x Rate) / (1 - (1+Rate)) ^ -period
(or)
"Payment is equal to principle times rate divided by 1 minus (1 plus rate) to the negative period power"
2. Loan amount using the following formula
loanAmount = Payment *(1 - (1 + Rate)^-period)/Rate
(or)
"Loan amount is equal to payment times 1 minus (1 plus rate) to the negative period power divided by rate"
Any help is appreciated!
Need Help with Loan Calc Logic in C# for ASP.NET 2.0 App?
These people might be able to help you..
http://www.bleepingcomputer.com/
They gave me great help.
I hope this helps you.
Good Luck!
hollyhock
How to find the data rate/bandwidth of a node in d network..s any code available in c#.net?
If you're using sharepoint:
SPsite. Usageinfo. Bandwidth. ToString()
MSDN KB: SPGlobalAdmin Class
http://msdn2.microsoft.com/en-us/library...
SPsite. Usageinfo. Bandwidth. ToString()
MSDN KB: SPGlobalAdmin Class
http://msdn2.microsoft.com/en-us/library...
How can I Compile C# (CIL) To Native Machine Code to distribute WITHOUT the .NET framework?
I make C# programs in .NET 2.0 and i want to be able to run these programs without the .NET framework. I have heard about using NGEN but i want an executable that can be run on other computers.
How can I Compile C# (CIL) To Native Machine Code to distribute WITHOUT the .NET framework?
http://www.xenocode.com/Products/Postbui...
Its a commercial product.
How can I Compile C# (CIL) To Native Machine Code to distribute WITHOUT the .NET framework?
http://www.xenocode.com/Products/Postbui...
Its a commercial product.
I have 10 datagrid views in a form i want to write a loop for it in c#.net.How do i wirte the code.?
I have written in this way
for(i=0;i%26lt;10;i++)
{
(DataGridView+i).DataSource=Da...
(DataGridView+i).Datamember=Da...
}
But for this iam getting a error .
Pls tell me how to write the code for the following.
I have 10 datagrid views in a form i want to write a loop for it in c#.net.How do i wirte the code.?
Sounds to me like you want a list of DataGridViews, so first you have to create the list.
Note you will need to declare System.Collections.Generic to have access to List.
using System.Collections.Generic;
dataGridViews = new List%26lt;DataGridView%26gt;();
Next you need to populate the list
dataGridVIews.Add( new DataGridView );
then to loop through it, simply do this:
foreach( DataGridView mGrid in dataGridViews )
{
mGrid.DataSource=blah;
mGrid.DataMember=blah;
}
This will loop through all of them in the list. I'm pretty sure you can also use your method and just use dataGridViews[i].DataSource=blah;
Hopefully that accomplishes what you needed.
Reply:for(i=0;i%26lt;10;i++)
{
(DataGridView+i+).DataSource=Da...
(DataGridView+i+).Datamember=Da...
}
The way it was before does not get that i is variable.
Hope this will work.
for(i=0;i%26lt;10;i++)
{
(DataGridView+i).DataSource=Da...
(DataGridView+i).Datamember=Da...
}
But for this iam getting a error .
Pls tell me how to write the code for the following.
I have 10 datagrid views in a form i want to write a loop for it in c#.net.How do i wirte the code.?
Sounds to me like you want a list of DataGridViews, so first you have to create the list.
Note you will need to declare System.Collections.Generic to have access to List.
using System.Collections.Generic;
dataGridViews = new List%26lt;DataGridView%26gt;();
Next you need to populate the list
dataGridVIews.Add( new DataGridView );
then to loop through it, simply do this:
foreach( DataGridView mGrid in dataGridViews )
{
mGrid.DataSource=blah;
mGrid.DataMember=blah;
}
This will loop through all of them in the list. I'm pretty sure you can also use your method and just use dataGridViews[i].DataSource=blah;
Hopefully that accomplishes what you needed.
Reply:for(i=0;i%26lt;10;i++)
{
(DataGridView+i+).DataSource=Da...
(DataGridView+i+).Datamember=Da...
}
The way it was before does not get that i is variable.
Hope this will work.
I have 10 datagrid views in a form i want to write a loop for it in c#.net.How do i wirte the code.?
I have written in this way
for(i=0;i%26lt;10;i++)
{
(datagridview+i).DataSource=DataSet;
(datagridView+i).Datamember=DatsSet.Ta...
}
But for this iam getting a error .
Pls tell me how to write the code for the following.
I have 10 datagrid views in a form i want to write a loop for it in c#.net.How do i wirte the code.?
for(i=0;i%26lt;10;i++)
{
(datagridview + i +).DataSource=Da...
(datagridView + i+ ).Datamember=Da...
}
The problem was taht the gridview is required to be appended.Hope this will work.And if the value of i is appened to the datasourse the way it was before will give error as the compiler does not know that it is the variable.So we require to append it the i have descrided
cabbage
for(i=0;i%26lt;10;i++)
{
(datagridview+i).DataSource=DataSet;
(datagridView+i).Datamember=DatsSet.Ta...
}
But for this iam getting a error .
Pls tell me how to write the code for the following.
I have 10 datagrid views in a form i want to write a loop for it in c#.net.How do i wirte the code.?
for(i=0;i%26lt;10;i++)
{
(datagridview + i +).DataSource=Da...
(datagridView + i+ ).Datamember=Da...
}
The problem was taht the gridview is required to be appended.Hope this will work.And if the value of i is appened to the datasourse the way it was before will give error as the compiler does not know that it is the variable.So we require to append it the i have descrided
cabbage
How can i get programs of c computer language on net?
hi i wanna know that can i get the prorams of data structure in c on the net if u know plz reply imiditaly
How can i get programs of c computer language on net?
you can try
http://homework.teamtutorial.com/
Reply:http://en.wikibooks.org/wiki/Main_Page
its good
Reply:www.cprogramming.com/
www.codeproject.com
www.programmersheaven.com/
Reply:http://www.planet-source-code.com/
How can i get programs of c computer language on net?
you can try
http://homework.teamtutorial.com/
Reply:http://en.wikibooks.org/wiki/Main_Page
its good
Reply:www.cprogramming.com/
www.codeproject.com
www.programmersheaven.com/
Reply:http://www.planet-source-code.com/
How can I pass multiple lines of text from text box to list box using c#.net?
I would like to enter multiple e-mail id's in text box at a time and get it stored in listbox. I also have to void the email_id which is already in the listbox with out entering any duplicates. I am using a button control also i.e., if I enter the value in textbox and press the button I want it to be in list box.
Hope my question is clear!! Can any one help? Thanks in advance
How can I pass multiple lines of text from text box to list box using c#.net?
Basically, you'll need a global array that holds all the values you want stored in the listbox. You'll bind that listbox's values to the array.
Or, if you prefer, you could declare a global DataTable or similar data structure, and store the values for the listbox in that, to make things simpler, if you're more comfortable using ADO.
Your button control will call a function that picks up the global array (or DataTable). It examines all entries in the array (using foreach or a reader or similar) to see if the entry is already in the array.
If not, you'll push the choice onto the end of the array (or add a record to the DataTable), then rebind the listbox with the array (or DataTable).
Reply:check out http://www.pscode.com for great sample codes.
Hope my question is clear!! Can any one help? Thanks in advance
How can I pass multiple lines of text from text box to list box using c#.net?
Basically, you'll need a global array that holds all the values you want stored in the listbox. You'll bind that listbox's values to the array.
Or, if you prefer, you could declare a global DataTable or similar data structure, and store the values for the listbox in that, to make things simpler, if you're more comfortable using ADO.
Your button control will call a function that picks up the global array (or DataTable). It examines all entries in the array (using foreach or a reader or similar) to see if the entry is already in the array.
If not, you'll push the choice onto the end of the array (or add a record to the DataTable), then rebind the listbox with the array (or DataTable).
Reply:check out http://www.pscode.com for great sample codes.
I have done BCA now thinking to do MCA by distance (open uni) with it c# .net am i in right path for IT job?
IGNOU is the open univesity,for better career what should i do.
I have done BCA now thinking to do MCA by distance (open uni) with it c# .net am i in right path for IT job?
Special Education refers to children in school who have special learning needs.
If you are a student, please talk to your school counselor, they can set up a practice interview with you and give you specific advice.
a better category for this question might be the BUSINESS section under CAREERS
I hope this helps you in your job search!
Reply:Yes you are in right path. If you have completed BCA, why don't you start looking for an IT job while studying for MCA by distance education.
In IT Industry experience counts.
I have done BCA now thinking to do MCA by distance (open uni) with it c# .net am i in right path for IT job?
Special Education refers to children in school who have special learning needs.
If you are a student, please talk to your school counselor, they can set up a practice interview with you and give you specific advice.
a better category for this question might be the BUSINESS section under CAREERS
I hope this helps you in your job search!
Reply:Yes you are in right path. If you have completed BCA, why don't you start looking for an IT job while studying for MCA by distance education.
In IT Industry experience counts.
I want to develop a search engine.i do'nt know how to begin.i know programing in java,c,c++,.net.plz.. help
i m a final year IT student.i want to design a search engine.because i m not having anyone to guide me.plzz. help me to do this work
I want to develop a search engine.i do'nt know how to begin.i know programing in java,c,c++,.net.plz.. help
Please take a look at MnoGoSearch. It is free/open source software. So you have freedom to study by using it as the example. ( you can access its source code )
phlox
I want to develop a search engine.i do'nt know how to begin.i know programing in java,c,c++,.net.plz.. help
Please take a look at MnoGoSearch. It is free/open source software. So you have freedom to study by using it as the example. ( you can access its source code )
phlox
Do I need to learn C# or VB.NET before learning ASP.NET?
Can I learn both on the same time? Or should I know some C# or VB.NET first? Thanks
Do I need to learn C# or VB.NET before learning ASP.NET?
Well to learn C# it is required that u test your code. Testing your code will require you to create an application which calls your code. Creating a Web Application to test your C# code will the ultimate solution. You'll be exploring ASP.NET and learning C# at the same time.
Hope this helps.
Reply:You can learn VB or C# concurrently with ASP.NET. ASP.NET is really just an environment for your VB or C# code to run under. The other type of programming typically done with these languages is for the Windows forms environment- the standard windows applications you are used to.
When writing an ASP.NET application, you write the code in VB.NET or C#. That code will (most likely) define the output of HTTP requests from remote clients.
As to whether or not to use VB.NET or C#- the choice is yours. VB has really become a powerful object-oriented language and is very easy to use. I almost exclusively use it, although most of the applications I now write are quick and dirty Intranet applications.
Reply:You need to learn C#
Do I need to learn C# or VB.NET before learning ASP.NET?
Well to learn C# it is required that u test your code. Testing your code will require you to create an application which calls your code. Creating a Web Application to test your C# code will the ultimate solution. You'll be exploring ASP.NET and learning C# at the same time.
Hope this helps.
Reply:You can learn VB or C# concurrently with ASP.NET. ASP.NET is really just an environment for your VB or C# code to run under. The other type of programming typically done with these languages is for the Windows forms environment- the standard windows applications you are used to.
When writing an ASP.NET application, you write the code in VB.NET or C#. That code will (most likely) define the output of HTTP requests from remote clients.
As to whether or not to use VB.NET or C#- the choice is yours. VB has really become a powerful object-oriented language and is very easy to use. I almost exclusively use it, although most of the applications I now write are quick and dirty Intranet applications.
Reply:You need to learn C#
How to maintain the link colors ie selected link color is different from other links in ASP.NET with C#.NET?
U can use "style" attribute in "%26lt;a%26gt;" or use CSS file for this.
in this article describe your answer in "Step 5: Styling the links" Section
http://www.w3.org/Style/Examples/011/fir...
U have to use Css Class name in "style" Property of web control in C#.net
How to maintain the link colors ie selected link color is different from other links in ASP.NET with C#.NET?
Is it really, what computer do you have?
in this article describe your answer in "Step 5: Styling the links" Section
http://www.w3.org/Style/Examples/011/fir...
U have to use Css Class name in "style" Property of web control in C#.net
How to maintain the link colors ie selected link color is different from other links in ASP.NET with C#.NET?
Is it really, what computer do you have?
Does anyone know of a place where i can get the completed work for Microsoft Visual C++ .NET by Don Gosselin?
I bought the book about a month or so ago and I've gotten to about chapter 7 with little problems. I have nothing to compare my work to and would like to know if what I have is similar to what the author meant it to be. My edition did not come with any documentation for the projects or exercises in the book so I have nothing to go by. Any help would be appreciated. Thank you.
Does anyone know of a place where i can get the completed work for Microsoft Visual C++ .NET by Don Gosselin?
Check out Amazon.com. It's listed there.
Does anyone know of a place where i can get the completed work for Microsoft Visual C++ .NET by Don Gosselin?
Check out Amazon.com. It's listed there.
I want some projects ideas of medium complex projects related to graphics, can be developed in C# .Net?
I've done a lot of work in this area. You could make a web application that overlays text onto a bitmap using the System.Drawing.Graphics class. Or you could write a program to parse and render scalable vector graphics ( http://www.w3.org/Graphics/SVG/ )
You could OLE automate a graphics program, like Adobe InDesign, too.
I want some projects ideas of medium complex projects related to graphics, can be developed in C# .Net?
Some fine examples can be found here: http://www.google.com/puzzles/.
Reply:I once created one that scanned paperwork from scanners, and auto cropped them.
The auto cropping was a challenge.
verbena
You could OLE automate a graphics program, like Adobe InDesign, too.
I want some projects ideas of medium complex projects related to graphics, can be developed in C# .Net?
Some fine examples can be found here: http://www.google.com/puzzles/.
Reply:I once created one that scanned paperwork from scanners, and auto cropped them.
The auto cropping was a challenge.
verbena
How to write a c++ console application in .NET?
I want to write a normal C++ program in .net(2003)
How to write a c++ console application in .NET?
1. Click on "New Project" under the "File Menu"
2. Click on "Visual C++ Projects" folder in the "Project Types" listing
3. In the right window, select Win32 Console Project
How to write a c++ console application in .NET?
1. Click on "New Project" under the "File Menu"
2. Click on "Visual C++ Projects" folder in the "Project Types" listing
3. In the right window, select Win32 Console Project
I want to know some websites which are providing the free code on C#.NET?
http://www.asp.net
I want to know some websites which are providing the free code on C#.NET?
http://www.techsupportalert.com/best_46_...
Reply:Chek out the following sites :
http://www.dotnetspider.com
http://www.vijaymukhi.com
Reply:why don't you try searching sites via http://code.google.com/.
I want to know some websites which are providing the free code on C#.NET?
http://www.techsupportalert.com/best_46_...
Reply:Chek out the following sites :
http://www.dotnetspider.com
http://www.vijaymukhi.com
Reply:why don't you try searching sites via http://code.google.com/.
Is there a program available that can automatically generate a flowchart for a C++ .NET function?
try Crystal REVS for C++, .net. Do a a google search for this. this product is a commercial one, but allow a free evaluation.
if you are looking for free stuff, try serching in sourceforge.net.
hope this helps.
if you are looking for free stuff, try serching in sourceforge.net.
hope this helps.
Is there a way to put hyperlinks in your source code as a comment in C# .NET 2005?
Instead of having only text based comments to describe your code, it would be nice to be able to link to a webpage that contains graphics, etc. I am always documenting my code and then having to turn around and do a PowerPoint for the code review to really explain it. It would be nice to just hyperlink to an html page so I didn't have to do it and maintain it twice.
Is there a way to put hyperlinks in your source code as a comment in C# .NET 2005?
I'm not exactly sure, but I do think it may be possible - most likely through the XML commenting mechanisms that exist in .Net. I would look into it from that vantage point...
Reply://http://www.yahoo.com
the first // is for a comment, the second is part of the html syntax.
Is there a way to put hyperlinks in your source code as a comment in C# .NET 2005?
I'm not exactly sure, but I do think it may be possible - most likely through the XML commenting mechanisms that exist in .Net. I would look into it from that vantage point...
Reply://http://www.yahoo.com
the first // is for a comment, the second is part of the html syntax.
What is the code to draw simple charts such as line,pie,bar,scatter in c#.net without using any database?
Well, you need a data source of some type to populate the chart, so you need to be more specific about what data source you would want to use.
Rather than reinventing the wheel, you would probably be best off using a pre-made charting component, such as the one made by Dundas. A listing and reviews of these components is here:
http://www.howtoselectguides.com/dotnet/...
If you wanted to do the charting on your own, you'd use the System.Drawing namespace to mark up some images on the fly, again, based on some data source of some sort.
Rather than reinventing the wheel, you would probably be best off using a pre-made charting component, such as the one made by Dundas. A listing and reviews of these components is here:
http://www.howtoselectguides.com/dotnet/...
If you wanted to do the charting on your own, you'd use the System.Drawing namespace to mark up some images on the fly, again, based on some data source of some sort.
I am using Java , C++ and dot net .which program can carter to all? Is eclipse better or JBuilder?
Currently I or C++ and JAVA, I am using Eclipse and Borland JBuilder ? And then using Visual Studio to program dot net ? I looking for a program which have every programming needs.
I am using Java , C++ and dot net .which program can carter to all? Is eclipse better or JBuilder?
notepad.
Reply:I like NetBeans the best because it has the most documentation, and it will do textbook code. JBuilder will utilize proprietary classes outside of traditional java to make the project work. NetBeans also lets you add a plug-in for C++. Microsoft and Sun had a disagreement so I don't think VisualStudio will ever accomplish java.
In the Open Source community is the mono project. mono is a wrapper for .net and it is still under development.
There is one other solution, QT from Trolltech. They offer a student version of their product that is free to use. Should you write commercial code, then Trolltech wants a license fee. QT is cross-platform C++. VisualStudio is Windows only.
Really, the Linux platform is the powertool for what you are seeking to be all-in-one.
I am using Java , C++ and dot net .which program can carter to all? Is eclipse better or JBuilder?
notepad.
Reply:I like NetBeans the best because it has the most documentation, and it will do textbook code. JBuilder will utilize proprietary classes outside of traditional java to make the project work. NetBeans also lets you add a plug-in for C++. Microsoft and Sun had a disagreement so I don't think VisualStudio will ever accomplish java.
In the Open Source community is the mono project. mono is a wrapper for .net and it is still under development.
There is one other solution, QT from Trolltech. They offer a student version of their product that is free to use. Should you write commercial code, then Trolltech wants a license fee. QT is cross-platform C++. VisualStudio is Windows only.
Really, the Linux platform is the powertool for what you are seeking to be all-in-one.
Converter for C++ to VB.net?
I need a coverter or application to convert C++ code to VB.net code.
Converter for C++ to VB.net?
Its not called a converter its called porting. Also I am not sure of any tools myself that will allow you to do that ( I am not saying there arent tools out there to do it ) but I havent really come across any but saying that I havent really searched :) Do a quick google search :)
Short of that wait for another person to reply :)
Reply:microsoft.com have this program search on it.
I got it in microsoft togo develo... and visualbasic
then search in news
avender
Converter for C++ to VB.net?
Its not called a converter its called porting. Also I am not sure of any tools myself that will allow you to do that ( I am not saying there arent tools out there to do it ) but I havent really come across any but saying that I havent really searched :) Do a quick google search :)
Short of that wait for another person to reply :)
Reply:microsoft.com have this program search on it.
I got it in microsoft togo develo... and visualbasic
then search in news
avender
I have done BSc physics. Shall i do MCA or go for C++ .NET, java and others?
I'd say MCA but it's not a poll... you've got to see a guidance counsellor or check with the university.
How to close an application at a specified time using kill() in c#.net?
using System.diagnostics.process.start i have opened a particular application on a specified time similarly i have to close an application automatically on a specified time using kill()
How to close an application at a specified time using kill() in c#.net?
Put a timer.
Start the timer when u start the process.
inside the timer intervel kill that process
Reply:www.google.com search
How to close an application at a specified time using kill() in c#.net?
Put a timer.
Start the timer when u start the process.
inside the timer intervel kill that process
Reply:www.google.com search
Does any1 know where i can get a free version of microsoft C++.NET off a peer to peer network for school thank
Try limewire.... they have everything
Why can’t we use non-static member (variables) in a static method? (C#.NET)?
Because a static method is the same for each and every class. Meaning, each and every class will point to that one single method, which is shared between them.
If you try use a class variable in a static method, you have no way of telling which specific object called this static function (you would know the type of class but not which instance). Because of this, the function wouldn't know which instance the member variable belongs to, so it wouldn't know which instance to make the changes to.
I hope that made sense.
Why can’t we use non-static member (variables) in a static method? (C#.NET)?
a static variable/method represents a variable/method that is used for all instances of a class. When you create a new object using that class, the same copy of the variable/method is used. So creating two objects of your class and changing the value of a variable using a static method changes the value of that same variable across all instances of your class because they are all pointing to the same place in memory.
a non-static member/variable is created as a new/different copy with each instance of the class. So creating two objects of your class and changing the value of the variable in one method doesn't affect the value of that same variable in the other object since they aren't pointing to the same place in memory.
Trying to put a non-static variable inside a static method makes the compiler wonder which instance of this variable should I really be updating? Its also the reason why you shouldn't use static methods using your objects. So if GetWords() is a static method of your Words class and you have an object myWords created from that class, don't do:
myWords.GetWords();
instead do this:
Words.GetWords();
Reply:Before object oriented programming, programmers used to "fake it" for complex projects. They'd created a structure and functions for it like this:
struct MyStruct
{
int myIntValue;
char myCharValue;
}
DoSomethingToMyStruct(MyStruct *this)
{
}
DoSomethingElse(MyStruct *this, int anotherValue)
{
}
In today's object oriented programming, this is still happening behind the scenes. In C#, you are probably familiar with the 'this' variable, which is the current instance of a class -- this variable is always intrisnically passed as the first argument to the method. A call like this in C#:
MyStruct.DoSomething();
is really:
DoSomething(MyStruct);
With that in mind, static methods are not associated with an instance of a class, therefore their is no 'this' reference, and no way to access the values of the class members.
violet
If you try use a class variable in a static method, you have no way of telling which specific object called this static function (you would know the type of class but not which instance). Because of this, the function wouldn't know which instance the member variable belongs to, so it wouldn't know which instance to make the changes to.
I hope that made sense.
Why can’t we use non-static member (variables) in a static method? (C#.NET)?
a static variable/method represents a variable/method that is used for all instances of a class. When you create a new object using that class, the same copy of the variable/method is used. So creating two objects of your class and changing the value of a variable using a static method changes the value of that same variable across all instances of your class because they are all pointing to the same place in memory.
a non-static member/variable is created as a new/different copy with each instance of the class. So creating two objects of your class and changing the value of the variable in one method doesn't affect the value of that same variable in the other object since they aren't pointing to the same place in memory.
Trying to put a non-static variable inside a static method makes the compiler wonder which instance of this variable should I really be updating? Its also the reason why you shouldn't use static methods using your objects. So if GetWords() is a static method of your Words class and you have an object myWords created from that class, don't do:
myWords.GetWords();
instead do this:
Words.GetWords();
Reply:Before object oriented programming, programmers used to "fake it" for complex projects. They'd created a structure and functions for it like this:
struct MyStruct
{
int myIntValue;
char myCharValue;
}
DoSomethingToMyStruct(MyStruct *this)
{
}
DoSomethingElse(MyStruct *this, int anotherValue)
{
}
In today's object oriented programming, this is still happening behind the scenes. In C#, you are probably familiar with the 'this' variable, which is the current instance of a class -- this variable is always intrisnically passed as the first argument to the method. A call like this in C#:
MyStruct.DoSomething();
is really:
DoSomething(MyStruct);
With that in mind, static methods are not associated with an instance of a class, therefore their is no 'this' reference, and no way to access the values of the class members.
violet
Can i download C from the net???
can anyone tell me where i can download C....first of all, can I download it from the net??? Please help me friends...
Can i download C from the net???
You can get it for free at the link below.
Reply:"C"? As in the language? Are you looking for a C compiler?
Try http://www.gnu.org for it and all of the other GNU tools.
You probably want the precompiled binaries to get you started,
but it should have pointers to those for your machine type.
Reply:do you mean C programming language?
you can google it then you will find a lot of site provide free download(this may be a illegal...)
Reply:What's C?
Can i download C from the net???
You can get it for free at the link below.
Reply:"C"? As in the language? Are you looking for a C compiler?
Try http://www.gnu.org for it and all of the other GNU tools.
You probably want the precompiled binaries to get you started,
but it should have pointers to those for your machine type.
Reply:do you mean C programming language?
you can google it then you will find a lot of site provide free download(this may be a illegal...)
Reply:What's C?
Can i get your mac address with your IP Address in internet (in c#.net)?
Ah, this is one of those questions I have to ask myself; "is there a good reason for sharing this information?" ie. Is it a good idea to post "The Anarchist's Cookbook" on the web? And would giving out this info help anyone or detract from the common good. I guess I should just give a hint then....you will have to decide if it is worth your time to figure out.
Can i get your mac address with your IP Address in internet (in c#.net)?
Hey, just bringing this old question up for a vote.
Can i get your mac address with your IP Address in internet (in c#.net)?
Hey, just bringing this old question up for a vote.
How to save and retrive the Video file in SQL 2005 through Visual c#.NET 2005?
Small Video file i want to save in SQL 2005
Then i have to retrive
Please sent the codeing
How to save and retrive the Video file in SQL 2005 through Visual c#.NET 2005?
You'll want to store the video in an varbinary(max) type column in your database table.
Then, in your c# ADO.Net code, you'll want to use a SqlParameter of type SQLDbType.Image to insert the video (BLOB).
Please see the following MSDN help. There is VB and C# code available:
http://msdn2.microsoft.com/en-us/library...
Then i have to retrive
Please sent the codeing
How to save and retrive the Video file in SQL 2005 through Visual c#.NET 2005?
You'll want to store the video in an varbinary(max) type column in your database table.
Then, in your c# ADO.Net code, you'll want to use a SqlParameter of type SQLDbType.Image to insert the video (BLOB).
Please see the following MSDN help. There is VB and C# code available:
http://msdn2.microsoft.com/en-us/library...
Can anybody here help me in debugging my program i.e. coding in C# .Net 2005/2008?
I am making a project which is a stimulation of an operating system. The problem that I am facing is that, I am required to display the contents of the registers but it's not showing the correct contents. Infact it's not showing any right value in the registers.
If anybody's interested then please reply back I'll mail the project and you can check it out. But please remember it's copyright i.e. I have made it myself and would appreciate it if nobody copies it for wrong use.
Cheers!
Can anybody here help me in debugging my program i.e. coding in C# .Net 2005/2008?
Hi... I am a Microsoft Certified Professional for Visual C# .net and a Computing Engineer, so maybe I can help (no guarantee however)
If you want...drop me a line (don't reply the question...send private message)
Cheers,
Enrico
peony
If anybody's interested then please reply back I'll mail the project and you can check it out. But please remember it's copyright i.e. I have made it myself and would appreciate it if nobody copies it for wrong use.
Cheers!
Can anybody here help me in debugging my program i.e. coding in C# .Net 2005/2008?
Hi... I am a Microsoft Certified Professional for Visual C# .net and a Computing Engineer, so maybe I can help (no guarantee however)
If you want...drop me a line (don't reply the question...send private message)
Cheers,
Enrico
peony
Plz help: i have a problem in the OdbcCommand object in the following C#.Net code!?
constr = "server=ADTL; uid=sa; pwd=;DSN=northwind";
OdbcConnection conn = new OdbcConnection(constr);
conn.Open();
OdbcCommand cmd = new OdbcCommand();
cmd.Connection = conn;
cmd.CommandType = System.Data.CommandType.Text;
cmd.CommandText = "Insert into Script_info Values(@scriptco, @scriptname, @currentPrice, @time)";
cmd.Parameters.Add("@scriptco", scriptco);
cmd.Parameters.Add("@scriptname", scriptname);
cmd.Parameters.Add("@currentPrice", currentPrice);
cmd.Parameters.Add("@script_type", scripttype);
cmd.Parameters.Add("@time", time);
cmd.ExecuteNonQuery();
but each time i run this code it throws an OdbcException of: missing Expression on the line (cmd.ExecuteNonQuery()).......
how do i avoid this exception.
Plz help: i have a problem in the OdbcCommand object in the following C#.Net code!?
Not that I've ever tried this, but it looks like if you're using OdbcCommand, you don't get to use named parameters. See http://msdn2.microsoft.com/en-us/library... and http://archives.postgresql.org/pgsql-hac...
Reply:Does one of the parameter values which you are adding to the parameter collection of your command contain double quotes?
To pinpoint why your error is being generated, insert a breakpoint at the cmd.ExecuteNonQuery() and check the exact SQL Statement being executed against your datasource.
Hope this helps
OdbcConnection conn = new OdbcConnection(constr);
conn.Open();
OdbcCommand cmd = new OdbcCommand();
cmd.Connection = conn;
cmd.CommandType = System.Data.CommandType.Text;
cmd.CommandText = "Insert into Script_info Values(@scriptco, @scriptname, @currentPrice, @time)";
cmd.Parameters.Add("@scriptco", scriptco);
cmd.Parameters.Add("@scriptname", scriptname);
cmd.Parameters.Add("@currentPrice", currentPrice);
cmd.Parameters.Add("@script_type", scripttype);
cmd.Parameters.Add("@time", time);
cmd.ExecuteNonQuery();
but each time i run this code it throws an OdbcException of: missing Expression on the line (cmd.ExecuteNonQuery()).......
how do i avoid this exception.
Plz help: i have a problem in the OdbcCommand object in the following C#.Net code!?
Not that I've ever tried this, but it looks like if you're using OdbcCommand, you don't get to use named parameters. See http://msdn2.microsoft.com/en-us/library... and http://archives.postgresql.org/pgsql-hac...
Reply:Does one of the parameter values which you are adding to the parameter collection of your command contain double quotes?
To pinpoint why your error is being generated, insert a breakpoint at the cmd.ExecuteNonQuery() and check the exact SQL Statement being executed against your datasource.
Hope this helps
How can i merge two Programs in a one solution in c#.net ?
i need to call a program to run, from the main program in the same solution. pls tell me how to do that in step-by-step..
How can i merge two Programs in a one solution in c#.net ?
if it is exe that u didnt develop you can only call shell
but if its a project file u can merge it with add --%26gt; existing file
but as i said before if its an exe you can only call it like that
process.start("path");
How can i merge two Programs in a one solution in c#.net ?
if it is exe that u didnt develop you can only call shell
but if its a project file u can merge it with add --%26gt; existing file
but as i said before if its an exe you can only call it like that
process.start("path");
Is it possible to develope Symbian Cell Phone Programs via VIsual C#.NET?
If your answer is positive please lead me to a good resource. thank you in advance....
Is it possible to develope Symbian Cell Phone Programs via VIsual C#.NET?
Symbian is based on C++ so find some kind of SDK or translator that translate the C# code to Symbian C++.
But my advice C# has nothing to do with C++ so give it up.
Is it possible to develope Symbian Cell Phone Programs via VIsual C#.NET?
Symbian is based on C++ so find some kind of SDK or translator that translate the C# code to Symbian C++.
But my advice C# has nothing to do with C++ so give it up.
How to Develop new website using ajax.Give some sample code in c#.net.?
Microsoft's Atlas is a free framework, that you can use to build ASP.NET/C# applications. It extends ASP.NET to implementing Ajax functionality.
Official site:
http://atlas.asp.net
Here is an intro:
http://msdn.microsoft.com/msdnmag/issues...
Tutorials for developers new to Atlas:
http://atlas.asp.net/docs/Walkthroughs/G...
How to Develop new website using ajax.Give some sample code in c#.net.?
Download PowerWeb Livecontrols
it contains a lot of Live controls which can implement AJAX.
http://dotnet.dart.com/livetutorial/defa...
Reply:Ajax, shorthand for Asynchronous JavaScript and XML, is a web development technique for creating interactive web applications.
It doesn't include .NET
You can use any server side technology like PHP or Perl to generate such content.
I think GOOGLE made a application that useu JAVA to create rich AJAX supported web pages. look at google labs!
Reply:For something simple...take an existing C# webpage that has a form and a submit button and shows a result when you press the button.
If you're using Atlas...simply put the %26lt;atlas:UpdatePanel%26gt; control around your form...and tada, the page will not do a postback when you click on the submit button anymore.
long stem roses
Official site:
http://atlas.asp.net
Here is an intro:
http://msdn.microsoft.com/msdnmag/issues...
Tutorials for developers new to Atlas:
http://atlas.asp.net/docs/Walkthroughs/G...
How to Develop new website using ajax.Give some sample code in c#.net.?
Download PowerWeb Livecontrols
it contains a lot of Live controls which can implement AJAX.
http://dotnet.dart.com/livetutorial/defa...
Reply:Ajax, shorthand for Asynchronous JavaScript and XML, is a web development technique for creating interactive web applications.
It doesn't include .NET
You can use any server side technology like PHP or Perl to generate such content.
I think GOOGLE made a application that useu JAVA to create rich AJAX supported web pages. look at google labs!
Reply:For something simple...take an existing C# webpage that has a form and a submit button and shows a result when you press the button.
If you're using Atlas...simply put the %26lt;atlas:UpdatePanel%26gt; control around your form...and tada, the page will not do a postback when you click on the submit button anymore.
long stem roses
Can anyone help me with a website which contains simple defenitions for oops concepts, VB.net, c#.net,mssql?
websites which have simple defenitions and sample tests are helpfful.......
Can anyone help me with a website which contains simple defenitions for oops concepts, VB.net, c#.net,mssql?
Kindly refer to this website :
http://www.dotnetspider.com
Reply:please try in google or yahoo.com
www.freeprogrammingresources.com
Free Programming and Computer Science Books
www.techbooksforfree.com
www.freebyte.com/programming
Reply:http://www.w3schools.com/
this is best to learn
Can anyone help me with a website which contains simple defenitions for oops concepts, VB.net, c#.net,mssql?
Kindly refer to this website :
http://www.dotnetspider.com
Reply:please try in google or yahoo.com
www.freeprogrammingresources.com
Free Programming and Computer Science Books
www.techbooksforfree.com
www.freebyte.com/programming
Reply:http://www.w3schools.com/
this is best to learn
How to hide certain button according to user's role when they are lo-gin into the webpage using ASP.NET in c#
In my web page, I have two type of users that are admin and normal users. That are certain pages are not allow for normal users, so I have to hide certain buttons to do so. So please me solve this problem. I'm using ASP.NET in c#. Thanks a lot. Urgent!!
How to hide certain button according to user's role when they are lo-gin into the webpage using ASP.NET in c#
You can either use a Panel to add the button dynamically to it or do as follows:
%26lt;% if(UserIsAdmin) { %%26gt;
%26lt;asp:button id="btnAdmin" runat="server" Text="Text" /%26gt;
%26lt;% } %%26gt;
IMPORTANT NOTE: It is very unwise to simply hide the button. Simply Hiding the button does not mean you have restricted the user from performing the action which the button does.
From my experience, it is better to secure whole pages instead of securing parts of the page IF POSSIBLE. That is to say, Design your application where some pages are fully accessed by the public whereas other pages are accessed only by Admins. This reduces complexity and enhances security a lot.
Hope this helps.
Reply:The key is to use membership and role manager API's, a new feature of asp .net 2.0.
You would create two roles, regular user and admin.If you want to show/hide a button, you can do this:
%26lt;asp:button ID="btn1" runat="server" Text=%26lt;%# User.IsInRole("Administrators") %%26gt; /%26gt;
%26lt;/td%26gt;
Even better would be to use a SiteMap and apply role-based security to the vanigation. Privileged users would see special menu choices conncted to special pages.
There is not enough room here to show all the details. If you have the (free) .NET SDK 2.0 installed, build the quickstart samples and look under asp .net for the topics mentioned here.
It takes an hour to figure out and get familiar, but once you have done that, you can set up navigation, roles, and membership with minimal programming. Very cool indeed.
Don't bother with old ASP - everything takes more work and is more complicated.
Reply:You can do this in C# by doing this (note that you have to setup the roles in the ASP.NET configuration tool):
MembershipUser user = Membership.GetUser();
/*you have to set roles in ASP.NET configuration tool*/
if (user.Role = "restrictedRole")
{
button1.visible = false;
//or whatever restrictions you want to impose on users. =)
}
hope that helps.
http://yummysiliconchips.blogspot.com/
Reply:Assign users by levels, 1-10. This will give you more control in the future for various other tidbits you'll add later. In database system application development we assign users levels to each table based on Admin distributed rights to any given user....
Sherry=1
Bob=2
if (user) = 1 button1.visable=false
etc...
This way you can change users LEVELS without changing code. Create a field in your user table as Level. That would be basic. You could also create a whole new table called "LEVELS" and link it to the userID. This way you can assign users different levels for different pages... We could go father into this but at $250 an hour I probably gave you enough info.
Reply:just store their permissions in a session variable.
Session theVariableName = "Admin or User";
Then in your aspx page put some code in when you display the buttons.
%26lt;%if Session("theVariableName") = "Admin" Then%%26gt;
%26lt;asp:button id="adminButton"/%26gt;
%26lt;%end if%%26gt;
I am rusty on my C# since I have switched to java but I hope you get the picture.
How to hide certain button according to user's role when they are lo-gin into the webpage using ASP.NET in c#
You can either use a Panel to add the button dynamically to it or do as follows:
%26lt;% if(UserIsAdmin) { %%26gt;
%26lt;asp:button id="btnAdmin" runat="server" Text="Text" /%26gt;
%26lt;% } %%26gt;
IMPORTANT NOTE: It is very unwise to simply hide the button. Simply Hiding the button does not mean you have restricted the user from performing the action which the button does.
From my experience, it is better to secure whole pages instead of securing parts of the page IF POSSIBLE. That is to say, Design your application where some pages are fully accessed by the public whereas other pages are accessed only by Admins. This reduces complexity and enhances security a lot.
Hope this helps.
Reply:The key is to use membership and role manager API's, a new feature of asp .net 2.0.
You would create two roles, regular user and admin.If you want to show/hide a button, you can do this:
%26lt;asp:button ID="btn1" runat="server" Text=%26lt;%# User.IsInRole("Administrators") %%26gt; /%26gt;
%26lt;/td%26gt;
Even better would be to use a SiteMap and apply role-based security to the vanigation. Privileged users would see special menu choices conncted to special pages.
There is not enough room here to show all the details. If you have the (free) .NET SDK 2.0 installed, build the quickstart samples and look under asp .net for the topics mentioned here.
It takes an hour to figure out and get familiar, but once you have done that, you can set up navigation, roles, and membership with minimal programming. Very cool indeed.
Don't bother with old ASP - everything takes more work and is more complicated.
Reply:You can do this in C# by doing this (note that you have to setup the roles in the ASP.NET configuration tool):
MembershipUser user = Membership.GetUser();
/*you have to set roles in ASP.NET configuration tool*/
if (user.Role = "restrictedRole")
{
button1.visible = false;
//or whatever restrictions you want to impose on users. =)
}
hope that helps.
http://yummysiliconchips.blogspot.com/
Reply:Assign users by levels, 1-10. This will give you more control in the future for various other tidbits you'll add later. In database system application development we assign users levels to each table based on Admin distributed rights to any given user....
Sherry=1
Bob=2
if (user) = 1 button1.visable=false
etc...
This way you can change users LEVELS without changing code. Create a field in your user table as Level. That would be basic. You could also create a whole new table called "LEVELS" and link it to the userID. This way you can assign users different levels for different pages... We could go father into this but at $250 an hour I probably gave you enough info.
Reply:just store their permissions in a session variable.
Session theVariableName = "Admin or User";
Then in your aspx page put some code in when you display the buttons.
%26lt;%if Session("theVariableName") = "Admin" Then%%26gt;
%26lt;asp:button id="adminButton"/%26gt;
%26lt;%end if%%26gt;
I am rusty on my C# since I have switched to java but I hope you get the picture.
How to hide parent class method from child class in c#.net?
Make it private, or if it needs to be accessed by other classes but not inheritable, make it public sealed.
How to hide parent class method from child class in c#.net?
Sometimes you may want to create your own implementation of a method that exists in a base class. The Child class does this by declaring its own xyz() method. The Child xyz() method hides the Parent xyz() method. The effect is the Parent xyz() method will not be called, unless we do something special to make sure it is called.
Inside the Child xyz() method, we explicitly call the Parent xyz() method. This is done by prefixing the method name with "base.". Using the base keyword, you can access any of a base class public or protected class members.
Another way to access base class members is through an explicit cast. This is done in the last statement of the Child class Main() method. Remember that a derived class is a specialization of its base class. This fact allows us to perform a cast on the derived class, making it an instance of its base class.
Notice the new modifier on the Child class xyz() method. This enables this method to hide the Parent class xyz() method, thus explicitly preventing polymorphism. Without the new modifier, the compiler will produce a warning to draw your attention to this. I'm sugesting on reading more about polymorphism.
How to hide parent class method from child class in c#.net?
Sometimes you may want to create your own implementation of a method that exists in a base class. The Child class does this by declaring its own xyz() method. The Child xyz() method hides the Parent xyz() method. The effect is the Parent xyz() method will not be called, unless we do something special to make sure it is called.
Inside the Child xyz() method, we explicitly call the Parent xyz() method. This is done by prefixing the method name with "base.". Using the base keyword, you can access any of a base class public or protected class members.
Another way to access base class members is through an explicit cast. This is done in the last statement of the Child class Main() method. Remember that a derived class is a specialization of its base class. This fact allows us to perform a cast on the derived class, making it an instance of its base class.
Notice the new modifier on the Child class xyz() method. This enables this method to hide the Parent class xyz() method, thus explicitly preventing polymorphism. Without the new modifier, the compiler will produce a warning to draw your attention to this. I'm sugesting on reading more about polymorphism.
How compare two xml files .Give me sample code in c#.net.Plz immediate?
More details please. What type of data, structure etc. What's the output? print what result? Difference in data etc. This question is too vague sorry.
gifts
gifts
Should I learn c# and vb.net?
I already know c++ and visual basic. Do you guys think i should also study c# and vb.net? Are they in demand? Do you guys think they are useful in the future?
Should I learn c# and vb.net?
They are very much in demand! .NET is very hot right now, and the great thing about .NET (especially since you know c++ and vb) is that once you learn one .NET language, you know them all. The only difference is the syntax.
Go to any job site (Monster.com, Dice, etc.) and you will find more jobs for .NET developers than for any other platform. The pay is very high as well, compared to most other development positions. In my experience, on average, .NET developers make 10k more per year than their non-.NET counterparts on the same skill level.
Reply:Solid developers will always be in demand, and .NET is definately the way to go. I don't necessarily agree that knowing VB or VC++ makes .NET child's play. The syntax is the easy part. If you know VB, then VB.Net syntax is complete cake other than a couple minor things. C# syntax will also be easy since it's core is similar to C++.
The real challenge in .Net is truly learning the framework. Simple things - like formatting a string is still easy, but it's buried in new locations. With roughly 10 years of experience, I figured I could pick up .Net quickly, and I was surprised at how long it took just to find everything. It took me about 6 months before I felt I was up to speed with the framework, and after 2 years I still find myself stumbling on new things saying "oh man, I didn't realize you could do that with this class."
But in short - definately learn them because they are not skills you can fake on a resume or in an interview if you're getting tech-grilled by someone who knows what they're doing. If you're a PC developer, Microsoft's vision for the next 5 years is certainly down the .Net path. What's beyond that? Nobody knows :)
Reply:Yes, you should do that. Many companies are using them now. Just type C# and vb.net at yahoo jobs and you'll see how many open jobs oportunities are available to work with .net .
Reply:if you know c++, the .net languages will be childs play. they are fully object oriented and provide implementations of pretty much any thing you can think of. And they are very much in demand.
Should I learn c# and vb.net?
They are very much in demand! .NET is very hot right now, and the great thing about .NET (especially since you know c++ and vb) is that once you learn one .NET language, you know them all. The only difference is the syntax.
Go to any job site (Monster.com, Dice, etc.) and you will find more jobs for .NET developers than for any other platform. The pay is very high as well, compared to most other development positions. In my experience, on average, .NET developers make 10k more per year than their non-.NET counterparts on the same skill level.
Reply:Solid developers will always be in demand, and .NET is definately the way to go. I don't necessarily agree that knowing VB or VC++ makes .NET child's play. The syntax is the easy part. If you know VB, then VB.Net syntax is complete cake other than a couple minor things. C# syntax will also be easy since it's core is similar to C++.
The real challenge in .Net is truly learning the framework. Simple things - like formatting a string is still easy, but it's buried in new locations. With roughly 10 years of experience, I figured I could pick up .Net quickly, and I was surprised at how long it took just to find everything. It took me about 6 months before I felt I was up to speed with the framework, and after 2 years I still find myself stumbling on new things saying "oh man, I didn't realize you could do that with this class."
But in short - definately learn them because they are not skills you can fake on a resume or in an interview if you're getting tech-grilled by someone who knows what they're doing. If you're a PC developer, Microsoft's vision for the next 5 years is certainly down the .Net path. What's beyond that? Nobody knows :)
Reply:Yes, you should do that. Many companies are using them now. Just type C# and vb.net at yahoo jobs and you'll see how many open jobs oportunities are available to work with .net .
Reply:if you know c++, the .net languages will be childs play. they are fully object oriented and provide implementations of pretty much any thing you can think of. And they are very much in demand.
How to use& add flash files & xml files in visual studio(c#.net)?
e.g: i've made a menu with flash but i don't know how to open %26amp; add it to my windows application!
How to use%26amp; add flash files %26amp; xml files in visual studio(c#.net)?
http://www.alistapart.com/articles/flash...
innia
How to use%26amp; add flash files %26amp; xml files in visual studio(c#.net)?
http://www.alistapart.com/articles/flash...
innia
Visual c++ or vb.net?
compare visual c++ and vb.net in following fields:
1.easy to learn
2.powerfull
3.portable
4.job
5.size of code
6.system programing
7.etc
Visual c++ or vb.net?
The comparison in VC++ and vb.net is as follows
1.easy to learn: if you do not know C/C++ then vb.net is easier to learn. if you had prior experience of programming in c/c++ then vc++ is easier.
2.powerful: for normal desktop applications both are equally powerful. but if you want to develop something for speed and require machin interaction there is no other choice except vc++. it has the power to compile to machine native code.
3.portable: the code for both is not portable but in vc++ you can write portable code. the vb.net code will only run with vb.net compiler
4.job: a vb.net developer will get job in application software industry and web development companies. a vc++ developer will get job in hardcore software companies, making device drivers etc. in the long run vc++ is much better.
5.size of code: the size of code depends on the problem being solved. in general both require same amount of code
6.system programing: system programming in vb.net is limited to the use of builin APIs and managed libraries. vc++ can usher you in a world of unlimited hardware and system access.
7.etc : in miscellaneous terms if you wish to develop small time application needed to run on desktops and you are not going for speed of processing, then vb.net is the ultimate choice. if you wish to develop for speed and power then VC++ rules the programming world.
Reply:1.easy to learn
VB %26gt; C++
2.powerfull
C++ %26gt; VB
3.portable
Both rely on Windows API.
4.job
?
5.size of code
C++ produces smaller and more efficient code, but vb.net also get some serious CLR optimizations.
6.system programing
? check out avalon and indigo services in the upcoming windows vista, .net will be much more powerful in the future, for the current OS es it is C++ who rules.
1.easy to learn
2.powerfull
3.portable
4.job
5.size of code
6.system programing
7.etc
Visual c++ or vb.net?
The comparison in VC++ and vb.net is as follows
1.easy to learn: if you do not know C/C++ then vb.net is easier to learn. if you had prior experience of programming in c/c++ then vc++ is easier.
2.powerful: for normal desktop applications both are equally powerful. but if you want to develop something for speed and require machin interaction there is no other choice except vc++. it has the power to compile to machine native code.
3.portable: the code for both is not portable but in vc++ you can write portable code. the vb.net code will only run with vb.net compiler
4.job: a vb.net developer will get job in application software industry and web development companies. a vc++ developer will get job in hardcore software companies, making device drivers etc. in the long run vc++ is much better.
5.size of code: the size of code depends on the problem being solved. in general both require same amount of code
6.system programing: system programming in vb.net is limited to the use of builin APIs and managed libraries. vc++ can usher you in a world of unlimited hardware and system access.
7.etc : in miscellaneous terms if you wish to develop small time application needed to run on desktops and you are not going for speed of processing, then vb.net is the ultimate choice. if you wish to develop for speed and power then VC++ rules the programming world.
Reply:1.easy to learn
VB %26gt; C++
2.powerfull
C++ %26gt; VB
3.portable
Both rely on Windows API.
4.job
?
5.size of code
C++ produces smaller and more efficient code, but vb.net also get some serious CLR optimizations.
6.system programing
? check out avalon and indigo services in the upcoming windows vista, .net will be much more powerful in the future, for the current OS es it is C++ who rules.
What type of questions do they ask you interviewing for a C#.net programming job?
what kind of things should I be prepared for?
What type of questions do they ask you interviewing for a C#.net programming job?
Here are some of the things I have been asked multiple times (i.e. these questions tend to show up in many interviews):
What are some of the advantages of object-oriented programming, especially as it relates to .NET?
What is polymorphism?
How many objects can a class inherit from in .NET?
What is the syntax to inherit a class in c#?
What object do all objects descend from/inherit from/what is the base class of all classes?
What is an interface?
What is the difference between using StringBuilder vs the append operator?
What is the difference between a value type and a reference type?
What is a singleton?
What is an access modifier?
What is ViewState?
What is the difference between using DataReaders vs DataSets?
They will also usually ask questions about SQL:
Would you use in-line queries or stored procedures? Why?
What enhancements does SQL2005 make to stored procedures over 2000?
When should use use Views?
After that, they will usually ask about some of the projects you have worked on in the past, and ask you to describe in general terms how you solved a particular programming problem that frequently appears in that type of project.
Finally, some companies will have you write a code sample, or finish some problem, like a partially-completed project that won't compile. Sometimes they will also examine your code afterwards and have you defend your code and why you did things the way you did.
The most important thing is to be honest about what you do and don't know. If you don't know, say it immediately. If you try to fillibuster, or try to come up with some BS with "ah, um, herm" you will just sound like a fool. If you say "I am not sure about that." or "I'm sorry, I don't know." you will get much farther. Making up even one answer will pretty much kill any chances you might have had.
Reply:They'll probably ask you questions like what objects in the .net framework do what, and how are they used? What are some important considerations when choosing which objects to use?
Reply:The following should be answered by a junior developer. That is to say a developer with one - two years of experience.
Strictly C# questions:
- What is the base type of all classes in .NET
- What is an assembly
- How would you define the .NET framework
- Whats the difference between a value type and a reference type? Give me an example of each
- What is an enumeration? When would you use one?
- What is an ArrayList? What is a strongly typed collection?
- when is the virutal keyword used? the override keyword? can you give me an example?
- what is an abstract class?
- what does sealed mean?
- Can you tell me when is an object cleaned from memory?
- When would you use an indexer?
- What is a delegate? What is an event?
- What are Generics (new to .NET 2.0)
.NET Framework Questions:
- What is ADO.NET ? How is it different from ADO
- What is a DataReader? What is a DataTable? what is a DataSet?
- What is an SqlCommand object?
- What is connection pooling?
- Would you use DataSets in a web application? Why or why not?
- What is the impact of using DataSets in a web application
- Would you rather use an SqlDataAdapter to fill a DataTable or an SqlDataReader?
If you are applying for a job as a web developer you should expect questions related to the web (HTML, CSS, ASP.NET WebControls).
Same goes if the employer is looking for windows developers.
Hope my answer helps.
Reply:I work for a company currently hiring C#.net programmers.
The way the interview process works here is based on your resume. They start simple and work the way up through difficulty depending on how you answer a question.
Someone stating "I've worked with C-pound for two years" won't get very far. (C-Sharp not C-Pound) very indicative that the two years is not in a professional environment.
If you state you are familiar with Sql - they will ask you SQL questions to see how far your knowledge goes.
I mentioned I had knowledge in artificial intelligence and math so they asked me questions about AI and had me write programs that involved complicated math skills.
In short, don't lie on your resume... they'll ask you about it to see what you really know.
Reply:It is no different from a regular job interview, except they will most likely ask to see examples of your code. Some interviewers will do a technical interview, they will sit you down at a computer and present you will a problem to solve that you will have to write C# code for.
Reply:I'll assume that this is for an entry-level programming position. The short answer is it really depends on the company and the interviewer, but I can share my experiences from both sides of the table.
When interviewing for an entry level position, they don't really expect you to have too many answers under your belt. I've always been asked about projects I've worked on (if you're fresh from school, talking about school projects is fine). They'll also want to get to know your personality as it pertains to working in groups, individually, and how quickly you can pick up new skills.
If they decide to actually quiz you on specifics, it could go one of two ways - questions about .NET specifically, or questions about programming methodologies in general.
The answers already given mention quite a few things to check up on in C# specifically, and already knowing C# is helpful there. A review of the language basics before you go would be wise. Aside from that, what I've been asked frequently - and what I ask people I interview - are more general questions about programming and OOP in general. Maybe what kind of algorithm they'd use to solve a specific problem, what kind of design process they prefer to be involved in, etc. Perhaps have them write some simple example code in the language they're most comfortable with - like swapping a string in place for instance.
For the most part though, the interview will probably be more about you and your soft skills than any specific technical item.
What type of questions do they ask you interviewing for a C#.net programming job?
Here are some of the things I have been asked multiple times (i.e. these questions tend to show up in many interviews):
What are some of the advantages of object-oriented programming, especially as it relates to .NET?
What is polymorphism?
How many objects can a class inherit from in .NET?
What is the syntax to inherit a class in c#?
What object do all objects descend from/inherit from/what is the base class of all classes?
What is an interface?
What is the difference between using StringBuilder vs the append operator?
What is the difference between a value type and a reference type?
What is a singleton?
What is an access modifier?
What is ViewState?
What is the difference between using DataReaders vs DataSets?
They will also usually ask questions about SQL:
Would you use in-line queries or stored procedures? Why?
What enhancements does SQL2005 make to stored procedures over 2000?
When should use use Views?
After that, they will usually ask about some of the projects you have worked on in the past, and ask you to describe in general terms how you solved a particular programming problem that frequently appears in that type of project.
Finally, some companies will have you write a code sample, or finish some problem, like a partially-completed project that won't compile. Sometimes they will also examine your code afterwards and have you defend your code and why you did things the way you did.
The most important thing is to be honest about what you do and don't know. If you don't know, say it immediately. If you try to fillibuster, or try to come up with some BS with "ah, um, herm" you will just sound like a fool. If you say "I am not sure about that." or "I'm sorry, I don't know." you will get much farther. Making up even one answer will pretty much kill any chances you might have had.
Reply:They'll probably ask you questions like what objects in the .net framework do what, and how are they used? What are some important considerations when choosing which objects to use?
Reply:The following should be answered by a junior developer. That is to say a developer with one - two years of experience.
Strictly C# questions:
- What is the base type of all classes in .NET
- What is an assembly
- How would you define the .NET framework
- Whats the difference between a value type and a reference type? Give me an example of each
- What is an enumeration? When would you use one?
- What is an ArrayList? What is a strongly typed collection?
- when is the virutal keyword used? the override keyword? can you give me an example?
- what is an abstract class?
- what does sealed mean?
- Can you tell me when is an object cleaned from memory?
- When would you use an indexer?
- What is a delegate? What is an event?
- What are Generics (new to .NET 2.0)
.NET Framework Questions:
- What is ADO.NET ? How is it different from ADO
- What is a DataReader? What is a DataTable? what is a DataSet?
- What is an SqlCommand object?
- What is connection pooling?
- Would you use DataSets in a web application? Why or why not?
- What is the impact of using DataSets in a web application
- Would you rather use an SqlDataAdapter to fill a DataTable or an SqlDataReader?
If you are applying for a job as a web developer you should expect questions related to the web (HTML, CSS, ASP.NET WebControls).
Same goes if the employer is looking for windows developers.
Hope my answer helps.
Reply:I work for a company currently hiring C#.net programmers.
The way the interview process works here is based on your resume. They start simple and work the way up through difficulty depending on how you answer a question.
Someone stating "I've worked with C-pound for two years" won't get very far. (C-Sharp not C-Pound) very indicative that the two years is not in a professional environment.
If you state you are familiar with Sql - they will ask you SQL questions to see how far your knowledge goes.
I mentioned I had knowledge in artificial intelligence and math so they asked me questions about AI and had me write programs that involved complicated math skills.
In short, don't lie on your resume... they'll ask you about it to see what you really know.
Reply:It is no different from a regular job interview, except they will most likely ask to see examples of your code. Some interviewers will do a technical interview, they will sit you down at a computer and present you will a problem to solve that you will have to write C# code for.
Reply:I'll assume that this is for an entry-level programming position. The short answer is it really depends on the company and the interviewer, but I can share my experiences from both sides of the table.
When interviewing for an entry level position, they don't really expect you to have too many answers under your belt. I've always been asked about projects I've worked on (if you're fresh from school, talking about school projects is fine). They'll also want to get to know your personality as it pertains to working in groups, individually, and how quickly you can pick up new skills.
If they decide to actually quiz you on specifics, it could go one of two ways - questions about .NET specifically, or questions about programming methodologies in general.
The answers already given mention quite a few things to check up on in C# specifically, and already knowing C# is helpful there. A review of the language basics before you go would be wise. Aside from that, what I've been asked frequently - and what I ask people I interview - are more general questions about programming and OOP in general. Maybe what kind of algorithm they'd use to solve a specific problem, what kind of design process they prefer to be involved in, etc. Perhaps have them write some simple example code in the language they're most comfortable with - like swapping a string in place for instance.
For the most part though, the interview will probably be more about you and your soft skills than any specific technical item.
Saturday, May 22, 2010
From which website can i get the complete source code for all the asp.net(C#.net) controls & applications?
i am developing one project so i need codes for datagrid,datepicker,Filters using operators,etc.so i need to know from which website we can get all type of our codes for any type of tools we use in dotnet?
From which website can i get the complete source code for all the asp.net(C#.net) controls %26amp; applications?
You can't get the source code, that's proprietary code written by Microsoft.
gerbera
From which website can i get the complete source code for all the asp.net(C#.net) controls %26amp; applications?
You can't get the source code, that's proprietary code written by Microsoft.
gerbera
How to compare two xml files. Give the sample code in c#.net?
I like to use WinMerge. You can download from www.sourceforge.net.
How to compare two xml files. Give the sample code in c#.net?
hey there is an easier way out
down laod stylus studio
and there i s an functional;ity in it to compare xslt
How to compare two xml files. Give the sample code in c#.net?
hey there is an easier way out
down laod stylus studio
and there i s an functional;ity in it to compare xslt
Using sql server how to call stored procedure for insert,delete and update in c#.net with asp.net?
Here is a good article on this. Once you have created the procedure in SQL you need to basically create the connection, setup the command and type, assign you input/output params to the command (if any, this would be used to pass values for your where clause when updating for example), open the connection, then excecute your command. Here is the code that does that. The full article can be found in the link below.
SqlConnection cnPubs = new SqlConnection
("server=localhost;integrated security=true;" + "database=pubs");
Next, create a SqlCommand object and set the appropriate properties needed to execute the up_AuthorBookCount stored procedure created earlier.
SqlCommand cmdAuthors = new SqlCommand("up_AuthorBookCount", cnPubs);
cmdAuthors.CommandType = CommandType.StoredProcedure;
Using the Add method of the SqlCommands Parameter collection add an input parameter that takes the AuthorId value passed in by the caller. Also add an output parameter that will store the value passed back by the stored procedure. The names and data types of the parameters must mach those defined in the stored procedure.
cmdAuthors.Parameters.Add("@au_id", SqlDbType.NVarChar, 11);
cmdAuthors.Parameters["@au_id"].Value = AuthorID;
cmdAuthors.Parameters.Add("@Count", SqlDbType.Int);
cmdAuthors.Parameters["@Count"].Direct... = ParameterDirection.Output;
Open the connection to the database and call the ExecuteNonQuerry method of the command object. Once the stored procedure is executed, the value of the output parameter is held in a local variable, which is in turn passed back to the client. Dont forget to close the connection after executing the stored procedure.
cnPubs.Open();
int iCount;
cmdAuthors.ExecuteNonQuery();
iCount = (int)cmdAuthors.Parameters["@Count"].Val...
cnPubs.Close();
return iCount;
Using sql server how to call stored procedure for insert,delete and update in c#.net with asp.net?
first compile your class and then use it in namespace in current page
SqlConnection cnPubs = new SqlConnection
("server=localhost;integrated security=true;" + "database=pubs");
Next, create a SqlCommand object and set the appropriate properties needed to execute the up_AuthorBookCount stored procedure created earlier.
SqlCommand cmdAuthors = new SqlCommand("up_AuthorBookCount", cnPubs);
cmdAuthors.CommandType = CommandType.StoredProcedure;
Using the Add method of the SqlCommands Parameter collection add an input parameter that takes the AuthorId value passed in by the caller. Also add an output parameter that will store the value passed back by the stored procedure. The names and data types of the parameters must mach those defined in the stored procedure.
cmdAuthors.Parameters.Add("@au_id", SqlDbType.NVarChar, 11);
cmdAuthors.Parameters["@au_id"].Value = AuthorID;
cmdAuthors.Parameters.Add("@Count", SqlDbType.Int);
cmdAuthors.Parameters["@Count"].Direct... = ParameterDirection.Output;
Open the connection to the database and call the ExecuteNonQuerry method of the command object. Once the stored procedure is executed, the value of the output parameter is held in a local variable, which is in turn passed back to the client. Dont forget to close the connection after executing the stored procedure.
cnPubs.Open();
int iCount;
cmdAuthors.ExecuteNonQuery();
iCount = (int)cmdAuthors.Parameters["@Count"].Val...
cnPubs.Close();
return iCount;
Using sql server how to call stored procedure for insert,delete and update in c#.net with asp.net?
first compile your class and then use it in namespace in current page
I work with websites i need to learn visual studio who gets more jobwhich one is better visual basic.net or c#
I know html css javasciprt some flash but find that web development get more jobs and better pay im going to start learning but i want to know which one has more jobs to offer better to learn visual basic.net or c# and how long will it take to learn
I work with websites i need to learn visual studio who gets more jobwhich one is better visual basic.net or c#
VB.NET and C# are close enough to the same language. They have slightly different syntaxes, but they share all the same library features, and compile to exactly the same CLR code. The only real difference is syntax preference.
VB.NET tends to be more comfortable for people with previous VB experience, because the syntax and editor is somewhat reminiscent of oldr versions of VB.
C# tends to feel more comfortable for people migrating from Java, as it borrows syntax and ideas from that language.
Once you learn one, you'll have no real trouble migrating to the other. I recommend C#, as many VB tutorials still hang on to outdated ways of thinking from previous versions of VB, and C# (being a newer language) does not have these legacy issues.
The real point here isn't about whether you learn VB.NET or C#, but that you learn how to do ASP.NET (in either language) and database access. Web development today is all about connecting web pages to data using server-side languages such as ASP.NET.
I'd say the jury is still out on whether these Microsoft-based languages are the future in web development. They certainly are important, but Microsoft's insistence on single platform deployment is still a weakness in the web server world.
You might also consider some other alternatives. Java is huge as a server programming platform for large corporations, and PHP is extremely popular for smaller and medium-sized projects.
The great thing about these alternatives is they work on any OS and they're entirely free.
Reply:I think VB.NET is probably easier to learn. Really what you need to learn is .NET, that is where the future is at. Check out www.asp.net - it's a Microsoft site that has a lot of good tutorials on how to get started along with web starter kits. Hope in a few months you should be at a level where you could create most websites out there. Good luck!
Reply:VB.net is a waste of your time. Learn c#. Nobody uses vb.net. Everyone doing anything worthwhile with web programming uses: java, c++, c#, php. There are a few corner cases where python, perl, vbscript, vb.net, ruby might be used but it is the minority.
Reply:Almost everything from Microsoft falls under the .net platform now so learning .net will be very smart if you want to go that direction. If the employer is using .net for there infrastructure then you can use either C# or Visual Basic or any of the other languages under .net. The end user is not going to care what language the website was programmed in as long as it works. They all pay about the same.
I work with websites i need to learn visual studio who gets more jobwhich one is better visual basic.net or c#
VB.NET and C# are close enough to the same language. They have slightly different syntaxes, but they share all the same library features, and compile to exactly the same CLR code. The only real difference is syntax preference.
VB.NET tends to be more comfortable for people with previous VB experience, because the syntax and editor is somewhat reminiscent of oldr versions of VB.
C# tends to feel more comfortable for people migrating from Java, as it borrows syntax and ideas from that language.
Once you learn one, you'll have no real trouble migrating to the other. I recommend C#, as many VB tutorials still hang on to outdated ways of thinking from previous versions of VB, and C# (being a newer language) does not have these legacy issues.
The real point here isn't about whether you learn VB.NET or C#, but that you learn how to do ASP.NET (in either language) and database access. Web development today is all about connecting web pages to data using server-side languages such as ASP.NET.
I'd say the jury is still out on whether these Microsoft-based languages are the future in web development. They certainly are important, but Microsoft's insistence on single platform deployment is still a weakness in the web server world.
You might also consider some other alternatives. Java is huge as a server programming platform for large corporations, and PHP is extremely popular for smaller and medium-sized projects.
The great thing about these alternatives is they work on any OS and they're entirely free.
Reply:I think VB.NET is probably easier to learn. Really what you need to learn is .NET, that is where the future is at. Check out www.asp.net - it's a Microsoft site that has a lot of good tutorials on how to get started along with web starter kits. Hope in a few months you should be at a level where you could create most websites out there. Good luck!
Reply:VB.net is a waste of your time. Learn c#. Nobody uses vb.net. Everyone doing anything worthwhile with web programming uses: java, c++, c#, php. There are a few corner cases where python, perl, vbscript, vb.net, ruby might be used but it is the minority.
Reply:Almost everything from Microsoft falls under the .net platform now so learning .net will be very smart if you want to go that direction. If the employer is using .net for there infrastructure then you can use either C# or Visual Basic or any of the other languages under .net. The end user is not going to care what language the website was programmed in as long as it works. They all pay about the same.
Can someone give me a good project idea to do in c#.net?
If you're wanting a bit of a challenge, I would write a 3d modeler that supports various professional modeling packages. Why? Because if you're not an expert already, you will get a good understanding of matrix math, rotations, and your graphics package of choice (Direct 3D recommended). Interface design will also come into play, as well as, graphics formats. Some of my best learning experiences came from graphics... By the way, if it's not clear, I'm talking about doing all of this as a web service ;) Happy Programming!!
rosemary
rosemary
Do you hink that object-oriented programming using visual C# .net would be hard to learn for a freshmen colleg
depending on how much previous programming experience, yes. But if that's what you want to learn, then go for it. As a software engineer I would not recommend learning C# as a first languange unless you have a good reason to. Learn a more mainstream language first such as C/C++, or something even more simple like Visual Basic. These languanges have a lot of legacy support and you won't have any problem getting info and help along the way. C# and .NET are more on the fringe and are used for special things that are windows specific. If you're thinking about being a programmer you want to widen your horizons and learn languages that aren't platform dependant and can solve a wide variety of problems...from there you can specialize etc. In my opinion .NET is for very particular tasks and it requires a basic programming familiarity first...just my two cents...
Do you hink that object-oriented programming using visual C# .net would be hard to learn for a freshmen colleg
no that's so easy to learn, so it is called CSharp.
just go ahead and don't tired. Also it has the best visual editor called Visual Studio.NET . so prefect.
Reply:I don't do C#, but Object Oriented programming is quite easy.
Do you hink that object-oriented programming using visual C# .net would be hard to learn for a freshmen colleg
no that's so easy to learn, so it is called CSharp.
just go ahead and don't tired. Also it has the best visual editor called Visual Studio.NET . so prefect.
Reply:I don't do C#, but Object Oriented programming is quite easy.
If i want to print my out result in C#.net,is there a method or class?
i should print my out result.what should i do?should i create a file?then how to save my out result of a console program and exe file?
wish i could explain my problem .
thanks
If i want to print my out result in C#.net,is there a method or class?
Yes, you can print out your results.
You can write your information to a file or just display it to the screen.
Basic file input/output in C#: http://support.microsoft.com/default.asp...
If you just want to print it to the screen in a console application: Console.WriteLine("What you want to say goes here");
Reply:i don't known ask someone
wish i could explain my problem .
thanks
If i want to print my out result in C#.net,is there a method or class?
Yes, you can print out your results.
You can write your information to a file or just display it to the screen.
Basic file input/output in C#: http://support.microsoft.com/default.asp...
If you just want to print it to the screen in a console application: Console.WriteLine("What you want to say goes here");
Reply:i don't known ask someone
Where do I get the hosting of my website using c#.net language?
ASP.NET hosting should suffice, check web hosting service provider like http://aplis.net/ .
Where do I get the hosting of my website using c#.net language?
c# is not a hostable language.
C# written in asp.net is.
Here is where you can host C# asp.net sites:
http://www.hostsearch.com/asp_web_hostin...
This is a list of the top 10 rated .net compatible hosts. It gives you a variety to pick from and an explanation why.
Reply:www.jodohost.com
Reply:Hi there. You can check out http://www.hostmee.com and maybe you will find the solutions to your problems there. Good luck!
Reply:Take a look at:
http://top5hosts.atspace.com/ix.htm
GL!
Where do I get the hosting of my website using c#.net language?
c# is not a hostable language.
C# written in asp.net is.
Here is where you can host C# asp.net sites:
http://www.hostsearch.com/asp_web_hostin...
This is a list of the top 10 rated .net compatible hosts. It gives you a variety to pick from and an explanation why.
Reply:www.jodohost.com
Reply:Hi there. You can check out http://www.hostmee.com and maybe you will find the solutions to your problems there. Good luck!
Reply:Take a look at:
http://top5hosts.atspace.com/ix.htm
GL!
C++ & JAVA or .NET, for a Career change?
I ve 5 year teaching exp in technical, now planning to shift to software, which lang should i learn to make carrer C++ %26amp; JAVA or .NET %26amp;VB( which offer lot of job openings, as a programmer, entry level), considering my back ground, will the company hire me? i am good in maths and logic, i think which is required for programmer apart from the language.
C++ %26amp; JAVA or .NET, for a Career change?
.NET is the way to go right now...everything is becoming web based
Reply:I worked for a software develpment company and .Net was the way they were going. Folks with .Net were making the big bucks.
Reply:Well, it's not really as easy as picking a modern language that's "all the rage", because you can't force yourself to enjoy a particular language. Pick the one you find easiest or most pleasant to program in, and run with that. The key thing to remember about the job market for programmers is that it is constantly changing and looking for programmers with different specialties.
Even for entry-level programming jobs, you're looking at having to have at least 2 years of programming experience in at least one of the languages they are looking for. A good way to get around having to have "work experience" is to be an avid programmer and document your source code / completed programs. If you walk into a programming interview with a portfolio containing summaries, snippets of source code, and screenshots of your major / relevant programs, then you will be able to prove your experience without having to have "work experience".
Of course, it helps if you taught anything related to the actual purpose of the position you're applying for. For instance, if you taught a Database Management Systems class and you're applying for a programmer position geared towards database programming, then you'll have an advantage going into the interview.
Just like going for any other job, make your resume highlight your value in respect to the desired position. In IT, it can be difficult initially to switch to a different branch of the field... however, it's not impossible, and the dedication illustrated by such a career change may even impress the employer more.
Reply:.NET encapsulates C++, Java, VB, Asp. It's not a programming language of its own.
Reply:All those language are quite similar they all mainly using OOP principal.
So i guess you will be able to learn one and then you will find no trouble of learning the other.
Reply:Take Java, dwells into J2ME, and you'll have alot of opportunities waiting for you, because the mobile market is still young now and alot of company will want a mobile applications developer.
wallflower
C++ %26amp; JAVA or .NET, for a Career change?
.NET is the way to go right now...everything is becoming web based
Reply:I worked for a software develpment company and .Net was the way they were going. Folks with .Net were making the big bucks.
Reply:Well, it's not really as easy as picking a modern language that's "all the rage", because you can't force yourself to enjoy a particular language. Pick the one you find easiest or most pleasant to program in, and run with that. The key thing to remember about the job market for programmers is that it is constantly changing and looking for programmers with different specialties.
Even for entry-level programming jobs, you're looking at having to have at least 2 years of programming experience in at least one of the languages they are looking for. A good way to get around having to have "work experience" is to be an avid programmer and document your source code / completed programs. If you walk into a programming interview with a portfolio containing summaries, snippets of source code, and screenshots of your major / relevant programs, then you will be able to prove your experience without having to have "work experience".
Of course, it helps if you taught anything related to the actual purpose of the position you're applying for. For instance, if you taught a Database Management Systems class and you're applying for a programmer position geared towards database programming, then you'll have an advantage going into the interview.
Just like going for any other job, make your resume highlight your value in respect to the desired position. In IT, it can be difficult initially to switch to a different branch of the field... however, it's not impossible, and the dedication illustrated by such a career change may even impress the employer more.
Reply:.NET encapsulates C++, Java, VB, Asp. It's not a programming language of its own.
Reply:All those language are quite similar they all mainly using OOP principal.
So i guess you will be able to learn one and then you will find no trouble of learning the other.
Reply:Take Java, dwells into J2ME, and you'll have alot of opportunities waiting for you, because the mobile market is still young now and alot of company will want a mobile applications developer.
wallflower
How I can resize or move a component in runtime (C#.Net)?
to change the size of a component for ex:Textbox
declare two variables
Htextbox and Wtextbox :height-width textbox
then set property to those variables for ex:
Htextbox=textbox1.size.height
Wtextbox=textbox1.size.width
then send value to those variables
Htextbox=200
Wtextbox=200
then run your project,you can change your textboxs' size at runtime
Good Luck
How I can resize or move a component in runtime (C#.Net)?
you can change a components properties from a code behind page.
client side you can use javascripting for certain things, so a postback won't be required.
keep in mind javascript won't have access to the C# objects - that's only possible in the code behind
declare two variables
Htextbox and Wtextbox :height-width textbox
then set property to those variables for ex:
Htextbox=textbox1.size.height
Wtextbox=textbox1.size.width
then send value to those variables
Htextbox=200
Wtextbox=200
then run your project,you can change your textboxs' size at runtime
Good Luck
How I can resize or move a component in runtime (C#.Net)?
you can change a components properties from a code behind page.
client side you can use javascripting for certain things, so a postback won't be required.
keep in mind javascript won't have access to the C# objects - that's only possible in the code behind
How to show listbox1 form1 contents into form2 listbox2 using c#.net?
Hello,
When you want to pass data between forms (such as listbox items), you should realize a form is a class. Your form1 is a class where you can provide more information, in this case you could provide a polymorphic parameter overloaded constructor such as:
public form2(List%26lt;int%26gt; items) {
foreach(int item in items) listbox2.Items.add(item);
}
So when you want to display form2, you supply the data within the constructor. You could just pass in the Items property as well where it will treat it as reference. You could create a property called ListItems in form2 and when creating the form2 in order to show it from form1, you could just call that property with the items.
form2 form = new form2();
form.ListItems = listbox.Items;
form.show();
There are many ways to pass data between forms, you have to realize it is a class and you treat it as how you would pass data between classes.
Good Luck
When you want to pass data between forms (such as listbox items), you should realize a form is a class. Your form1 is a class where you can provide more information, in this case you could provide a polymorphic parameter overloaded constructor such as:
public form2(List%26lt;int%26gt; items) {
foreach(int item in items) listbox2.Items.add(item);
}
So when you want to display form2, you supply the data within the constructor. You could just pass in the Items property as well where it will treat it as reference. You could create a property called ListItems in form2 and when creating the form2 in order to show it from form1, you could just call that property with the items.
form2 form = new form2();
form.ListItems = listbox.Items;
form.show();
There are many ways to pass data between forms, you have to realize it is a class and you treat it as how you would pass data between classes.
Good Luck
How to make provision for file upload and download in C#.NET? file should reside in a remote system.?
I need to know how to give the URL of the system that the file is going to reside? I am developing a site where it should upload the file from the users and store in the space that I have already bought from the domain service provider. Help me out wit the code..
How to make provision for file upload and download in C#.NET? file should reside in a remote system.?
http://msdn2.microsoft.com/en-us/system....
Reply:You know in web we don' have actual path or drives, we have just virtual.
So we can access the file or folder via Server object of .net.
For example:For uploading a file for profile of someone we should create a folder for him and then upload file via
"Server.MapPath(serverPath) ".
You should set the path of server via Server.MapPath() .
How to make provision for file upload and download in C#.NET? file should reside in a remote system.?
http://msdn2.microsoft.com/en-us/system....
Reply:You know in web we don' have actual path or drives, we have just virtual.
So we can access the file or folder via Server object of .net.
For example:For uploading a file for profile of someone we should create a folder for him and then upload file via
"Server.MapPath(serverPath) ".
You should set the path of server via Server.MapPath() .
What classes from the namespace System.Drawing implement IConvertible?? in c# .NET ???
i need to insert an image from a picturebox to the mssql database but the object image of the picture box does not implements IConvertible. which classes from System.Drawing do that??
What classes from the namespace System.Drawing implement IConvertible?? in c# .NET ???
http://gridviewguy.com/ArticleDetails.as...
That article should give you a good idea on how to do this.
hollyhock
What classes from the namespace System.Drawing implement IConvertible?? in c# .NET ???
http://gridviewguy.com/ArticleDetails.as...
That article should give you a good idea on how to do this.
hollyhock
What are the levels to interpret a program in Visual C#.NET ??
and what does these consepts means ?? MSIS %26amp; JIT ??
What are the levels to interpret a program in Visual C#.NET ??
Msis should be MSIL (Microsoft Intermediate Language) this a feature in .net which allows programmers to write the programs, in VB.net or c# or visual j#, upon runtime all this code is converted to MSIL, from MSIL it goes thorugh a JIT (just in time compiler) this compiles your code into computer hardware code. This is the actual code that is run on your hardware, as it is electronic curcits that only understan binary (1's and 0's) the jit compliles the MSIL to this code.
The advantages of using .net, is that you have a choice of 3 programing language to write your .net application, it will be run them same on all machines.
What are the levels to interpret a program in Visual C#.NET ??
Msis should be MSIL (Microsoft Intermediate Language) this a feature in .net which allows programmers to write the programs, in VB.net or c# or visual j#, upon runtime all this code is converted to MSIL, from MSIL it goes thorugh a JIT (just in time compiler) this compiles your code into computer hardware code. This is the actual code that is run on your hardware, as it is electronic curcits that only understan binary (1's and 0's) the jit compliles the MSIL to this code.
The advantages of using .net, is that you have a choice of 3 programing language to write your .net application, it will be run them same on all machines.
Should finally block be placed after all catch blocks in c#.NET?
Yes It should be placed after all catch blocks.
The finally block should include all the code that you
want to execute even in case of Exception of any kind
(e.g Closing connection etc.)
Should finally block be placed after all catch blocks in c#.NET?
if u are talking about try and catch blocks then it is not required.
but in some cases it is required to put the finally block
Reply:From what I understand the language itself doesn't require it, but generally speaking you'll quite often need it, so it's probably good programming practice to include one :)
Rawlyn.
The finally block should include all the code that you
want to execute even in case of Exception of any kind
(e.g Closing connection etc.)
Should finally block be placed after all catch blocks in c#.NET?
if u are talking about try and catch blocks then it is not required.
but in some cases it is required to put the finally block
Reply:From what I understand the language itself doesn't require it, but generally speaking you'll quite often need it, so it's probably good programming practice to include one :)
Rawlyn.
How to create data grid for a web form in c#.net?
Its really Simple if you are using a Visual Studio.NET
Just click on the Toolbox and drag a datagrid to your page and set its properties as you like
Just click on the Toolbox and drag a datagrid to your page and set its properties as you like
How can I add a tablestyle to a datagridview in C#.net 2005?
The GridView takes a CssClass property which can be set declaratively or in Code Behind.
The following Styles can also be used to assign CSS classes to the various Items of a GridView
%26lt;asp:GridView CssClass="class" ID="gvData" runat="server""%26gt;
%26lt;EditRowStyle CssClass="GridClass" /%26gt;
%26lt;AlternatingRowStyle CssClass="AltRowClass" /%26gt;
%26lt;HeaderStyle CssClass="GridHeaderClass" /%26gt;
%26lt;RowStyle CssClass="GridRowClass" /%26gt;
%26lt;FooterStyle CssClass="FooterClass" /%26gt;
%26lt;/asp:GridView%26gt;
cabbage
The following Styles can also be used to assign CSS classes to the various Items of a GridView
%26lt;asp:GridView CssClass="class" ID="gvData" runat="server""%26gt;
%26lt;EditRowStyle CssClass="GridClass" /%26gt;
%26lt;AlternatingRowStyle CssClass="AltRowClass" /%26gt;
%26lt;HeaderStyle CssClass="GridHeaderClass" /%26gt;
%26lt;RowStyle CssClass="GridRowClass" /%26gt;
%26lt;FooterStyle CssClass="FooterClass" /%26gt;
%26lt;/asp:GridView%26gt;
cabbage
How to save image in xml file in c#.net.Plz immediate help me.?
Go through the Following Articles:
1%26gt;http://www.codeproject.com/csharp/cardfi...
2%26gt; http://www.developerfusion.co.uk/show/46...
They might be of Help to You.
How to save image in xml file in c#.net.Plz immediate help me.?
XML files cannot contain images. These files can only contain text. Actually XML files are used to communicate with the server.
Reply:You may be better off looking to save the url of the image file rather than the image file itself.
If you must save the image file in the XML then you need to use CDATA
A CDATA section starts with "%26lt;![CDATA[" and ends with "]]%26gt;":
Reply:Convert it Image Binary data to string using base64 and insert it into XML file
1%26gt;http://www.codeproject.com/csharp/cardfi...
2%26gt; http://www.developerfusion.co.uk/show/46...
They might be of Help to You.
How to save image in xml file in c#.net.Plz immediate help me.?
XML files cannot contain images. These files can only contain text. Actually XML files are used to communicate with the server.
Reply:You may be better off looking to save the url of the image file rather than the image file itself.
If you must save the image file in the XML then you need to use CDATA
A CDATA section starts with "%26lt;![CDATA[" and ends with "]]%26gt;":
Reply:Convert it Image Binary data to string using base64 and insert it into XML file
How to open word documentation in windows applicaiton +c#.net?
Im pretty certain that word is just a slightly different version of the rtf specification so you should be able to parse most of it with rtf.
Hope that helps.
Hope that helps.
Can you give me details about website designing in ASP.NET and C#.NET?
i m currently doing project on the search engine for jobs so please tell me about the above query i m a MCA student
Can you give me details about website designing in ASP.NET and C#.NET?
Depends what you want to know, specifics would be ideal but if it's just a general overview you're after then it can be anything.
Can you give me details about website designing in ASP.NET and C#.NET?
Depends what you want to know, specifics would be ideal but if it's just a general overview you're after then it can be anything.
How to call SQL server stored procedure in c#.net function?
you should use an sql connection object from the component toolbar n make a connected architecture.. and then drag n drop an sql command object . in that object's property set type = stored procedure and then proceed. it's as simple as that in visual studio..
in query builder u'll get the type as : create procedure %26lt;%26gt; as.... GO.
then in ur code for d form write:
SqlCommand cmd = new SqlCommand (%26lt;proc.name%26gt;, %26lt;connection name%26gt;);
cmd.CommandType=CommandType.StoredProc...
cmd.Parameters.Add( new SqlParameter("@%26lt;pname%26gt;",%26lt;type%26gt;,value,%26lt;co... name%26gt;));
cmd.ExecuteNonQuery();
hope thiswill work for u?
phlox
in query builder u'll get the type as : create procedure %26lt;%26gt; as.... GO.
then in ur code for d form write:
SqlCommand cmd = new SqlCommand (%26lt;proc.name%26gt;, %26lt;connection name%26gt;);
cmd.CommandType=CommandType.StoredProc...
cmd.Parameters.Add( new SqlParameter("@%26lt;pname%26gt;",%26lt;type%26gt;,value,%26lt;co... name%26gt;));
cmd.ExecuteNonQuery();
hope thiswill work for u?
phlox
How can i run the media file in C # .Net programing ?
What is it you're trying to accomplish? Your question is too vague.
I am facing error in Response.Redirect(url) in ASP.Net with C#.Net?
Hello All
I am facing a misterious error in my application. It is in Response.Redirect(url). I am trying to solve it from two days but fail.
Now looking on you.. Error is follows
bool str1=false;
if(myreader.read()==true)
{
str1=myreader.getboolean(0);
}
if(str1==true)
{
Response.Redirect(url1);
}
else
{
Response.redirect(url2);
}
But it is giving following error.
"Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack."
Please help me as soon as possible
Many Many Many Many Thanks in advance
I am facing error in Response.Redirect(url) in ASP.Net with C#.Net?
Try directing the response to continue processing after the redirection is complete:
Response.Redirect(url1, false); //this allows the page to complete execution without an abnormal stop
Also, FYI, in your if() statements, checking whether your expression evaluates to true is superfluous - if(expression) is the same as saying if(expression==true), just as if(!expression) is the same as saying if(expression!=true) or if(expression==false). The if keyword is testing the expression for truth, so testing whether it is equal to true is just adding an extra step.
Reply:try a different syntax like
Response.Redirect("http://www.yahoo.co...
or
Response.Redirect "filename.asp"
thats the way it worked for me long time ago when i played with ASP
I am facing a misterious error in my application. It is in Response.Redirect(url). I am trying to solve it from two days but fail.
Now looking on you.. Error is follows
bool str1=false;
if(myreader.read()==true)
{
str1=myreader.getboolean(0);
}
if(str1==true)
{
Response.Redirect(url1);
}
else
{
Response.redirect(url2);
}
But it is giving following error.
"Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack."
Please help me as soon as possible
Many Many Many Many Thanks in advance
I am facing error in Response.Redirect(url) in ASP.Net with C#.Net?
Try directing the response to continue processing after the redirection is complete:
Response.Redirect(url1, false); //this allows the page to complete execution without an abnormal stop
Also, FYI, in your if() statements, checking whether your expression evaluates to true is superfluous - if(expression) is the same as saying if(expression==true), just as if(!expression) is the same as saying if(expression!=true) or if(expression==false). The if keyword is testing the expression for truth, so testing whether it is equal to true is just adding an extra step.
Reply:try a different syntax like
Response.Redirect("http://www.yahoo.co...
or
Response.Redirect "filename.asp"
thats the way it worked for me long time ago when i played with ASP
How read xml word document to dataset in c#.net?.?
I think this should work:
--------------------------------------...
private void button2_Click(object sender, System.EventArgs e)
{
try
{
//Create instance for openFileDialog i.e. open_file
OpenFileDialog open_file=new OpenFileDialog();
open_file.Filter="XML Files|*.xml";
open_file.DefaultExt="xml";
DialogResult Dialog_result=open_file.ShowDialog(this)...
if (Dialog_result==DialogResult.OK)
{
string fn=open_file.FileName;
DataSet ds=new DataSet();
ds.ReadXml(fn);
lbTables.Items.Clear();
foreach (DataTable dt in ds.Tables)
{
lbTables.Items.Add(dt.TableName);
}
Ds_xml=ds;
lbTables.SelectedIndex=0;
fnSchema=fn;
this.Text="XML Database Editor - "+fnSchema;
TextBox tablename=new TextBox();
string tblName=lbTables.Text;
dataGrid1.SetDataBinding(Ds_xml, tblName);
dataGrid1.CaptionText="Table: "+tblName;
}
}
catch(Exception ex){
MessageBox.Show(ex.ToString());
}}
--------------------------------------...
private void button2_Click(object sender, System.EventArgs e)
{
try
{
//Create instance for openFileDialog i.e. open_file
OpenFileDialog open_file=new OpenFileDialog();
open_file.Filter="XML Files|*.xml";
open_file.DefaultExt="xml";
DialogResult Dialog_result=open_file.ShowDialog(this)...
if (Dialog_result==DialogResult.OK)
{
string fn=open_file.FileName;
DataSet ds=new DataSet();
ds.ReadXml(fn);
lbTables.Items.Clear();
foreach (DataTable dt in ds.Tables)
{
lbTables.Items.Add(dt.TableName);
}
Ds_xml=ds;
lbTables.SelectedIndex=0;
fnSchema=fn;
this.Text="XML Database Editor - "+fnSchema;
TextBox tablename=new TextBox();
string tblName=lbTables.Text;
dataGrid1.SetDataBinding(Ds_xml, tblName);
dataGrid1.CaptionText="Table: "+tblName;
}
}
catch(Exception ex){
MessageBox.Show(ex.ToString());
}}
Academic Project MCA BE BTech BE BCA BSc MSc Live Project Trainee ASP.NET VB.NET C#.NET Home Tutor Mumbai?
Hi All,
I am looking for somebody to provide assistance and training to my friends pursuing various computer and information technology related courses in Mumbai. He or she should preferably from the IT Industry having some years of experience in teaching and software development. He should be ready to give training at student's place. If you have anybody, please get back to me.
Thanks in advance.
Academic Project MCA BE BTech BE BCA BSc MSc Live Project Trainee ASP.NET VB.NET C#.NET Home Tutor Mumbai?
Hi,
I have one good resource to solve all your problems. Visit
http://www.geocities.com/binujulius/inde...
Hope this will help you.
Have a nice day!!
verbena
I am looking for somebody to provide assistance and training to my friends pursuing various computer and information technology related courses in Mumbai. He or she should preferably from the IT Industry having some years of experience in teaching and software development. He should be ready to give training at student's place. If you have anybody, please get back to me.
Thanks in advance.
Academic Project MCA BE BTech BE BCA BSc MSc Live Project Trainee ASP.NET VB.NET C#.NET Home Tutor Mumbai?
Hi,
I have one good resource to solve all your problems. Visit
http://www.geocities.com/binujulius/inde...
Hope this will help you.
Have a nice day!!
verbena
C++ or Java or ASP.NET?
If i were to write a web application that will perform search function on millions of records, much like Yahoo and Google do (not doing another search engine..), if i use the same db, using the same query, and have the same server, which will give me a faster returned results? Java or C++ or any other language? Will it be slower if i use C++ in ASP.NET platform, instead of CGI? Thanx.
C++ or Java or ASP.NET?
If business logic is relatively simple and you don't need parallel processing you can opt to any language depending on the development cost. The price that charged by software developers is about to be the same so does not matter what you choose. Another question is DB optimization. Most perfomance problem in such type of application is database related. You better focus on optimizing database quiry then on selecting server programming language. If you need multithreading, some infastuctural support as connecting to mainframe or creating complecated reports then take Java. The good point of uisng Java that you can start working with absolutly free and vendor independen software. Once you product becomes mature you can opt to using some professional level application server that will allow you to parallel your processing and perform more request at the same time. You can encrease computing power according your needs. Again Java is portable so you select ideal hosting depending on your financial means. You can start from hosting your application on the regular PC and then choose an professional server that is working on UNIX. So Java bassically gives you more options. .NET is also good. As people say it has a support but Microsoft is Microsoft. Today they sale .NET tomorrow they don't. Some time ago they stopped supporting J++ because of the commercial dispute with Sun. May be tomorrow it will some issue with .NET. Are you going to take the hit. My advice - stick with openwire and buy commercaial soft only when you ready.
Reply:for web-based it will be ASP.net or PHP
there are cons and prons for both languages...ASP.net is NOT free, it is expensive, it is a product of Microsoft..but it is quite good..if u purchase it they will provide technical support and assist u with using it...on the other hand PHP is is an open source project..it is widely used by many of the major companies..PHP supports multi platforms including windows and linux...there are a lot of help forums for php..it is free of charge and can be downloaded freely form their website..PHP also supports a lot of webservers including IIS, zend, etc.. and suports many data bases
Reply:My recommendation would be ASP.NET or Java, as with C++ you will have to handle your own memory management. I'm all for C++, but most of the work will be done in the DB, so I would go for the ease of a managed code environment. You might even want to look at Python.
Reply:for web i think java, (iam doubt abt the same code, because its not practical)
Reply:Use ASP.NET. Using C#, VB.Net, or Managed C++ will surpass the performance of Java, especially if the app is running on an Intel-based processor. Don't forget that Javacode is interpreted and .NET code runs native after the initial run.
C++ or Java or ASP.NET?
If business logic is relatively simple and you don't need parallel processing you can opt to any language depending on the development cost. The price that charged by software developers is about to be the same so does not matter what you choose. Another question is DB optimization. Most perfomance problem in such type of application is database related. You better focus on optimizing database quiry then on selecting server programming language. If you need multithreading, some infastuctural support as connecting to mainframe or creating complecated reports then take Java. The good point of uisng Java that you can start working with absolutly free and vendor independen software. Once you product becomes mature you can opt to using some professional level application server that will allow you to parallel your processing and perform more request at the same time. You can encrease computing power according your needs. Again Java is portable so you select ideal hosting depending on your financial means. You can start from hosting your application on the regular PC and then choose an professional server that is working on UNIX. So Java bassically gives you more options. .NET is also good. As people say it has a support but Microsoft is Microsoft. Today they sale .NET tomorrow they don't. Some time ago they stopped supporting J++ because of the commercial dispute with Sun. May be tomorrow it will some issue with .NET. Are you going to take the hit. My advice - stick with openwire and buy commercaial soft only when you ready.
Reply:for web-based it will be ASP.net or PHP
there are cons and prons for both languages...ASP.net is NOT free, it is expensive, it is a product of Microsoft..but it is quite good..if u purchase it they will provide technical support and assist u with using it...on the other hand PHP is is an open source project..it is widely used by many of the major companies..PHP supports multi platforms including windows and linux...there are a lot of help forums for php..it is free of charge and can be downloaded freely form their website..PHP also supports a lot of webservers including IIS, zend, etc.. and suports many data bases
Reply:My recommendation would be ASP.NET or Java, as with C++ you will have to handle your own memory management. I'm all for C++, but most of the work will be done in the DB, so I would go for the ease of a managed code environment. You might even want to look at Python.
Reply:for web i think java, (iam doubt abt the same code, because its not practical)
Reply:Use ASP.NET. Using C#, VB.Net, or Managed C++ will surpass the performance of Java, especially if the app is running on an Intel-based processor. Don't forget that Javacode is interpreted and .NET code runs native after the initial run.
Will you help me to manage user session in a website using C#.net and ASP.Net?
Sorry for bad english :(
===============
Hello you all greate web guru
I am a learner of web developement. I have create two pages one is login page and other is UserHome.aspx. It will open after success full login.
When user enters correct information then following works
if(myDatareader.read()==true)
{
Request.Redirect("UserHome.aspx?ID="+Ses...
}
I am sendind an session ID to check continues of webpage. And written inf UserHome.aspx
Page_load(ss,ss)
{
If(Request.QueryString["ID"]!="" || Request.QueryString["ID"]==null)
{
Request.Redirect("User.aspx");
}
}
Its working fine. But problem is that its really nothing means security. because when Url copy the UserHom.aspx with any ID value its open.
I want that User login only after that UserHOme.aspx will open otherwise not.
will you suggest me technique that how can I manage User in my web.
Thanks in Advance
Will you help me to manage user session in a website using C#.net and ASP.Net?
Ok this is how you can do it (if you insist on reinventing the wheel)
1) Declare a User class
2) Add properties and methods to the User Class. For example you might add a property named IsAuthenticated to your class.
3) after authenticating an instance of User, you save in it Session
In a secure page, you retrieve your user object from the Session to check if the current user is authenticated. If not, you redirect him to a login page
User user = (User)Session["currentUser"];
if(!user.IsAuthenticated) {
Response.Redirect("Login.aspx", true);
}
In the Login Page, after a user successfully logins in you store a User instance in Session
User user = new User();
// do stuff here to authenticate user
user.IsAuthenticated = true;
Session["currentUser"] = user;
Hope this helps!!
Reply:Use the built-in forms authentication provider that comes with ASP.NET. It will work much better than what you have now, which is awful.
http://quickstarts.asp.net/QuickStartv20...
===============
Hello you all greate web guru
I am a learner of web developement. I have create two pages one is login page and other is UserHome.aspx. It will open after success full login.
When user enters correct information then following works
if(myDatareader.read()==true)
{
Request.Redirect("UserHome.aspx?ID="+Ses...
}
I am sendind an session ID to check continues of webpage. And written inf UserHome.aspx
Page_load(ss,ss)
{
If(Request.QueryString["ID"]!="" || Request.QueryString["ID"]==null)
{
Request.Redirect("User.aspx");
}
}
Its working fine. But problem is that its really nothing means security. because when Url copy the UserHom.aspx with any ID value its open.
I want that User login only after that UserHOme.aspx will open otherwise not.
will you suggest me technique that how can I manage User in my web.
Thanks in Advance
Will you help me to manage user session in a website using C#.net and ASP.Net?
Ok this is how you can do it (if you insist on reinventing the wheel)
1) Declare a User class
2) Add properties and methods to the User Class. For example you might add a property named IsAuthenticated to your class.
3) after authenticating an instance of User, you save in it Session
In a secure page, you retrieve your user object from the Session to check if the current user is authenticated. If not, you redirect him to a login page
User user = (User)Session["currentUser"];
if(!user.IsAuthenticated) {
Response.Redirect("Login.aspx", true);
}
In the Login Page, after a user successfully logins in you store a User instance in Session
User user = new User();
// do stuff here to authenticate user
user.IsAuthenticated = true;
Session["currentUser"] = user;
Hope this helps!!
Reply:Use the built-in forms authentication provider that comes with ASP.NET. It will work much better than what you have now, which is awful.
http://quickstarts.asp.net/QuickStartv20...
How do i add a button column to a datagrid in a c# .net windows application?(NOT an asp.net application)?
the gatagrids source is a dataset and i need the column to allow the user to update the info in the table
How do i add a button column to a datagrid in a c# .net windows application?(NOT an asp.net application)?
I've learned that reinventing the well is not really the best solution.
I've tried this solution and it works perfect for my need:
http://www.codeproject.com/cs/miscctrl/c...
How do i add a button column to a datagrid in a c# .net windows application?(NOT an asp.net application)?
I've learned that reinventing the well is not really the best solution.
I've tried this solution and it works perfect for my need:
http://www.codeproject.com/cs/miscctrl/c...
How can i backup from dataBase in c#.NET?
If you know please send me its code.
How can i backup from dataBase in c#.NET?
SqlConnection cnn = new SqlConnection("Data Source=ariesdell; Initial Catalog=Northwind;Integrated Security=SSPI");
SqlCommand cmd = new SqlCommand("backup database northwind to disk = 'c:\Northwind.bak'");
try {
cnn.Open();
cmd.Connection = cnn;
cmd.ExecuteNonQuery();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
snapdragon2
How can i backup from dataBase in c#.NET?
SqlConnection cnn = new SqlConnection("Data Source=ariesdell; Initial Catalog=Northwind;Integrated Security=SSPI");
SqlCommand cmd = new SqlCommand("backup database northwind to disk = 'c:\Northwind.bak'");
try {
cnn.Open();
cmd.Connection = cnn;
cmd.ExecuteNonQuery();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
snapdragon2
C programing for .net?
I want to learn VB.NET, ASP.NET, Oracle, SQL server and crystal reports. I am a commerce graduate from Mumbai University and dont have any programing knowledge. Is that necessary that i should have 'C' programing knowledge before i start with .net. please help. thanks
C programing for .net?
You really cannot go wrong learning C; however, if your ONLY goal is to write programs in the .NET platform I would recommend that you concentrate your efforts on that end.
That being said, most .Net programming done these days is done with C#, not VB. C# is much more robust than VB and combines the features of many other languages, such as C/C++, Java, and Pascal. However, you do not need to know these languages in order to learn C#.
Reply:If you want to be a good programmer, I recommend knowing C. If you want to focus on .Net, after learning C, C# is an excellent choice for language.
Knowing C will help you understand the underlying details and structure of how .Net works. Otherwise, it's just a black box that automagically works or doesn't.
Reply:i don't see why.. you said you want to learn VB.net and ASP.net
you should learn VB and ASP. .NET is not a programming language
C programing for .net?
You really cannot go wrong learning C; however, if your ONLY goal is to write programs in the .NET platform I would recommend that you concentrate your efforts on that end.
That being said, most .Net programming done these days is done with C#, not VB. C# is much more robust than VB and combines the features of many other languages, such as C/C++, Java, and Pascal. However, you do not need to know these languages in order to learn C#.
Reply:If you want to be a good programmer, I recommend knowing C. If you want to focus on .Net, after learning C, C# is an excellent choice for language.
Knowing C will help you understand the underlying details and structure of how .Net works. Otherwise, it's just a black box that automagically works or doesn't.
Reply:i don't see why.. you said you want to learn VB.net and ASP.net
you should learn VB and ASP. .NET is not a programming language
Which is best sap financial ( ERP) or C# .net for a beginner ( li'l programming ex) ???
plese tell the difference with respect to pay , job availability %26amp; future of technology. thanks.
Which is best sap financial ( ERP) or C# .net for a beginner ( li'l programming ex) ???
There is no "best". You basically have two choices, each with consequences.
1. Choose to specialize (ERP).
Pro: more money up front for your speciality knowledge.
Con: higher risk of losing your job when that specialty goes out of style.
2. Choose general skills.
Pro: applicable over a long time period, high job security.
Con: large applicant pool = lower wages.
Pick one and go. :-)
Which is best sap financial ( ERP) or C# .net for a beginner ( li'l programming ex) ???
There is no "best". You basically have two choices, each with consequences.
1. Choose to specialize (ERP).
Pro: more money up front for your speciality knowledge.
Con: higher risk of losing your job when that specialty goes out of style.
2. Choose general skills.
Pro: applicable over a long time period, high job security.
Con: large applicant pool = lower wages.
Pick one and go. :-)
Which is best sap financial ( ERP) or C# .net for a beginner ( li'l programming ex) ???
plese tell the difference with respect to pay , job availability %26amp; future of technology. thanks.
Which is best sap financial ( ERP) or C# .net for a beginner ( li'l programming ex) ???
SAP is totally the way to go. There are always shortages for good programmers in SAP. C is much more general.
Which is best sap financial ( ERP) or C# .net for a beginner ( li'l programming ex) ???
SAP is totally the way to go. There are always shortages for good programmers in SAP. C is much more general.
How do I communicate from child to mdiparent in c# .net 2.0?
I need to activate menu and toolbar options in an MDI parent based on things that happen in the child that will allow the parent to open another child form. I know how to send the information from the child to the new child, but I can't figure out how to send information from the child to the parent.
avender
avender
Is there is limit on appearing for U.G.C. NET exam for lecturership?
just like there is for civil services exam i.e, 4 attempts.
Is there is limit on appearing for U.G.C. NET exam for lecturership?
you can search it on this link. plz click
http://www.indiaresults.com/Career_Guida...
Is there is limit on appearing for U.G.C. NET exam for lecturership?
you can search it on this link. plz click
http://www.indiaresults.com/Career_Guida...
How can I change color of DataGridView Scrollbar in C# .net 2.0?
The HorizontalScrollBar and VerticalScrollBar properties of the DataGridView return a ScrollBar control, which has all of the style properties exposed.
The member list for the ScrollBar control:
http://msdn2.microsoft.com/en-us/library...
The overview of the ScrollBar control:
http://msdn2.microsoft.com/en-us/library...
Also, here is an article on creating custom scroll bars: http://www.codeproject.com/cs/miscctrl/c...
How can I change color of DataGridView Scrollbar in C# .net 2.0?
as far as i know, you cant change the scrollbar colors in .net... :P
The member list for the ScrollBar control:
http://msdn2.microsoft.com/en-us/library...
The overview of the ScrollBar control:
http://msdn2.microsoft.com/en-us/library...
Also, here is an article on creating custom scroll bars: http://www.codeproject.com/cs/miscctrl/c...
How can I change color of DataGridView Scrollbar in C# .net 2.0?
as far as i know, you cant change the scrollbar colors in .net... :P
I look for free chm files about MS Visual C#.net 2005. How can i find it (*Free*)?
Go to microsofts site and download the Visual C# express edition which is free. It comes with a lot of documention about C# and .NET in general. You can also download the .NET SDK for a more thorough documentiations but I believe it is a more general in nature.
I would like some input on morpheus.com / and c/net download.?
Morpheus is a legitimate site and its philosophies have been favorably judged by the Supreme Court:
http://www.streamcastnetworks.com/?ref=M...
CNET is well known for its reviews, recommendations, and downloads. They are also a very legitimate site:
http://www.cnet.com/
One other site that might be of interest to you is Major Geeks:
http://www.majorgeeks.com/
I've used all three and I've never been disappointed.
plrr
violet
http://www.streamcastnetworks.com/?ref=M...
CNET is well known for its reviews, recommendations, and downloads. They are also a very legitimate site:
http://www.cnet.com/
One other site that might be of interest to you is Major Geeks:
http://www.majorgeeks.com/
I've used all three and I've never been disappointed.
plrr
violet
How saving and retrieving an images in database in C#.net?
please send me its sample.
Thanks a lot.
How saving and retrieving an images in database in C#.net?
Saving images in database is not reccomended. It will result in bad performance of your appilcaiton. Anyway this example link will help you http://www.codeproject.com/aspnet/PicMan...
Reply:Hi Frnd
For Storing
(Request.MapPath("/foldername"+
"\\"+imgFileName),content);
For retriving Just give the path of the folder
Thanks a lot.
How saving and retrieving an images in database in C#.net?
Saving images in database is not reccomended. It will result in bad performance of your appilcaiton. Anyway this example link will help you http://www.codeproject.com/aspnet/PicMan...
Reply:Hi Frnd
For Storing
(Request.MapPath("/foldername"+
"\\"+imgFileName),content);
For retriving Just give the path of the folder
What is the starting salary for an entry level C#.NET software developer in new york city?
$60,000 USD
What is the starting salary for an entry level C#.NET software developer in new york city?
http://salary.com/
What is the starting salary for an entry level C#.NET software developer in new york city?
http://salary.com/
Subscribe to:
Posts (Atom)