Click here to Skip to main content
15,916,846 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionthere must be an easy way to do this. asyncronous pages nightmare Pin
paul langan4-Dec-08 4:34
paul langan4-Dec-08 4:34 
AnswerRe: there must be an easy way to do this. asyncronous pages nightmare Pin
Paddy Boyd4-Dec-08 5:03
Paddy Boyd4-Dec-08 5:03 
GeneralRe: there must be an easy way to do this. asyncronous pages nightmare Pin
paul langan4-Dec-08 5:11
paul langan4-Dec-08 5:11 
QuestionCall a function declared in content page from master page [modified] Pin
Mohamed Arif4-Dec-08 3:01
Mohamed Arif4-Dec-08 3:01 
AnswerRe: Call a function declared in content page form master page Pin
moon_stick4-Dec-08 3:49
moon_stick4-Dec-08 3:49 
GeneralRe: Call a function declared in content page form master page Pin
Mohamed Arif4-Dec-08 4:03
Mohamed Arif4-Dec-08 4:03 
GeneralRe: Call a function declared in content page form master page Pin
moon_stick4-Dec-08 4:13
moon_stick4-Dec-08 4:13 
GeneralRe: Call a function declared in content page from master page [modified] Pin
Mohamed Arif4-Dec-08 5:42
Mohamed Arif4-Dec-08 5:42 
Thanks For your reply Please take look at the below and let me know where I am going wrong

Step 1:
I created a Icontent.Vb file in appcode

Code:

Imports Microsoft.VisualBasic

Public Class IContent

Public Interface IContent
Function ValidateControl() As String
End Interface

End Class

Step 2:
I have Content Page (ASPX.VB Code behind) where I have the ValidateControl Function

Code:

Imports System.Web

Partial Class MyCodeBehind
Inherits System.Web.UI.Page
Implements IContent.IContent (Give Error Says MyCodeBehind must implement 'Function ValidateControl() As String' for interface 'IContent.IContent')

Public Function ValidateControl As String
Dim A As String = "Yes"
Return A
End Function

End Class


Step 3:
In my Master page where I want call the ValidateControl Function

Code:

Partial Class MyMaster

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Dim child As IContent.IContent = DirectCast(???, Content) (???)

child.ValidateControl()

End Sub

End Class


Thanks
Arif

modified on Thursday, December 4, 2008 12:20 PM

GeneralRe: Call a function declared in content page from master page [modified] Pin
moon_stick4-Dec-08 6:45
moon_stick4-Dec-08 6:45 
GeneralRe: Call a function declared in content page from master page Pin
Mohamed Arif4-Dec-08 7:12
Mohamed Arif4-Dec-08 7:12 
QuestionHow to save Iframe Content to server using Asp.net Pin
jamesrajesh4-Dec-08 2:42
jamesrajesh4-Dec-08 2:42 
QuestionError: GridView with checkbox --plz reply urgent Pin
premprakashbhati4-Dec-08 1:49
premprakashbhati4-Dec-08 1:49 
AnswerRe: Error: GridView with checkbox --plz reply urgent Pin
moon_stick4-Dec-08 4:24
moon_stick4-Dec-08 4:24 
AnswerRe: Error: GridView with checkbox --plz reply urgent Pin
Paul Conrad4-Dec-08 4:52
professionalPaul Conrad4-Dec-08 4:52 
Questionplz do replay i am facing problem since last working day Pin
sajjadlashari4-Dec-08 1:12
sajjadlashari4-Dec-08 1:12 
AnswerRe: plz do replay i am facing problem since last working day Pin
meeram3954-Dec-08 1:27
meeram3954-Dec-08 1:27 
AnswerRe: plz do replay i am facing problem since last working day Pin
AhsanS4-Dec-08 1:27
AhsanS4-Dec-08 1:27 
GeneralRe: plz do replay i am facing problem since last working day Pin
sajjadlashari4-Dec-08 17:56
sajjadlashari4-Dec-08 17:56 
GeneralRe: plz do replay i am facing problem since last working day Pin
Padmanabh Ganorkar4-Dec-08 18:59
Padmanabh Ganorkar4-Dec-08 18:59 
QuestionSuggesion Required related to filling country and city Dropdownlist [modified] Pin
mr_muskurahat4-Dec-08 0:07
mr_muskurahat4-Dec-08 0:07 
AnswerRe: Suggesion Required related to filling country and city Dropdownlist Pin
meeram3954-Dec-08 0:54
meeram3954-Dec-08 0:54 
AnswerRe: Suggesion Required related to filling country and city Dropdownlist Pin
AhsanS4-Dec-08 1:30
AhsanS4-Dec-08 1:30 
QuestionBizzare ViewState issue Pin
dmartu3-Dec-08 23:21
dmartu3-Dec-08 23:21 
AnswerRe: Bizzare ViewState issue Pin
Christian Graus4-Dec-08 8:44
protectorChristian Graus4-Dec-08 8:44 
GeneralRe: Bizzare ViewState issue Pin
dmartu4-Dec-08 22:56
dmartu4-Dec-08 22:56 

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.