Click here to Skip to main content
15,892,005 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to convert multiline textbox text to image Pin
Christian Graus31-Aug-09 14:00
protectorChristian Graus31-Aug-09 14:00 
QuestionDropdown list value is not retaining on page post back [modified] Pin
skhan1731-Aug-09 7:10
skhan1731-Aug-09 7:10 
AnswerRe: Dropdown list value is not retaining on page post back Pin
Abhishek Sur31-Aug-09 10:36
professionalAbhishek Sur31-Aug-09 10:36 
GeneralRe: Dropdown list value is not retaining on page post back Pin
skhan1731-Aug-09 11:09
skhan1731-Aug-09 11:09 
GeneralRe: Dropdown list value is not retaining on page post back Pin
Abhishek Sur31-Aug-09 11:40
professionalAbhishek Sur31-Aug-09 11:40 
GeneralRe: Dropdown list value is not retaining on page post back Pin
Christian Graus31-Aug-09 14:02
protectorChristian Graus31-Aug-09 14:02 
GeneralRe: Dropdown list value is not retaining on page post back Pin
Abhishek Sur31-Aug-09 23:25
professionalAbhishek Sur31-Aug-09 23:25 
AnswerRe: Dropdown list value is not retaining on page post back Pin
Christian Graus31-Aug-09 14:07
protectorChristian Graus31-Aug-09 14:07 
Yes, this is still far too much code to be posting.

You don't need to be reloading the data every time, unless you turn off viewstate. If you do need to, do it in page_prerender, that's the right place to do it anyhow. Then it will happen AFTER your event fires.

skhan17 wrote:
if(Specific_Query_DDL.SelectedItem.Value=="default")


Hard coded strings are a bad idea. can't you store an enum or something in the value ?

skhan17 wrote:
string sql= "SELECT re_MLNO,sum(re_HIV1_Status) AS hivNeg, MAX(re_SpecimenDate)- MIN(re_SpecimenDate) AS DaysSeronegative FROM ml_hiv_status GROUP BY re_MLNO";

OleDbConnection connection = new OleDbConnection(HIV.Database.DataConstants.CONNECTION_STRING);
OleDbDataAdapter adapter = new OleDbDataAdapter();
OleDbCommand command = new OleDbCommand(sql, connection);


SQL in the presentation layer is always a sign of no design. I'd fire anyone who presented code like this to me.

skhan17 wrote:
if(Specific_Query_DDL.SelectedItem.Value=="ResistantL")
{
getMLNO(Specific_Query_DDL.SelectedItem.Value);
}
if(Specific_Query_DDL.SelectedItem.Value=="NegativeL")
{
getMLNO(Specific_Query_DDL.SelectedItem.Value);
}



Hard coded strings are still bad. And, have you never heard of the || operator ?

Christian Graus

Driven to the arms of OSX by Vista.

Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

QuestionReferencing HTML input boxes correctly Pin
dptalt31-Aug-09 5:10
dptalt31-Aug-09 5:10 
AnswerRe: Referencing HTML input boxes correctly Pin
Not Active31-Aug-09 6:44
mentorNot Active31-Aug-09 6:44 
GeneralRe: Referencing HTML input boxes correctly Pin
dptalt31-Aug-09 9:15
dptalt31-Aug-09 9:15 
GeneralRe: Referencing HTML input boxes correctly Pin
Not Active31-Aug-09 9:56
mentorNot Active31-Aug-09 9:56 
GeneralRe: Referencing HTML input boxes correctly Pin
Abhishek Sur31-Aug-09 10:44
professionalAbhishek Sur31-Aug-09 10:44 
GeneralRe: Referencing HTML input boxes correctly Pin
dptalt1-Sep-09 1:35
dptalt1-Sep-09 1:35 
QuestionTimeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Pin
ncsubbu31-Aug-09 2:47
professionalncsubbu31-Aug-09 2:47 
AnswerRe: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Pin
Tamer Oz31-Aug-09 2:55
Tamer Oz31-Aug-09 2:55 
AnswerRe: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Pin
Abhijit Jana31-Aug-09 3:06
professionalAbhijit Jana31-Aug-09 3:06 
AnswerRe: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Pin
Fayu31-Aug-09 6:50
Fayu31-Aug-09 6:50 
GeneralRe: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Pin
Christian Graus31-Aug-09 14:19
protectorChristian Graus31-Aug-09 14:19 
Questionin 3 tier how can we access in asp.net, how can we make object of them. Pin
vaishali.terse31-Aug-09 2:16
vaishali.terse31-Aug-09 2:16 
AnswerRe: in 3 tier how can we access in asp.net, how can we make object of them. Pin
Amit Patel198531-Aug-09 2:20
Amit Patel198531-Aug-09 2:20 
AnswerRe: in 3 tier how can we access in asp.net, how can we make object of them. Pin
Abhijit Jana31-Aug-09 2:48
professionalAbhijit Jana31-Aug-09 2:48 
Questioncalendar popup Pin
ankitjain111031-Aug-09 1:59
ankitjain111031-Aug-09 1:59 
AnswerRe: calendar popup Pin
sashidhar31-Aug-09 2:22
sashidhar31-Aug-09 2:22 
GeneralRe: calendar popup Pin
ankitjain111031-Aug-09 2:45
ankitjain111031-Aug-09 2:45 

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.