| Next Tip?
Home » Archive

Articles in the Asp.Net Category

Asp.Net, CSharp, Company asked interview questions, RSystems »

[25 Jan 2010 | No Comment | 644 views]

Q. Can I inherit two difference classes to partial classes? Following is the whole scenario of this question:
I have two classes XYZ and ABC and two partial classes  of class myClass now is it possible:
partial class myClass : XYZ
{
}
partial class myClass : ABC
{
}
Ans:  This question I have asked in RSystems, Noida and I am sharing hereunder with you :
We can’t inherit two difference classes to partial class because in C# multiple inheritance is not possible using classes.
The main reason is in C# we cant do the following:
class myClass : XYZ, …

Asp.Net, Microsoft .Net »

[25 Jan 2010 | No Comment | 484 views]

The question is asked in RSystems, Noida and I am sharing the same with you, my asnwer is as follows, if anyone have idea or more depth in answer please share where:
We can store only objects of the following types:
1. string
2. integers
3. boolean
4. Array
5. ArrayList
6. Hash tables
7. Custom types etc.
Apart from above we can share some other types too but the class must be serialized.
In view of above theory, we can say ‘yes, we can store DataView in ViewState for serialized class.
Tweet This Post

Asp.Net, Microsoft .Net »

[3 Nov 2009 | No Comment | 308 views]

Its can’t possible adding hyperlinks/links to listbox.
Its just a collection items not child items and are not render while anyone put some html tags. So, its not possible
Tweet This Post

Asp.Net, HTML »

[12 Oct 2009 | No Comment | 475 views]

<object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ id=”name” width=”468″ codebase=”http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0″ height=”60″>
<param value=”http://www.msdotnetheaven.com/shubhhostingDiwali.swf” name=”movie”/>
<param value=”high” name=”quality”/>
<param value=”transparent” name=”wmode”/>
<embed
pluginspage=”http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash” quality=”high” type=”application/x-shockwave-flash” height=”60″ src=”http://www.msdotnetheaven.com/shubhhostingDiwali.swf” width=”468″ wmode=”transparent” name=”name”>
</embed>
</object>
Tweet This Post

Asp.Net »

[12 Oct 2009 | No Comment | 1,188 views]

By default width of column handled automatically, means columns in Gridview control are sized automaticlaly internally column cells redered as HTML cell. On the basis of requirement one can set the width dynamically also.
Following are the steps to do it;
1. Setting Column Width Dynamically:
Through code, set the width property on the ItemStyle of GridView.
Following is the code-snippet for the same:
VB.NEt:
[CODE]
Dim intColWidth As Integer = 25
GridView1.Columns(0).ItemStyle.Width = intColWidth
[/CODE]
C#:
[CODE]
int intColWidth = 25;
GridView1.Columns(0).ItemStyle.Width = intColWidth;
[/CODE]
2. Setting Column width as per Data-Content :
Write following piece of code in RowDataBound handler / event:
Note: Code is …

Asp.Net »

[2 Sep 2009 | No Comment | 97 views]

No, it just reads the information from its data source.
Tweet This Post

Asp.Net »

[2 Sep 2009 | No Comment | 89 views]

Client-side.  This reduces an additional request to the server to validate the user input.
Tweet This Post

Asp.Net »

[30 Aug 2009 | No Comment | 105 views]

Private,   Public/ share, and  Satellite.
There is some debate for Satelite assemblies some says this is a type some says this is a technique.
Tweet This Post

Asp.Net »

[30 Aug 2009 | No Comment | 121 views]

The Global. asax (including Global. asax.cs) is used to implement application and session level events.
All variables are available of Global.asax through out the application.
Tweet This Post

Asp.Net, Microsoft .Net »

[15 Aug 2009 | No Comment | 321 views]

There is no direct way provided by webservices to maintain state. But webservices can maintain the state by using asp.net instrinsic objects i.e Session and application.
using System.web.Services;
public class myWebService : Webservices
{
[Webmethod()]
public void maintainState(string value)
{
Session(“Val”) = value;
}
}
Tweet This Post

Get Adobe Flash playerPlugin by wpburn.com wordpress themes