Click here to Skip to main content
15,887,435 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to use contextmenustrip(windows) control in web pages(ASP)? Pin
blakshmi4-Nov-08 3:42
blakshmi4-Nov-08 3:42 
QuestionHtmlEncode & Db field length Pin
Blumen3-Nov-08 19:20
Blumen3-Nov-08 19:20 
AnswerRe: HtmlEncode & Db field length Pin
Abhishek Sur4-Nov-08 0:49
professionalAbhishek Sur4-Nov-08 0:49 
GeneralRe: HtmlEncode & Db field length Pin
Blumen4-Nov-08 17:45
Blumen4-Nov-08 17:45 
GeneralRe: HtmlEncode & Db field length Pin
Abhishek Sur4-Nov-08 22:58
professionalAbhishek Sur4-Nov-08 22:58 
Questionwhat is the funda for creating a project like google maps. Pin
coolsatty3-Nov-08 18:46
coolsatty3-Nov-08 18:46 
AnswerRe: what is the funda for creating a project like google maps. Pin
Kannan Ar3-Nov-08 18:52
professionalKannan Ar3-Nov-08 18:52 
QuestionPerformance Issue..... C# Pin
DineshSharmain3-Nov-08 18:30
DineshSharmain3-Nov-08 18:30 
Hi
I have to write some functions so i want to confirm whats better...
1. if i write one function with lot of functionalities
For exa.
Function Unit()
{
---- some code
-----
-------
---
----
.
.
.
}

2. if I break down this function in multiple functions and the call them inside the function and these function will be written in business layer.

For exa.
Function Unit()
{
---- some code
-----
Fun1(arg1,arg2)
---
Fun2(arg1,arg2)

.
.
.
}


Question 2 - is this a good practice (if not what are the drawbacks) or i must use directly Convert.ToInt16(oData).

****I am calling this at so many places

public static short ConvertToShort(object oData)
        {
            if (oData.ToString() == "")
            {
                return 0;
            }
            else
            {
                return Convert.ToInt16(oData);
            }
        }


Thanks

Dinesh Sharma

AnswerRe: Performance Issue..... C# Pin
Brij3-Nov-08 20:36
mentorBrij3-Nov-08 20:36 
GeneralRe: Performance Issue..... C# Pin
DineshSharmain3-Nov-08 21:42
DineshSharmain3-Nov-08 21:42 
AnswerRe: Performance Issue..... C# Pin
Brij4-Nov-08 3:11
mentorBrij4-Nov-08 3:11 
Questioniframe appending text problem Pin
lakshmichawala3-Nov-08 17:41
lakshmichawala3-Nov-08 17:41 
QuestionHow to override the machine.config ? Pin
md_azy3-Nov-08 17:10
md_azy3-Nov-08 17:10 
AnswerRe: How to override the machine.config ? Pin
Kannan Ar3-Nov-08 17:50
professionalKannan Ar3-Nov-08 17:50 
AnswerRe: How to override the machine.config ? Pin
DineshSharmain3-Nov-08 18:32
DineshSharmain3-Nov-08 18:32 
GeneralRe: How to override the machine.config ? Pin
md_azy3-Nov-08 20:07
md_azy3-Nov-08 20:07 
GeneralRe: How to override the machine.config ? Pin
DineshSharmain3-Nov-08 20:11
DineshSharmain3-Nov-08 20:11 
Questionhow to handle mouse events in asp.net Pin
sarang1213-Nov-08 15:31
sarang1213-Nov-08 15:31 
AnswerRe: how to handle mouse events in asp.net Pin
Venkatesh Mookkan3-Nov-08 15:43
Venkatesh Mookkan3-Nov-08 15:43 
GeneralRe: how to handle mouse events in asp.net [modified] Pin
sarang1213-Nov-08 15:48
sarang1213-Nov-08 15:48 
AnswerRe: how to handle mouse events in asp.net Pin
Venkatesh Mookkan3-Nov-08 16:14
Venkatesh Mookkan3-Nov-08 16:14 
GeneralRe: how to handle mouse events in asp.net Pin
sarang1213-Nov-08 16:24
sarang1213-Nov-08 16:24 
GeneralRe: how to handle mouse events in asp.net Pin
sarang1213-Nov-08 19:40
sarang1213-Nov-08 19:40 
Questionsaving & retrieving images in SQL 2005 or MySql using C# Pin
lilvbong3-Nov-08 14:30
lilvbong3-Nov-08 14:30 
AnswerRe: saving & retrieving images in SQL 2005 or MySql using C# Pin
Sathesh Sakthivel3-Nov-08 21:02
Sathesh Sakthivel3-Nov-08 21:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.