Click here to Skip to main content
16,004,901 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Object cannot be cast from DBNull to other types [modified] Pin
newbieAl21-Sep-07 4:51
newbieAl21-Sep-07 4:51 
GeneralRe: Object cannot be cast from DBNull to other types Pin
InvalidTypecast21-Sep-07 9:21
InvalidTypecast21-Sep-07 9:21 
GeneralRe: Object cannot be cast from DBNull to other types Pin
eggsovereasy21-Sep-07 10:07
eggsovereasy21-Sep-07 10:07 
GeneralRe: Object cannot be cast from DBNull to other types Pin
newbieAl24-Sep-07 3:02
newbieAl24-Sep-07 3:02 
QuestionDifference between DataBinder.Eval() and Eval()?? Pin
Sri_346421-Sep-07 2:37
Sri_346421-Sep-07 2:37 
AnswerRe: Difference between DataBinder.Eval() and Eval()?? Pin
pmarfleet21-Sep-07 4:05
pmarfleet21-Sep-07 4:05 
Questionhow to pass a javascript variable into asp variable? Pin
ganeshMohan21-Sep-07 2:31
ganeshMohan21-Sep-07 2:31 
AnswerRe: how to pass a javascript variable into asp variable? Pin
Guffa21-Sep-07 2:58
Guffa21-Sep-07 2:58 
The problem is that the code is not at all executed in the order that you think it is. All ASP code is executed on the server, then the page is sent to the browser, and the client code is executed.

The ASP code that you have put inside your javascript function is always executed when the page is created, not when the javascript function runs.

To run server code that uses values from the client code, you have to send another request to the server and send the values along in the request. You can send values either in querystring or in form data.

To populate a second select box depending on the first, you can either reload the page to do the request to the server, or do the request behind the scenes using techniques like AJAX.

---
single minded; short sighted; long gone;

GeneralRe: how to pass a javascript variable into asp variable? Pin
ganeshMohan21-Sep-07 3:07
ganeshMohan21-Sep-07 3:07 
GeneralRe: how to pass a javascript variable into asp variable? Pin
Guffa21-Sep-07 3:17
Guffa21-Sep-07 3:17 
GeneralRe: how to pass a javascript variable into asp variable? Pin
ganeshMohan21-Sep-07 3:36
ganeshMohan21-Sep-07 3:36 
QuestionShowing Parent Child Relationship in HTML Table Pin
varshavmane21-Sep-07 1:44
varshavmane21-Sep-07 1:44 
Questionsetup project vs setup wizard Pin
pavanteja21-Sep-07 1:33
pavanteja21-Sep-07 1:33 
AnswerRe: setup project vs setup wizard Pin
Christian Graus21-Sep-07 2:15
protectorChristian Graus21-Sep-07 2:15 
QuestionReturning value to the main page from the popup page Pin
Ballita21-Sep-07 1:27
Ballita21-Sep-07 1:27 
AnswerRe: Returning value to the main page from the popup page Pin
varshavmane21-Sep-07 1:34
varshavmane21-Sep-07 1:34 
AnswerRe: Returning value to the main page from the popup page Pin
Imran Khan Pathan21-Sep-07 1:48
Imran Khan Pathan21-Sep-07 1:48 
GeneralRe: Returning value to the main page from the popup page Pin
Ballita21-Sep-07 2:09
Ballita21-Sep-07 2:09 
GeneralRe: Returning value to the main page from the popup page Pin
pmarfleet21-Sep-07 4:20
pmarfleet21-Sep-07 4:20 
QuestionAnyy body tell COM type dll use in asp.net or not Pin
Piyush Vardhan Singh21-Sep-07 1:19
Piyush Vardhan Singh21-Sep-07 1:19 
AnswerRe: Anyy body tell COM type dll use in asp.net or not Pin
-- Abhi --21-Sep-07 1:32
-- Abhi --21-Sep-07 1:32 
GeneralRe: Anyy body tell COM type dll use in asp.net or not Pin
Piyush Vardhan Singh21-Sep-07 1:44
Piyush Vardhan Singh21-Sep-07 1:44 
AnswerRe: Anyy body tell COM type dll use in asp.net or not [modified] Pin
Imran Khan Pathan21-Sep-07 2:03
Imran Khan Pathan21-Sep-07 2:03 
GeneralRe: Anyy body tell COM type dll use in asp.net or not Pin
Piyush Vardhan Singh21-Sep-07 2:43
Piyush Vardhan Singh21-Sep-07 2:43 
QuestionNeed to know about DataBinder.Eval() method Pin
Sri_346421-Sep-07 0:53
Sri_346421-Sep-07 0:53 

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.