Showing posts with label microsoft. Show all posts
Showing posts with label microsoft. Show all posts

Monday, March 26, 2012

Suggested Microsoft way

Lately I came to know that Microsoft is suggesting to go with underscore for
naming convention for variables (Am I right?).

Ex: Dim strMyName as String --> Dim str_MyName as String

Any one has any comments. Am I talking some thing does not makes sense. If
you have any URL which tells the Microsoft suggested way on coding standard
please share with me.

Thank you very much.

MarioHaven't heard that. Last I heard, MS was recommending against that
sort of overaggressive hungarian notation in favor of camelCasing and
reliance on Intellisense to remind you of types. They've also dropped
the m_'s for members in favor of a simple underscore:

Dim myName as String

Dim _myPrivateMemberVariable as Int

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/
"Mario Novado" <MNovado@.hotmail.com> wrote in message
news:O6wpqACpFHA.2580@.TK2MSFTNGP09.phx.gbl...
> Lately I came to know that Microsoft is suggesting to go with underscore
> for
> naming convention for variables (Am I right?).

For readability, an "applicant_last_name" is easier to recognize than an
"ApplicantLastName".

It is also easier for disabled persons to read (Section 508 compliance). I
could be wrong on this part (s-508).

John
I found these interesting links.

Naming conventions from MSDN
http://msdn.microsoft.com/library/d...gguidelines.asp

Designing .NET class libraries: Naming Conventions (they talk about banning
the use of Hungarian notation)
http://msdn.microsoft.com/netframew...ingconventions/

MSDN link about capitalization
http://msdn.microsoft.com/library/d...ationstyles.asp

This one has a chat with Brad Abrams (sp).
http://msdn.microsoft.com/chats/tra...ven_012605.aspx

From what I've read, they are trying to de-emphasize the hungarian notation
for publicly exposed members in favour of Pascal naming (upper case and no
underscores).

Suggested Microsoft way

Lately I came to know that Microsoft is suggesting to go with underscore for
naming convention for variables (Am I right?).
Ex: Dim strMyName as String --> Dim str_MyName as String
Any one has any comments. Am I talking some thing does not makes sense. If
you have any URL which tells the Microsoft suggested way on coding standard
please share with me.
Thank you very much.
MarioHaven't heard that. Last I heard, MS was recommending against that
sort of overaggressive hungarian notation in favor of camelCasing and
reliance on Intellisense to remind you of types. They've also dropped
the m_'s for members in favor of a simple underscore:
Dim myName as String
Dim _myPrivateMemberVariable as Int
Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/
"Mario Novado" <MNovado@.hotmail.com> wrote in message
news:O6wpqACpFHA.2580@.TK2MSFTNGP09.phx.gbl...
> Lately I came to know that Microsoft is suggesting to go with underscore
> for
> naming convention for variables (Am I right?).
>
For readability, an "applicant_last_name" is easier to recognize than an
"ApplicantLastName".
It is also easier for disabled persons to read (Section 508 compliance). I
could be wrong on this part (s-508).
John
I found these interesting links.
Naming conventions from MSDN
http://msdn.microsoft.com/library/d...gguidelines.asp
Designing .NET class libraries: Naming Conventions (they talk about banning
the use of Hungarian notation)
http://msdn.microsoft.com/netframew...ntion
s/
MSDN link about capitalization
http://msdn.microsoft.com/library/d...ationstyles.asp
This one has a chat with Brad Abrams (sp).
[url]http://msdn.microsoft.com/chats/transcripts/net/design_naming_conven_012605.aspx[/
url]
From what I've read, they are trying to de-emphasize the hungarian notation
for publicly exposed members in favour of Pascal naming (upper case and no
underscores).

Suggestion for the new .NET documentation

Hello all,

I have a suggestion for the new .NET documentation.

In some newsgroup I read a posting from Anand Hegde from Microsoft. He stated that the disabling of events like PageIndexChanged on a DataGrid, when ViewState on it (or it's container) is disabled, is by design.

This is not, or very poorly, documented and I was unable to find it in the docs. Some places this should really be noted (or at least directly linked to!) is the DataGrid.ViewState documentation as well as the documentation of the other properties and events that are dependent on it.

Regards,

David van LeerdamI don't think that PageIndexChanged is disabled when viewstate is disabled, but you do have to take special steps to get paging to work properly.

See this articlePutting the DataGrid on a Diet by yours truely.
In the current version of the DataGird, the viewstate of the page must be enabled if the DataGrid's paging should work. The paging uses the viewstate to store the index of the selected page. The OnPageIndexChanged event will still be executed even if the viewstate is disabled on the page, but the page index will always be set to zero. In Whidbey the page viewstate could be disabled but the DataGrid's view state must be enabled (it's enabled by default). There is a new state (control state) for controls added to Whidbey that will let control hold their sate and will not be affected if the page viewstate is disabled.
As I mentioned in another thread, I was able to successfully port to Whidbey my demo application that shows how to do paging, sorting and selected items in a grid that has viewstate = False. The solution proposed does require that the page have viewstate enabled. The basic approach is to disable viewstate for the grid, but store current page, sortfield, selected item in the page's viewstate. I re-bind the grid on each postback, after restoring these values. I do successfully receive appropriate values for the new page index, but have to save it immediately.

Suggestion needed for huge DataGrid

Hi all:
Our web site uses 3-tier structure, the middle tier is a web service. We
also use Microsoft Data Access Application Block to access sql server.
Now I have to display a DataGrid with huge amount of data on web page,
of course the DataGrid has pager. But even though, the web service still
will return full DataSet to web server, and let web server to handle pages.
Since Microsoft Data Access Application Block does not support
SqlDataAdapter.Fill(DataSet, startReocrd, maxRecord, tableName) to reduce
the size of DataSet. Do you think there is a better way to improve
performace?
Yes, I can always extend Microsoft Data Access Application Block and
build my own pager.

--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours HardyHi Hardy,

May I suggest two solutions:
-if the full set of lines is going to be requested sooner or later, fill the
DataSet and place it in the Cache for the first time, then read it from the
Cache.
-if you don't need the full set of lines, you may use the SqlDataReader
combined with a TOP N command in your SQL query.
--
To reply, remove a "l" before the @. sign.

Arnaud Weil - MCT, MCSD.Net, MCAD.Net

Thursday, March 22, 2012

Support for classic ASP

Does anyone know when Microsoft would stop supporting ASP3.0, now that they
moved over to .NET ?

Thanks
-SMicrosoft is still supporting IDC (Internet Database Connector), which has
been obsolete for 6 or 7 years.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Sri" <ml_srini@.hotmail.com> wrote in message
news:u3nfn$jIEHA.2688@.tk2msftngp13.phx.gbl...
> Does anyone know when Microsoft would stop supporting ASP3.0, now that
they
> moved over to .NET ?
> Thanks
> -S
Win2003 supports it so at least as long as that is, probably at least one or
two more server versions after that I'd bet too.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com

"Sri" <ml_srini@.hotmail.com> wrote in message
news:u3nfn$jIEHA.2688@.tk2msftngp13.phx.gbl...
> Does anyone know when Microsoft would stop supporting ASP3.0, now that
they
> moved over to .NET ?
> Thanks
> -S

Support for classic ASP

Does anyone know when Microsoft would stop supporting ASP3.0, now that they
moved over to .NET ?
Thanks
-SMicrosoft is still supporting IDC (Internet Database Connector), which has
been obsolete for 6 or 7 years.
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Sri" <ml_srini@.hotmail.com> wrote in message
news:u3nfn$jIEHA.2688@.tk2msftngp13.phx.gbl...
> Does anyone know when Microsoft would stop supporting ASP3.0, now that
they
> moved over to .NET ?
> Thanks
> -S
>
Win2003 supports it so at least as long as that is, probably at least one or
two more server versions after that I'd bet too.
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Sri" <ml_srini@.hotmail.com> wrote in message
news:u3nfn$jIEHA.2688@.tk2msftngp13.phx.gbl...
> Does anyone know when Microsoft would stop supporting ASP3.0, now that
they
> moved over to .NET ?
> Thanks
> -S
>