Click Here to Install Silverlight*
IndiaChange|All Microsoft Sites
Microsoft
Communities 
 
Chat Transcript
 
Chat Topic : ASP.NET Best Practices
Chat Expert : Jignesh Desai ( .NET Consultant and Trainer)
February 2, 2005
 
 
Subhashini[Moderator]:
Hi all. A very good evening to all of you . Hope you find the chat useful and informative.
Thank you all for joining the chat and taking time out of your hectic schedules.
The weekly chat details are given at http://www.microsoft.com/india/communities/chat/default.aspx The chat archives can be found at http://www.microsoft.com/india/communities/chat/Transcripts.aspx
Subhashini[Moderator]:
Welcome to today’s Webchat on ASP.NET Best Practices
Today we have Jignesh Desai ( .NET Consultant and Trainer) as the chat expert.
Subhashini[Moderator]:
Jignesh is an active Member at MUG and has an experience of about 9 years in IT Developer and Training Industry. He has been working with .NET ever since its beta releases. He has a sound knowledge of architecting, designing and developing applications using NET framework. His website www.dotnetjini.com provides many articles, tutorials and sourcecode on MS technologies and others. You can reach him at jignesh_desai@hotmail.com
Subhashini[Moderator]:
Chat Procedures:
This chat will last for one hour. During this hour, our Experts will respond to as many questions as they can. Please understand that there may be some questions we cannot respond to due to lack of information or because the information is not yet public. We encourage you to submit questions for our Experts. We ask that you stay on topic for the duration of the chat. This helps the Guests and Experts follow the conversation more easily. We invite you to ask off topic questions after this chat is over.
Subhashini[Moderator]:
So let me welcome Jignesh to begin the chat.
[Expert]JigneshDesai:
Hi Subhashini, Thanks for the introduction.
[Expert]JigneshDesai:
Hi Friends, Welcome to this session
Bingo:
Hi Jignesh, Lets' start..!
[Expert]JigneshDesai:
Glad to see such a big response we 73 have participations for the session.
[Expert]JigneshDesai:
(Session assumes that you already know basics of ASP.NET)
venkat_kl:
subhashini --> when you were away some people started asking about the event, so i was explaing that
[Expert]JigneshDesai:
Developing applications in ASP.NET is quite easy and VS.NET environment makes it simpler,
[Expert]JigneshDesai:
but still we all struggle to meet our deadlines
[Expert]JigneshDesai:
later when application is complete, we start looking at reasons why performance is slow.
DoT_nEt_ExTeRmInAtE:
yups Sir
cooldesperado:
yep, very true
amitmnagarwal:
Ya very simpler
[Expert]JigneshDesai:
Its is said that precaution is better then cure..
[Expert]JigneshDesai:
That’s exactly why we are here today,
vn_nilesh asked the experts:
is there any other tool or product like FxCop which helps in standerdizing the code and pointing out errors?
[Expert]JigneshDesai:
to know tips and tricks of best practices so that we can face challenges with performance, scalability and other issues.
[Expert]JigneshDesai:
We’ll discuss the following:
[Expert]JigneshDesai:
1. Coding style. 2. Improve page response times 3. Improve usage of controls. 4. Binding
Sania Mirsa:
Jignesh, could you come in the experts chat window instead of guest chat window??
vn_nilesh asked the experts:
is there any other tool or product like FxCop which helps in standerdizing the code and pointing out errors?
Norsu asked the experts:
can we use the C# for chat
Andy asked the experts:
his jignesh..is there any particular reason for u to chat in guest chat section?
[Expert]JigneshDesai:
We have all type of participations here beginners to expert so let me even explain the basics rules, which some of you may be already aware
[Expert]JigneshDesai:
1# Tips for improving page response times
[Expert]JigneshDesai:
1. Some of us do practice of writing javascript code within .aspx page itself. Prefer to write it in .JS file since browser can cache .JS files.
DotnetMan:
Jignesh can u move to expert? tht will benefit for reference later
[Expert]JigneshDesai:
2. Consider using cascading style sheets (.css file) to avoid sending the same formatting directives to the client repeatedly
[Expert]JigneshDesai:
3. Avoid long control names; especially ones that are repeated in a DataGrid or Repeater controls
charmis:
will you please tell about viewstate
Suresh:
Jignesh can you please move to the Experts group.
Andy asked the experts:
hi subhashini....is there any reason for makin jignesh chat in teh guest chat section? coz its kinda cluttered down there
Shaunak:
Jignesh what do you exactly mean by saying " to avoid sending the same formatting directives to the client repeatedly " ???
Sania Mirsa:
Subashine, pls ask jignesh to come in Expert chat.
Andy:
Thanks subhashini..no problem..we will manage
Avnrao:
please give an overview of the chat...
Madhu asked the experts:
Is there anything to do with EnableViewState property?
Shaunak asked the experts:
Jignesh what do you exactly mean by saying " to avoid sending the same formatting directives to the client repeatedly " ???
[Expert]JigneshDesai:
Guys some technical issue and hence can't login as expert... pls bear and let me continue
Praveenganga:
s pls
[Expert]JigneshDesai:
4.Avoid late bindings, early binding provides better performance, since all the information of the bound object is known to the compiler and no extra calls are needed during execution time to determine method names or parameters
Madhu:
Its ok Jignesh
Sania Mirsa:
ok, tks subashini
[Expert]JigneshDesai:
There are other benefits to using early binding, for e.g., Intellisense depends on early bound object library reference. Of course, there are cases where late binding is the only option, we should try and minimize such cases to get best performance
Arun:
Is it best practise to send individual parameters with different data type to Oracle Stored Procedure ? If not what is the alternative ??
subhashini (Moderator):
Important note
We request all of you to bear with Jignesh In teh guest list
We are having issues with Jignesh being unable to log in as expert due to some technical problems
So i request all of you to please cope up with Jignesh in the guest listGuess that solves the issue and hope thats okay with all of you . thanks:-)
[Expert]JigneshDesai:
Take a look at this code… What do you think?? What’s wrong with this code?
vidhya:
can we use xml as a storage as compared to database
cooldesperado:
sure plz continue and other guyz plz let the expert speak up...... plz
Suresh:
Jignesh are we going to chat abt error handling ,and code access security also for today. charmis asked the experts: Will you please tell about viewstate
[Expert]JigneshDesai:
Controls on .ASPx Page
‘TextBox1
‘RequiredFieldValidator is placed to validate TextBox1
‘Button1
aksri asked the experts:
Are you giving the tips separately for coding standards and other points mentioned above or else in general.
[Expert]JigneshDesai:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
TextBox1.Text = 0 ‘ Init value with zero
End Sub
[Expert]JigneshDesai:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Convert.ToInt32(TextBox1.Text) > 0 Then
Response.Write("Data is Saved in DB")
End If
End Sub
[Expert]JigneshDesai:
Take a look at above code… What do you think?? What’s wrong with this code?
Pavan asked the experts: Hi I have following query. I have one ASP.NET web application hosted on a server. Whenever user will hit the url for this application aspnet_wp.exe will create application domain for this web application and all the requests will be processed by this app Norsu: it will give an expection
IKumar asked the experts: Is it possible do Visual Inheritance in web page ?
[Expert]JigneshDesai:
Anyone would like to asnwer that ?
sachin : hi jagdish..
FunkyMicrosoft:
Validation can be done at the client side itself
Ashwani:
Even if the valus is 0 there will be Resposne.Write
venkat_kl:
one sec sachin : u r converting text in to int32.....
Arun:
Is it best practise to send individual parameters with different data type to Oracle Stored Procedure ? If not what is the alternative ??
Andy:
no idea jignesh
Avnrao:
error handling..
Madhu:
we can use cint() instead of Convert.ToInt32
Sathish Kumar K:
If textbox field is empty, this conversion may result in err
aksri asked the experts: Probably the conversion is happening and compared in same call
FunkyMicrosoft:
rather checking the textbox value greater than zero in the server side Arun asked the experts: Is it best practise to send individual parameters with different data type to Oracle Stored Procedure ? If not what is the alternative ??
[Expert]JigneshDesai:
There are two issues as I can see…
[Expert]JigneshDesai:
First : Button click event if condition will never be true. Initialization should take place only once so we should have check for isPostBack property here. Norsu: if we validate on client site first then submit it, from my point of view it is give good performance
[Expert]JigneshDesai:
Second: What if client has disabled javascript , on button click RequiredFieldvalidation will occur on server side and even if validation evaluates to false, there is nothing to stop execution of button1 click event.
venkat_kl:
Response.Write will come all the time, you have to check IsCallBack
[Expert]JigneshDesai:
Gr8 ... some of you got right!!!!
[Expert]JigneshDesai:
So consider following as templates for all load and button click events.
venkat_kl:
sorry it is IsPostBack
[Expert]JigneshDesai:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Page.IsValid Then
' do processing
End If
End Sub
[Expert]JigneshDesai:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not Page.IsPostBack Then
'Put user code to initialize the page here
End If
End Sub
cooldesperado:
the code, sir?????
[Expert]JigneshDesai:
Did every one got that ....
Norsu: yep
Andy:
yep great iInterchange sridhar: yeah!
anu:
yes srt_iinterchange: s
[Expert]JigneshDesai:
Ok... Cool... Let proceed futher then....
DoT_nEt_ExTeRmInAtE:
Yups su06: s
Suresh:
thats good. srt_iinterchange: k
[Expert]JigneshDesai:
Use of Page.IsPostback also avoids unnecessary processing on a round trip IKumar asked the experts: Is it possible to do Page inheritance in ASP.net Nalla: i have one question, while we passing dataview to one of function of remote object,but its giving error like this "Data view is not Serializable object", whats the reason to cause this error?
[Expert]JigneshDesai:
I love to see that counter increasing .... 106 users... ;)
[Expert]JigneshDesai:
2# Tips on Improve usage of controls
[Expert]JigneshDesai:
Server controls provide a good programming model but they do post back and rendering, which can hamper performance if not used properly. It is necessary to carefully consider the post backs performed by the server controls and minimize the amount of data e
[Expert]JigneshDesai:
data exchange between the client and the server
amitmnagarwal:
ya it will better
cooldesperado:
hello?? asp_beginner_amit: "Data view is not Serializable object" is right as you are using remoting and it requires the object to be serializable which dataview is not
cooldesperado:
the code that u were talking about??? Silly Guy: How it is better than DCOM and Corba?
[Expert]JigneshDesai:
The amount of rendering and post back performed by ASP.NET for a page is directly proportional to the number of server controls on the page
venkat_kl:
Please ask Questions in the last, Otherwise no body can follow the Expert
amitmnagarwal:
plz stop other discusiions
[Expert]JigneshDesai:
One needs to be careful when dealing with a page that uses multiple server controls in a table or other repeatable container controls HAS: SOA --> service oriented architecture
Sania Mirsa:
Please ask Questions in the after he[expert] explained.
Suresh:
jignesh,tell us something abt threat modeling, if you can find some time.
[Expert]JigneshDesai:
since the Viewstate information for every control on the page can add up to dramatically increase the overall page size that the client browser needs to download
[Expert]JigneshDesai:
Use Alternatives instead of server control . Alternatives to server controls include simple rendering, HTML elements, inline Response.Write calls, and raw inline angle brackets (<% %>)
[Expert]JigneshDesai:
Use Alternative instead of server control when…. sri: Jignesh i have a query ..nowadays clients requirement are like page load for an aspx page should happen within 3 or 4 secons ..what are all things which we need to consider for this?
[Expert]JigneshDesai:
You do not need to retain state across postbacks
[Expert]JigneshDesai:
The data that appears in the control is static. For example, a label is static data
[Expert]JigneshDesai:
You do not need programmatic access to the control on the server-side
[Expert]JigneshDesai:
The control is displaying read-only data
Sania Mirsa:
Subashini, Pls do something for questions from others!!!!
[Expert]JigneshDesai:
The control is not needed during postback processing
[Expert]JigneshDesai:
(IMP) Manage your viewstate information
[Expert]JigneshDesai:
Viewstate needs to be small (<1k) for 56k dialup users
[Expert]JigneshDesai:
Viewstate size is less important on fast pipe Intranets
sri: Jignesh i have a query ..nowadays clients requirement are like page load for an aspx page should happen within 3 or 4 secons ..what are all things which we need to consider for this?
[Expert]JigneshDesai:
Use < % @ Page Trace=“true” % > to track usage size
[Expert]JigneshDesai:
View State will increase network payload and Performance overhead to serialize/encode data
[Expert]JigneshDesai:
Disable View state when .... one of the following case IKumar asked the experts: I have overridden the Render method, and added one HtmlInputHidden control. But i not able to get the control, using this.FindControl when postback happens
[Expert]JigneshDesai:
1# Displaying a read-only page where there is no user input
[Expert]JigneshDesai:
2# Always disable if you are not doing postback
[Expert]JigneshDesai:
3# Disable on per control basis if possible IKumar:
protected void AddControls()
{
System.Web.UI.HtmlControls.HtmlInputHidden hctlHidden;
hctlHidden = new HtmlInputHidden();
hctlHidden.ID = this.GetHiddenControlName();
hctlHidden.Value = "0"; this.Controls.Add(hctlHidden); } protected override void Render(HtmlTextWriter writer) { base.Render (writer); AddControls(); }
[Expert]JigneshDesai:
EVERYONE IN SYNC TILL NOW ...... Raki: Hello room
Shaunak:
Yeah
Avnrao:
yes
vidhya:
but then in case of datagird if we disable view state then paging is not possible
Madhu:
Hi Ikumar no ques now later pls iyappa: yes Jignesh Silly Guy: yes but few questions pls.
[Expert]JigneshDesai:
#3 Let move on to Binding best practices... Ananth: can u make textbox visible/invisible without being AutoPostBack using IndexSelect event of DropDownList Abbas: hi using viewstate does any effect on the performance Silly Guy: when we go for datasets we can store it in sessions right? Kiran: for Improving the page perfomence Avoid using Server Controls !! is it true?
[Expert]JigneshDesai:
Basic rules consider using DataReaders for ASP.NET data access and use DataSets only when data caching or with web services.
[Expert]JigneshDesai:
Connection Usage Recommendation
[Expert]JigneshDesai:
–“Open connections in your code late, and then close them early” Silly Guy: If i am using Data View i cannot have outprocess session state rite?
[Expert]JigneshDesai:
–Don’t hold on to connections for long periods of time – do not try to build your own “smart” connection pool logic
[Expert]JigneshDesai:
–Close the connection as soon as you are finished with it (this returns it to the pool) Raki: Hello I have placed a data grid in a datagrid and in child data drid i have place some textbox and checkbox with attribute runat =server. I want to give Id for checkbox and text box HOW??
[Expert]JigneshDesai:
Avoid Using Page.DataBind
Sania Mirsa:
Raki ask question later.
anu:
plz raki
anu:
ask ques later palani: i want to call an ASP page function through Web service palani: wht is the best way
[Expert]JigneshDesai:
Calling Page.DataBind invokes the page-level method. The page-level method in turn calls the DataBind method of every control on the page that supports data binding. Instead of calling the page-level DataBind, call DataBind on specific controls DotnetRamesh asked the experts: hai gals and gus
[Expert]JigneshDesai:
Take a look at this code
<ItemTemplate>
<tr>
<td><%# DataBinder.Eval(Container.DataItem,"field1") %></td>
<td><%# DataBinder.Eval(Container.DataItem,"field2") %></td>
</tr>
</ItemTemplate>
vn_nilesh asked the experts:
can u explain something abt connection pooling and its impact on performance palani: wht is the best way to call an ASP page through Web service
[Expert]JigneshDesai:
Minimize Calls to DataBinder.Eval
[Expert]JigneshDesai:
The DataBinder.Eval method uses reflection to evaluate the arguments that are passed in and to return the results
Sania Mirsa:
palani, ramesh, nilesh -> do not ask question now. Suresh asked the experts: Guys, pls do something abt getting the chat in sync.
[Expert]JigneshDesai:
If you have a table that has 100 rows and 10 columns, you call DataBinder.Eval 1,000 times if you use DataBinder.Eval on each column
[Expert]JigneshDesai:
alternatives to using DataBinder.Eval
[Expert]JigneshDesai:
Use explicit casting. Using explicit casting offers better performance by avoiding the cost of reflection. Cast the Container.DataItem as a DataRowView.
<ItemTemplate>
<tr>
<td><%# ((DataRowView)Container.DataItem)["field1"] %></td>
<td><%# ((DataRowView)Container.DataItem)["field2"] %></td>
</tr>
</ItemTemplate>
amitmnagarwal:
Fundoo articles on ASP.net Performance:
[Expert]JigneshDesai:
if you use a DataReader to bind your control Cast the Container.DataItem as a DbDataRecord
[Expert]JigneshDesai:
<ItemTemplate>
<tr>
<td><%# ((DbDataRecord)Container.DataItem).GetString(0) %></td>
<td><%# ((DbDataRecord)Container.DataItem).GetInt(1) %></td>
</tr>
</ItemTemplate>
amitmnagarwal:
http://msdn.microsoft.com/msdnmag/issues/05/01/ASPNETPerformance/default.aspx By Rob Howard from MS Team palani: What is the best way to call ASP function through Asp.Net web service
Suresh:
Jignesh, can we continue. DotnetRamesh asked the experts: in asp.net application passing forms values from one page to another page using server.transfer with the option of true it means (server.transfer("URL",true)) but the value is not reaching the next page. what is the problem
[Expert]JigneshDesai:
If the record that is being data bound contains many fields, it may be more efficient to use the ItemDataBound event. By using this event, you only perform the type conversion once. The following sample uses a DataSet object. IInterchangeArocki
AM:
Hai everyone! Vicky: Ramesh you should make EnableViewStateMac of the form to false.
[Expert]JigneshDesai:

protected void Repeater_ItemDataBound(Object sender, RepeaterItemEventArgs e)
{
DataRowView drv = (DataRowView)e.Item.DataItem;
Response.Write(string.Format("<td>{0}</td>",drv["field1"]));
Response.Write(string.Format("<td>{0}</td>",drv["field2"]));
Response.Write(string.Format("<td>{0}</td>",drv["field3"]));
Response.Write(string.Format("<td>{0}</td>",drv["field4"]));
}
Sania Mirsa:
arockiam keep listen. no question.
sanmat:
helo
[Expert]JigneshDesai:
How do you normally handle exceptions in your program....... Paval: hi DotnetRamesh: thanks vicky
[Expert]JigneshDesai:

LIKE THIS..... WHAT's wRONG IN THIS???
try {
loginid = Session["loginid"].ToString();
}
catch(Exception ex) {
Response.Redirect("login.aspx", false);
}
DoT_nEt_ExTeRmInAtE:
EnableViewStateMac of target page I guess
sanmat:
Hi Jigs
vn_nilesh asked the experts:
redirect will throw an exception srt_iinterchange asked the experts: Sample for binding? Raki: It generates error
sanmat:
catch(Exception Ex) { POSException oException = new POSException(Ex.Message,Ex.Source,txtLoginId.Text.Trim(),Request.UserHostAddress,Page.ToString()); oException.logError(); oException=null; } Kiran: specify which type of exception that is in the Catch block
sanmat:
here we have our own library
sanmat:
that insert exception in DB
vn_nilesh:
specifically a thread abort exception
FunkyMicrosoft:
We have created a Exception object ex, but it is not used
[Expert]JigneshDesai:
Exceptions add significant overhead to your application. Do not use exceptions to control logic flow, and design your code to avoid exceptions where possible Mani: it will throw error iInterchange sridhar: since session variables are weakly typed, there will not be any exception throw.
DoT_nEt_ExTeRmInAtE:
Conversion error
[Expert]JigneshDesai:
if(Session["loginid"]!=null)
loginid = Session["loginid"].ToString();
else
Response.Redirect("login.aspx", false);
[Expert]JigneshDesai:
TAKE another Case
try
{
Login(userName,password);
}
catch (InvalidUserNameException ex)
{…}
catch (InvalidPasswordException ex)
{…}
iInterchange sridhar: this will be better i think.
sanmat:
k
Sania Mirsa:
No sridhar. Session variables may throw NullReferenceExce ErArsh asked the experts: I am building the XMLHTTP.3.0 component in the javascript at the client, and the client has to connect to the Server after every 5 seconds ( and gets hanged for a while) to fetch the new msgs from server using javascript. Tell me how it gets resolved?
[Expert]JigneshDesai:
IT Could have been replaced with following lines of code
LoginResult result = Login(userName,password)
switch(result)
{
case Success:
. . .
case InvalidUserName:
. . . case InvalidPassword:
}
sanmat:
But this will throw "Thread was being aborted" Exception
Raghu:
hi, verifying the connection establishment needs try catch , am i right
sanmat:
How to handle this exception?
[Expert]JigneshDesai:
OK TOO MANY QUESTION COMMING UP.... ONE LAST THING.... srt_iinterchange: ErArsh, it can resolved by using Script Callback
[Expert]JigneshDesai:
you can Reduces your bandwidth usage by HTTP Compression
[Expert]JigneshDesai:
you can compress your static , HTML pages
[Expert]JigneshDesai:
with HTTP Compression
[Expert]JigneshDesai:
to take advantage your will Need compression-enabled browsers
[Expert]JigneshDesai:
To enable IIS 5.0 to compress .aspx pages, follow these steps ErArsh asked the experts: Somebody here told me, it can resolved by using Script Callback. What is that
Suresh:
but whats wrong with try{} catch{}
[Expert]JigneshDesai:
1. Open a command prompt. 2. Type net stop iisadmin, and then press ENTER.
[Expert]JigneshDesai:
Type cd C:\InetPub\adminscripts, and then press ENTER
[Expert]JigneshDesai:
Type the following, and then press ENTER pradha: ok
[Expert]JigneshDesai:
CSCRIPT.EXE ADSUTIL.VBS SET W3Svc/Filters/Compression/GZIP/HcScriptFileExtensions "asp" "dll" "exe" "aspx"
Shaunak:
Jignesh,if you remove the Try and catch block dont you think your code will be vulnerable to application erros? that might arise in the Login method?
[Expert]JigneshDesai:
Type the following, and then press ENTER
[Expert]JigneshDesai:
CSCRIPT.EXE ADSUTIL.VBS SET W3Svc/Filters/Compression/DEFLATE/HcScriptFileExtensions "asp" "dll" "exe" "aspx"
[Expert]JigneshDesai:
Type net start w3svc, and then press ENTER..... HTTP Compression is ENABLED!!
Shaunak:

sorry wrong terminology , by errors i meant exceptions
knr: what type of questions i asked here..
[Expert]JigneshDesai:
ok i an throught with my lecture....
[Expert]JigneshDesai:
Fee free to ask questions now... i will answer as much as i can ....
Shaunak:
Jignesh,if you remove the Try and catch block dont you think your code will be vulnerable to application erros? that might arise in the Login method?
Suresh:
Jignesh, pls tell us whats wrong with try {} catch {} ErArsh asked the experts: THe problem only arises when the run the site from Remote Server? on my computer it is working OK??? knr: what is mean for asp compact.. Balu: How to create TAB control in ASP.NET? knr: what is the purpose for aspcompact Balu asked the experts: How to create TAB control in ASP.NET?
sanmat:
How to avoid "Thread was being aborted" Exception ?
[Expert]JigneshDesai:
A: (BALU) we have webIEControls ... download it from ASP.NET site... you have tab page control in it.
vn_nilesh:
jignesh, which is the best place to write errors to event log, should it be in the catch/finally block or in global.asax file mahadevan asked the experts: eventhough i set viewstate = false, viewstate is maintained for Textbox, combobox controls. How can i avoid this?
sanmat:
Jignesh HAve u any stuff for Use of Active Directory in ASP.NET? Balu: Thanks Jingesh sri: Jignesh i have a query ..nowadays clients requirement are like page load for an aspx page should happen within 3 or 4 secons ..what are all things which we need to consider for this? Norsu: yep I hv
[Expert]JigneshDesai:
A: (vn_nilesh) Event Log.
Sania Mirsa:
How to create threads in javascript Jignesh? DoT_nEt_ExTeRmInAtE asked the experts: When normal ASPX page is requested it follows 2 steps. First compiling aspx code into msil which will be kept into Assembly Cache and in second step JIT compiler will be used to compile msil code into native code.
DoT_nEt_ExTeRmInAtE:
But in code-behind vb file is compiled. So when JIT compiler comes in picture? What actually process in case of code-behind?
[Expert]JigneshDesai:
A: (DoT_nEt_ExTeRmInAtE) YES...
[Expert]JigneshDesai:
A: (DoT_nEt_ExTeRmInAtE) .ASPX pages
Norsu asked the experts:
can we use the C#, and VB.net in Same web project
[Expert]JigneshDesai:
A: A: (DoT_nEt_ExTeRmInAtE) databinding expressions. Satish: how to Achieve the Visual inheritance in ASP.Net 1.1
[Expert]JigneshDesai:
A: (Norsu) NO/ Sania Mirsa asked the experts: How to create threads in javascript?
[Expert]JigneshDesai:
A: (Satish) No Visual Inheritance as of Now... but definately you can do inheritance Norsu: WE have to create the two different projects Vicky: Norsu : we can use both the languages but VS.NET doesnt support that using multiple languages. Adhakshi asked the experts: I'm also facing the same problem what mahadevan has posted: mahadevan asked the experts: eventhough i set viewstate = false, viewstate is maintained for Textbox, combobox controls. How can i avoid this? ... What is the reason for this ?
Sandeep:
I created a web control & putting it dynamically on other web control in a place holder. Web control that I have created has grid in it & in page_load event I have written following code Satish: how Swatz: Can you explain briefly and in simplistic terms what the concept of Active directory is and where can it be used?
[Expert]JigneshDesai:
A: (Satish) Like common headers and footers.
Suresh:
is there any way to refresh or reload a page once the user uses Back /Forward from the internet explorer toolbar.
sanmat:
"Thread was being aborted" Exception ? Norsu: and use the reference in another project
Sandeep:
if not ispostback then ... endif Raghu asked the experts: Hi, am adding Html dropdown list control at runtime & populating It.But if i find the controls i added , it is recognised as literal controls.i can not able to bind that as a normal dro down list control in my asp.net code . Even though it is runat=server
[Expert]JigneshDesai:
A: (Suresh FORCE EXPIRE PAGE....
FunkyMicrosoft:
Visual Inheritance is quite possible with master pages concept in asp.net2.0
FunkyMicrosoft:
a template kind of stuff
Norsu asked the experts:
if i am using dropdown in DataGrid can i have to bind each dropdown.
cooldesperado:
next one??? DoT_nEt_ExTeRmInAtE asked the experts: The inline code written in aspx page will be precompiled or compile on each request?
[Expert]JigneshDesai:
ANorsu) USE ItemDataBound Event of datagrid to fill data in dropdown.
[Expert]JigneshDesai:
A: ( DoT_nEt_ExTeRmInAtE) Precompiled after 1st request. AM asked the experts: How to keep text input present when going back to last page ...I am using javascript(Microsoft DOM) to populate aspx page
Suresh:
what is FORCE EXPIRE PAGE, do you have any link regarding the same.
FunkyMicrosoft:
To DoT_nEt_ExTeRmInAtE , on very first time will be compiled. That's it. In asp.net 2.0., you can do precompile
Sandeep:
I created a web control & putting it dynamically on other web control in a place holder. Web control that I have created has grid in it & in page_load event I have written following code ... IF NOT ISPOSTBACK THEN ... BINDGRID... END IF but it is not execu Sania Mirsa asked the experts: Jignesh, could you answer my question?
Sandeep:
JigneshDesai can u pls reply Norsu: I am using drop down in item template TRvi asked the experts: can i use VB Script to avoid the server RoundTrip ? Raghu asked the experts: pls tell me abt the literal controls and how can i bind them as drop down list nilesh asked the experts: my datagrid has a hyper link column where i need to pass 3 items as query string any other way other than using item data bound DoT_nEt_ExTeRmInAtE asked the experts: I am still not very clear about code-behind files which creates a dll in bin folder. So when app is biult the entire application is compiled and dll is created. So when will JIT compiler comes in picture? v_oct5 asked the experts: when a page is refreshed, the last event executed say if it was a button click event is reexxcuted. can u tel me why this happens
[Expert]JigneshDesai:
A: (Sandeep) just verify that you have event binded with the method... ( Handles clause in VB)
Norsu asked the experts:
I am using drop down in item template of datagrid nileshr: hey guys is the chat oiver
DoT_nEt_ExTeRmInAtE:
There is confusion and I read somewhere the compiling steps differs as in code-behind and inline code compilation
[Expert]JigneshDesai:
A: (DoT_nEt_ExTeRmInAtE ) While converting MSIL code to Natve. nilesh: nilesh: i just startdd nilesh: started nilesh:
DoT_nEt_ExTeRmInAtE:
okie...
AM:
is there anybody who can answer my question-----How to keep text input present when going back to last page ...I am using javascript(Microsoft DOM) to populate aspx page
[Expert]JigneshDesai:
A: (nilesh ) You are doing right thing.... pravin: k DoT_nEt_ExTeRmInAtE asked the experts: So the entire app is compiled and stored in dll. and for each request it will be taken from cache.. or jit will be used?
[Expert]JigneshDesai:
A: (AM) Sorry i did not got your question clearly. Saurabh: I am facing a strange problem. Whenever I build my ASP.NET solution, I get the Access Denied error in the output.
FunkyMicrosoft:
To DoT_nEt_ExTeRmInAtE , first compilation to an intermediate langaue. JIT compilation is to make machine code
[Expert]JigneshDesai:
A: (Saurabh) is this with any application or specific one. charmis asked the experts: will you please explain about literal controls
vn_nilesh asked the experts:
jignesh, what r ur thoughts on connection pooling nileshr:
hi satish visual inheritence is possible in ASPNET 2.0 Whidbey
AM asked the experts: I am using javascript to dynamically adding and removing text boxes in aspx pages...after entering value....if we go back to last back by clicking on back button of IE ..i loss all inputs...how can i keep those values there in that page..?? cooldesperado asked the experts: can u tell me something about form authentication AtulMahajan asked the experts: Please tell about the function to calculate difference between two dates (no of days) Saurabh: This is with anyone suresh_spur asked the experts: iam uplaoding asp.net site in server through FTP ,when ever i what to update a vb file is itnecessary to me to upload dlls across the server
Raghu:
authentication is the process of identifying who u are
[Expert]JigneshDesai:
A: (suresh_spur) YEs.
[Expert]JigneshDesai:
A vn_nilesh) you may ask questions on connection pooling. suresh_spur: is there any alternative method saik asked the experts: Jignesh when is framework 2.0 expected to be released? Raghu asked the experts: how can i debug my page running from a remote machine Nalla asked the experts: Whle passing dataview as parameter to the remotable object function ,complier giving error like "Dataview is not serializable object",what it mean?
Andy asked the experts:
jignesh..i know this is irrelevant to todays topic....but jst wanted to ask u whether there are any gud books that will help us in takin up VB.Net/ASP.Net certification exam [Expert]thiru: VS 2005 Beta 1 timebomb date = July 1, 2005 Sandeep asked the experts: I created a web control & putting it dynamically on other web control in a place holder. Web control that I have created has grid in it & in page_load event I have written following code ... IF NOT ISPOSTBACK THEN ... BINDGRID... END IF but it is not execu suresh_spur: how to upload an image with resize on client side
[Expert]JigneshDesai:
A: (SAIK) 1 st Quarter 2005. may be.
Andy:
i came to know of one book..gopher microsoft press.. IInterchangeArocki
AM:
Tell about important features about connection pooling. suresh_spur: how to upload an image with resize on client side is it possible
[Expert]JigneshDesai:
A: (ANDY) Books from MS are good ones.
Andy:
sorry..its gofor IInterchangeArocki
AM:
Tell about important features about connection pooling. How will it increase the performance? suresh_spur: how to upload an image with resize on client side,if possible how? if not y? Nalla: DoT_nEt_ExTeRmInAtE asked the experts: In ADO.NET Connection Pooling is by default on. But when I specify pool size as 10 then how many max connections will be created?
Shaunak asked the experts:
Raghu in answer to your qts :- how can i debug my page running from a remote machine A: you need to install remote debugging component
ron:
can u explain how to design a efficient 3 tier architectue in .net
Andy:
thanx jignesh
[Expert]JigneshDesai:
A: (IInterchangeArockiam READ THIS .. http://www.microsoft.com/india/communities/chat/4.aspx Sandeep asked the experts: I created a web control & putting it dynamically on other web control in a place holder. Web control that I have created has grid in it & in page_load event I have written following code ... IF NOT ISPOSTBACK THEN ... BINDGRID... END IF but it is not execu Siju: Hello guys One at a time
ron:
JIGNESH , can u explain how to design a efficient 3 tier architecture in .net DoT_nEt_ExTeRmInAtE asked the experts: If more than 10 users are trying to access a website then how many connections will be creatred if pool size is 10?
Raghu:
does it be installed automatically when i installed .net
venkat_kl:
Thanks expert
[Expert]JigneshDesai:
A: (Sandeep) ... mail me your prob. at mail email id... i will look at it. suresh_spur: how to upload an image with resize on client side,if possible how? if not y? suresh_spur asked the experts: how to upload an image with resize on client side,if possible how? if not y?
FunkyMicrosoft:
Sandeep. Put it in the dynamically created code in oninit method
sanmat:
Jignesh CAn u pls. tell me ab't Active Directory
Sandeep:
Ok, thanx Jagnesh
sanmat:
Jignesh Can u pls. tell me ab't Active Directory
IInterchangeArockiAM:
thanks Jignesh
sanmat:
Jignesh Can u pls. tell me ab't Active Directory
ron:
JIGNESH , can u explain how to design a efficient 3 tier architecture in .net
sanmat:
m facing problem
[Expert]JigneshDesai:
Sorry Guys .. could not answer all questions now... but you can mail your queries at my email id... i will take time to answer each of your queries....
vn_nilesh:
jignesh, i hv downloaded the pdf from patterns n practices regarding performance tunning tips. is there any other resource which u would like to recommend in this regards
Andy:
thanks jignesh
Raghu:
thanks
AM:
Thaks jignesh
Suresh:
Thanks jignesh, the session was informative.
Andy:
thanks subhashini
sanmat:
Jignesh Can u pls. tell me ab't Active Directory Saurabh: Thanks
Shaunak:
Raghu u need to install it seperately
saik:
thanx jigs
[Expert]JigneshDesai:
It waslovely audiance...
IFLOOP:
got lot of useful informations. suresh_spur asked the experts: how to upload an image with resize on client side,if possible how? if not y? IFLOOP: thanks a lot
Shaunak:
thanks jignesh
Raghu:
fine IFLOOP:
bye for now
Raghu:
now shall i ask another
[Expert]JigneshDesai:
See you next month with a different topic...
suresh_spur asked the experts:
how to upload an image with resize on client side,if possible how? if not y?
[Expert]JigneshDesai:
JIGNESH DESAI / JIGNESH_DESAI@HOTMAIL.COM / www.dotnetjini.com THANKS EVERY ONE....
Kiran:
thx jagadish
AtulMahajan:
Thanks
anu:
Thanks a lot jignesh
DoT_nEt_ExTeRmInAtE:
Thank you Jiggy Sir ErArsh asked the experts: thanks
ron:
how can i get the entire chat content of ths Raghu asked the experts: shall we still discuss
ron:
subhashini thanks
ron:
how long would it take to be updated thr
Andy:
ron..its over here http://www.microsoft.com/india/communities/chat/Transcripts.aspx
ron:
the latest isnt there
vn_nilesh:
thankx jignesh
sanmat:
has anybody worked on Active Directory?
iyer:
iam sorry, i am late.. Is the session over?
anu:
yes just now iyer
 
     

©2009 Microsoft Corporation. All rights reserved. Contact Us |Terms of Use |Trademarks |Privacy Statement