Click here to Skip to main content
15,900,108 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to bind a dropdown with datagrid row Pin
Venkatesh Mookkan19-Mar-07 20:19
Venkatesh Mookkan19-Mar-07 20:19 
Questionupload file to client machine Pin
Marwa Bahaa19-Mar-07 5:18
Marwa Bahaa19-Mar-07 5:18 
AnswerRe: upload file to client machine Pin
Vasudevan Deepak Kumar19-Mar-07 5:31
Vasudevan Deepak Kumar19-Mar-07 5:31 
GeneralRe: upload file to client machine Pin
netJP12L19-Mar-07 8:15
netJP12L19-Mar-07 8:15 
QuestionUpload or Download ? Pin
N a v a n e e t h19-Mar-07 18:57
N a v a n e e t h19-Mar-07 18:57 
NewsRe: upload file to client machine Pin
Venkatesh Mookkan19-Mar-07 20:21
Venkatesh Mookkan19-Mar-07 20:21 
GeneralRe: upload file to client machine Pin
Marwa Bahaa19-Mar-07 23:11
Marwa Bahaa19-Mar-07 23:11 
QuestionUser Control Properties Pin
Sam Heller19-Mar-07 4:55
Sam Heller19-Mar-07 4:55 
I am having some issues with some of my code which is based around creating properties inside a user control and then having the page that the user control resides in work with these properties.

Code is as follows:

Private IntendedType As String<br />
<br />
    Public Sub SetIntendedType(ByVal IntendedType As String)<br />
        IntendedType = IntendedType<br />
    End Sub 'Set Intended Type<br />
<br />
    Public Function GetIntendedType() As String<br />
        Return IntendedType<br />
    End Function 'Get Intended Type


Sits inside the user controls page behind code. The next chunk of code is in the encapsulating pages page_load event.
If Not dr.IsDBNull(15) Then<br />
                        CreditRatingControl.SetIntendedType(dr(15))<br />
                    End If<br />
                    If Not dr.IsDBNull(16) Then<br />
                        CreditRatingControl.SetIntendedUse(dr(16))<br />
                    End If<br />
                    If Not dr.IsDBNull(17) Then<br />
                        CreditRatingControl.SetIntendedPurpose(dr(17))<br />
                    End If


Obviously that part is sat inside a datareader while loop but I have ommited this. And then finally I have this inside the user control page load

<br />
SetIntendedPurpose("c**k")<br />
Label13.Text = GetIntendedPurpose() + GetIntendedType() + GetIntendedUse() + "Poo"


All I get is "poo" shown on the page. Now surely the values set from the data retrieval should have been passed in. Am I any where close with this code or not?? Does this kind of approach even work?

Thanks in advance
AnswerRe: User Control Properties Pin
badgrs19-Mar-07 5:03
badgrs19-Mar-07 5:03 
GeneralRe: User Control Properties Pin
Sam Heller19-Mar-07 5:06
Sam Heller19-Mar-07 5:06 
GeneralRe: User Control Properties Pin
badgrs19-Mar-07 5:17
badgrs19-Mar-07 5:17 
GeneralRe: User Control Properties Pin
Sam Heller19-Mar-07 5:52
Sam Heller19-Mar-07 5:52 
GeneralRe: User Control Properties Pin
badgrs19-Mar-07 6:24
badgrs19-Mar-07 6:24 
GeneralRe: User Control Properties Pin
Sam Heller19-Mar-07 6:29
Sam Heller19-Mar-07 6:29 
QuestionData Grid Pin
Kushi Bobby19-Mar-07 3:48
Kushi Bobby19-Mar-07 3:48 
AnswerRe: Data Grid Pin
netJP12L19-Mar-07 8:18
netJP12L19-Mar-07 8:18 
AnswerRe: Data Grid Pin
mghiassi19-Mar-07 8:27
mghiassi19-Mar-07 8:27 
QuestionAdd Control Pin
vengaqua19-Mar-07 3:40
vengaqua19-Mar-07 3:40 
AnswerRe: Add Control Pin
Marcus J. Smith19-Mar-07 4:40
professionalMarcus J. Smith19-Mar-07 4:40 
GeneralRe: Add Control Pin
joon vh.19-Mar-07 5:08
joon vh.19-Mar-07 5:08 
GeneralRe: Add Control [modified] Pin
Marcus J. Smith19-Mar-07 5:18
professionalMarcus J. Smith19-Mar-07 5:18 
JokeRe: Add Control Pin
joon vh.19-Mar-07 5:28
joon vh.19-Mar-07 5:28 
GeneralRe: Add Control Pin
Marcus J. Smith19-Mar-07 5:42
professionalMarcus J. Smith19-Mar-07 5:42 
GeneralRe: Add Control [modified] Pin
joon vh.19-Mar-07 5:53
joon vh.19-Mar-07 5:53 
GeneralRe: Add Control Pin
vengaqua19-Mar-07 20:28
vengaqua19-Mar-07 20:28 

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.