Click here to Skip to main content
16,014,392 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Why the exception "Object reference not set to an instance of an object." occurs? Pin
daniel__c30-Jul-07 20:34
daniel__c30-Jul-07 20:34 
QuestionWHATS THAT PROBLEMS Pin
Neo_Shehpar30-Jul-07 14:21
Neo_Shehpar30-Jul-07 14:21 
AnswerRe: WHATS THAT PROBLEMS Pin
Christian Graus30-Jul-07 17:48
protectorChristian Graus30-Jul-07 17:48 
GeneralRe: WHATS THAT PROBLEMS [modified] Pin
Neo_Shehpar3-Aug-07 3:17
Neo_Shehpar3-Aug-07 3:17 
QuestionSetting file ContentType dynamically [modified] Pin
ASPnoob30-Jul-07 13:09
ASPnoob30-Jul-07 13:09 
AnswerRe: Setting file ContentType dynamically Pin
Christian Graus30-Jul-07 17:50
protectorChristian Graus30-Jul-07 17:50 
GeneralRe: Setting file ContentType dynamically [modified] Pin
ASPnoob30-Jul-07 19:18
ASPnoob30-Jul-07 19:18 
GeneralRe: Setting file ContentType dynamically Pin
Christian Graus30-Jul-07 19:27
protectorChristian Graus30-Jul-07 19:27 
To reiterate advice I've given you many times before

1 - use real variable names, not listbox1
2 - don't grab text from a control to create SQL, it can be used for injection attacks
3 - don't iterate over a collection looking for the item that is selected, when the listbox has a selecteditem property

I despair that we are discussing the same function, week after week, but you don't actually take the advice given to you.


ASPnoob wrote:
Response.ContentType = "" & CurrentModels.SelectedItem.Text & ""


Why are you grabbing the mime type from the CurrentModels control, and where does the buffer variable come from ? What does this have to do wtih ListBox2, anything ?


Christian Graus - Microsoft MVP - C++

"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

Questionupdate panel problem Pin
Mogaambo30-Jul-07 12:07
Mogaambo30-Jul-07 12:07 
QuestionASP.NET Button postback issue [modified] Pin
stoland - work30-Jul-07 9:57
stoland - work30-Jul-07 9:57 
AnswerRe: ASP.NET Button postback issue Pin
Christian Graus30-Jul-07 11:13
protectorChristian Graus30-Jul-07 11:13 
QuestionTable Question Pin
nlindley730-Jul-07 8:54
nlindley730-Jul-07 8:54 
AnswerRe: Table Question Pin
rashadaliarshad30-Jul-07 9:05
rashadaliarshad30-Jul-07 9:05 
GeneralRe: Table Question Pin
nlindley730-Jul-07 9:21
nlindley730-Jul-07 9:21 
GeneralRe: Table Question Pin
rashadaliarshad30-Jul-07 9:30
rashadaliarshad30-Jul-07 9:30 
GeneralRe: Table Question Pin
nlindley730-Jul-07 9:41
nlindley730-Jul-07 9:41 
AnswerRe: Table Question Pin
ToddHileHoffer30-Jul-07 9:06
ToddHileHoffer30-Jul-07 9:06 
GeneralRe: Table Question Pin
nlindley730-Jul-07 9:19
nlindley730-Jul-07 9:19 
QuestionGetting object declared in HTML Component Pin
satindra200230-Jul-07 7:31
satindra200230-Jul-07 7:31 
AnswerRe: Getting object declared in HTML Component Pin
ToddHileHoffer30-Jul-07 9:07
ToddHileHoffer30-Jul-07 9:07 
GeneralRe: Getting object declared in HTML Component Pin
satindra200230-Jul-07 19:00
satindra200230-Jul-07 19:00 
QuestionWeb.Config File Problem...Please Help Pin
rashadaliarshad30-Jul-07 7:27
rashadaliarshad30-Jul-07 7:27 
Questionadding info to another page Pin
brsecu30-Jul-07 5:50
brsecu30-Jul-07 5:50 
AnswerRe: adding info to another page Pin
Pete O'Hanlon30-Jul-07 10:05
mvePete O'Hanlon30-Jul-07 10:05 
AnswerRe: adding info to another page Pin
Christian Graus30-Jul-07 10:57
protectorChristian Graus30-Jul-07 10:57 

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.