Click here to Skip to main content
15,799,019 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to use contextmenustrip(windows) control in web pages(ASP)? Pin
blakshmi4-Nov-08 4:42
blakshmi4-Nov-08 4:42 
QuestionHtmlEncode & Db field length Pin
Blumen3-Nov-08 20:20
Blumen3-Nov-08 20:20 
AnswerRe: HtmlEncode & Db field length Pin
Abhishek Sur4-Nov-08 1:49
professionalAbhishek Sur4-Nov-08 1:49 
GeneralRe: HtmlEncode & Db field length Pin
Blumen4-Nov-08 18:45
Blumen4-Nov-08 18:45 
GeneralRe: HtmlEncode & Db field length Pin
Abhishek Sur4-Nov-08 23:58
professionalAbhishek Sur4-Nov-08 23:58 
Questionwhat is the funda for creating a project like google maps. Pin
coolsatty3-Nov-08 19:46
coolsatty3-Nov-08 19:46 
AnswerRe: what is the funda for creating a project like google maps. Pin
Kannan Ar3-Nov-08 19:52
professionalKannan Ar3-Nov-08 19:52 
QuestionPerformance Issue..... C# Pin
DineshSharmain3-Nov-08 19:30
DineshSharmain3-Nov-08 19: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 21:36
mentorBrij3-Nov-08 21:36 
GeneralRe: Performance Issue..... C# Pin
DineshSharmain3-Nov-08 22:42
DineshSharmain3-Nov-08 22:42 
AnswerRe: Performance Issue..... C# Pin
Brij4-Nov-08 4:11
mentorBrij4-Nov-08 4:11 
Questioniframe appending text problem Pin
lakshmichawala3-Nov-08 18:41
lakshmichawala3-Nov-08 18:41 
QuestionHow to override the machine.config ? Pin
md_azy3-Nov-08 18:10
md_azy3-Nov-08 18:10 
AnswerRe: How to override the machine.config ? Pin
Kannan Ar3-Nov-08 18:50
professionalKannan Ar3-Nov-08 18:50 
AnswerRe: How to override the machine.config ? Pin
DineshSharmain3-Nov-08 19:32
DineshSharmain3-Nov-08 19:32 
GeneralRe: How to override the machine.config ? Pin
md_azy3-Nov-08 21:07
md_azy3-Nov-08 21:07 
GeneralRe: How to override the machine.config ? Pin
DineshSharmain3-Nov-08 21:11
DineshSharmain3-Nov-08 21:11 
Questionhow to handle mouse events in asp.net Pin
sarang1213-Nov-08 16:31
sarang1213-Nov-08 16:31 
AnswerRe: how to handle mouse events in asp.net Pin
Venkatesh Mookkan3-Nov-08 16:43
Venkatesh Mookkan3-Nov-08 16:43 
GeneralRe: how to handle mouse events in asp.net [modified] Pin
sarang1213-Nov-08 16:48
sarang1213-Nov-08 16:48 
AnswerRe: how to handle mouse events in asp.net Pin
Venkatesh Mookkan3-Nov-08 17:14
Venkatesh Mookkan3-Nov-08 17:14 
GeneralRe: how to handle mouse events in asp.net Pin
sarang1213-Nov-08 17:24
sarang1213-Nov-08 17:24 
GeneralRe: how to handle mouse events in asp.net Pin
sarang1213-Nov-08 20:40
sarang1213-Nov-08 20:40 
Questionsaving & retrieving images in SQL 2005 or MySql using C# Pin
lilvbong3-Nov-08 15:30
lilvbong3-Nov-08 15:30 
AnswerRe: saving & retrieving images in SQL 2005 or MySql using C# Pin
Sathesh Sakthivel3-Nov-08 22:02
Sathesh Sakthivel3-Nov-08 22: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.