Click here to Skip to main content
15,936,988 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionUsing 'Money' Datatype of SQL in ASP.NET Pin
Vsree19-Dec-06 15:28
Vsree19-Dec-06 15:28 
AnswerRe: Using 'Money' Datatype of SQL in ASP.NET Pin
Amit Kumar G19-Dec-06 15:51
Amit Kumar G19-Dec-06 15:51 
GeneralRe: Using 'Money' Datatype of SQL in ASP.NET Pin
Vsree19-Dec-06 15:58
Vsree19-Dec-06 15:58 
AnswerRe: Using 'Money' Datatype of SQL in ASP.NET Pin
Dayekh19-Dec-06 23:16
Dayekh19-Dec-06 23:16 
GeneralRe: Using 'Money' Datatype of SQL in ASP.NET Pin
Vsree20-Dec-06 0:27
Vsree20-Dec-06 0:27 
GeneralRe: Using 'Money' Datatype of SQL in ASP.NET Pin
Dayekh20-Dec-06 1:23
Dayekh20-Dec-06 1:23 
GeneralRe: Using 'Money' Datatype of SQL in ASP.NET Pin
Vsree20-Dec-06 18:08
Vsree20-Dec-06 18:08 
QuestionUSER CONTROL IN ASP.NET Pin
Amit Kumar G19-Dec-06 15:01
Amit Kumar G19-Dec-06 15:01 
Hi guys

I need to use user control in ASP.net(1.1). Before using the control, I thought to desing one small sample to see in/out of usercontrols. I am facing very basic problem and appreciate your help. Please note I am using VB.net as code behind language.

I need to access user control text box values on click of web form Submit button.....


Code Steps at ASCX
--------------------
1)Created a user control LoginControl.ascx with two text boxes as TextBox1 and Textbox2 for name and password.
2)Created two properties _Name and _Password

Code Steps at Webform
-------------------------
a)On the same project created a new web form
b)Drag the ascx control
c)Declare public variable Dim objUser As New LoginControl
d)On Page load objUser = New LoginControl
e)And on click of Web Form (Submit Button)

objUser.Name = CType(objUser.FindControl("TextBox1"), TextBox).Text
objUser.Age = CType(objUser.FindControl("TextBox2"), TextBox).Text
Me.Label1.Text = objUser.Name
Me.Label2.Text = objUser.Age

Statement e is giving object reference is nothing error.......

PLEASE HELP


Amit
AnswerRe: USER CONTROL IN ASP.NET Pin
minhpc_bk19-Dec-06 19:15
minhpc_bk19-Dec-06 19:15 
GeneralRe: USER CONTROL IN ASP.NET Pin
Amit Kumar G20-Dec-06 3:38
Amit Kumar G20-Dec-06 3:38 
GeneralRe: USER CONTROL IN ASP.NET Pin
minhpc_bk20-Dec-06 14:35
minhpc_bk20-Dec-06 14:35 
QuestionCheck User Pin
shapper19-Dec-06 10:37
shapper19-Dec-06 10:37 
AnswerRe: Check User Pin
Pete O'Hanlon19-Dec-06 11:14
mvePete O'Hanlon19-Dec-06 11:14 
QuestionClient side validation of server controls Pin
DanB198319-Dec-06 10:14
DanB198319-Dec-06 10:14 
AnswerRe: Client side validation of server controls Pin
Pete O'Hanlon19-Dec-06 11:15
mvePete O'Hanlon19-Dec-06 11:15 
AnswerRe: Client side validation of server controls Pin
Amit Kumar G19-Dec-06 14:45
Amit Kumar G19-Dec-06 14:45 
Questionsoftware installation over web Pin
veerugadde19-Dec-06 9:09
veerugadde19-Dec-06 9:09 
AnswerRe: software installation over web Pin
Pete O'Hanlon19-Dec-06 11:27
mvePete O'Hanlon19-Dec-06 11:27 
QuestionCrystal Reports: Displaying percentages of total qty? Pin
Goalie3519-Dec-06 9:00
Goalie3519-Dec-06 9:00 
QuestionASP.NET DEVELOPMENT Pin
DORMANTROOT19-Dec-06 8:06
DORMANTROOT19-Dec-06 8:06 
AnswerRe: ASP.NET DEVELOPMENT Pin
MoeInsairat19-Dec-06 10:29
MoeInsairat19-Dec-06 10:29 
GeneralRe: ASP.NET DEVELOPMENT Pin
RenuKhot21-Dec-06 20:25
RenuKhot21-Dec-06 20:25 
GeneralRe: ASP.NET DEVELOPMENT Pin
MoeInsairat23-Dec-06 6:55
MoeInsairat23-Dec-06 6:55 
GeneralRe: ASP.NET DEVELOPMENT Pin
MoeInsairat23-Dec-06 7:20
MoeInsairat23-Dec-06 7:20 
QuestionPopulating Gridview on the value of Textbox Pin
fahiemulleh19-Dec-06 5:48
fahiemulleh19-Dec-06 5:48 

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.