kuldeep chauhan


{ City } bangalore
< Country > india
* Profession *
User No # 18585
Total Questions Posted # 0
Total Answers Posted # 9

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 182
Users Marked my Answers as Wrong # 39
Questions / { kuldeep chauhan }
Questions Answers Category Views Company eMail




Answers / { kuldeep chauhan }

Question { 5699 }

why we should use more than one web.config files in our
application? I have two web.config files in my application.
One in the root directory and another one inside a sub
folder. When the application runs which web.config file
will run? why?


Answer

we can use more than one web.config file to meet the
different security and other configuration requirements of
different directories, and in any case web.config file of
subdirectory will take the precedence over file of root
directory.

Is This Answer Correct ?    20 Yes 3 No

Question { Value Labs, 5305 }

Difference between ADO.Net 1.1 and ADO.Net 2.0 ?


Answer

ADO.NET 2.0 has new data binding model which reduce the
amount of code you write for data binding. It has more
compact dataset. ADO.NET 2.0 supports provider factories by
which you can write generic data access code. SQL Server
can now hast the CLR, also SQL notifications for ADO.NET
2.0 is new concept. some ADO.NET properties specially for
SQL Server 2005 like MARS (multiple active record set),
user defined data types, managed stored procedure by which
we can write S.P. in pure C#, snapshot transaction
isolation by which we can see relatively older data while
it is being updated by another transaction.

Is This Answer Correct ?    4 Yes 0 No


Question { Bosch, 21345 }

what is the default value of CHAR type?in C# using asp.net?


Answer

ZERO

Is This Answer Correct ?    4 Yes 17 No

Question { 4706 }

I need to download file from web server, without using save
as dialogue box. Can anyone help, thanks In advance.


Answer

for save as dialoge box use this code

Response.ClearContent();
//give file type
Response.ContentType = "video/.wmv";
Response.AddHeader("content-disposition", "attachment;
filename=download.wmv");
string filename1 = @"E:\xyz.wmv";
Response.TransmitFile(filename1);

but if you need to download file without user interaction
then please refer to this link
http://www.devarticles.com/c/a/ASP.NET/HTTP-File-Download-
Without-User-Interaction-Using-.NET/

Is This Answer Correct ?    3 Yes 0 No

Question { 6808 }

WHICH IS MORE SECURED AMONG JAVA AND .NET?


Answer

Security depends how do you implement your code actually,
so question like this which is more secure is meaning less.
Both have strict security options.

Is This Answer Correct ?    35 Yes 0 No

Question { eMids, 13992 }

What are the data types is possible to store in session?
and can we store dataset in session?


Answer

If you are using inproc then you can store any .net data
type (non serializable also), but if you are using state
server or sql server mode then you can only store
serializable data types.

Is This Answer Correct ?    14 Yes 7 No

Question { 6452 }

how to retrieve data using web services in asp.net pls give
me the code and explain me briefly


Answer

To retrieve data from a web service first make method in
web service that query to the database and retrieve data
and return Dataset or the data type which you want to
retrieve (But web service can only return integer, string,
arrays, enum, xmlNode, Dataset etc). Make a proxy class for
your web service using VS or wsdl.exe. Now just make a
client class, make an object instance of web service in
your client class, and call the web method using this
object. I think now you can design code according to your
need.

Is This Answer Correct ?    5 Yes 3 No

Question { eMids, 15871 }

I have a textbox , assign required field validator and i
have two buttons 1) save 2) cancel , i want the validator
run only when i click save button, don't validate cancel
button , what to do?


Answer

Use property CauseValidation="false" for the Cancel Button

Is This Answer Correct ?    87 Yes 9 No

Question { 3444 }

hello friends..
when i deployment my project in the client machine that is
successful but whenever i try to run my project using .exe
file then it gives me error ".exe is not a valid
win32 application."
what i do somebody halp me pls


Answer

The error which you told in your question is because you
are trying to execute a file which is not actually
installed on the client machine. may be you are just
copying the files of your project on client machine. But in
order to run your project you need to make installer of
your project and then deploy it on client machine to make
your executable files specific to the client platform.

Is This Answer Correct ?    10 Yes 0 No