Click here to Skip to main content
15,913,205 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to call dll from asp.net page Pin
sharadshinde_19-May-07 19:04
sharadshinde_19-May-07 19:04 
AnswerRe: How to call dll from asp.net page Pin
Christian Graus9-May-07 19:17
protectorChristian Graus9-May-07 19:17 
AnswerRe: How to call dll from asp.net page Pin
mareers9-May-07 19:25
mareers9-May-07 19:25 
GeneralRe: How to call dll from asp.net page Pin
Sandeep Kumar9-May-07 19:40
Sandeep Kumar9-May-07 19:40 
GeneralRe: How to call dll from asp.net page Pin
sharadshinde_19-May-07 19:48
sharadshinde_19-May-07 19:48 
GeneralRe: How to call dll from asp.net page Pin
Sandeep Kumar9-May-07 19:52
Sandeep Kumar9-May-07 19:52 
QuestionSystem.InvalidOperationException: Unable to generate a temporary class (result=1) Pin
dancelicious9-May-07 14:33
dancelicious9-May-07 14:33 
QuestionASP.Net Web Part connections work fine, until I close then reopen the part (from catalog) Pin
RodEffect9-May-07 13:13
RodEffect9-May-07 13:13 
I'm just starting out with ASP.net, making a web parts intranet.

I'm triyng to get some basic web parts (ascx files) working on a page,
I want them to share a variable, 'StaffID' which one part generates by
looking up the windows login name of the person viewing the page, and
then queries the database to find out the StaffID associated with that
name.

That part then shares it with all the other parts, using a class
called "IMessage", I have set up static connections for each
individual part,

The main part, Jobs_Main.ascx has this code:
<br />
    Public ReadOnly Property Message() As String _<br />
       Implements IMessage.Message<br />
        Get<br />
            Return StaffID<br />
        End Get<br />
    End Property<br />
<br />
    <ConnectionProvider("Message", AllowsMultipleConnections:=True)> _<br />
    Public Function GetMessage() As IMessage<br />
        Return Me<br />
    End Function<br />

to assign the StaffID (which is generated on Page_Load - I also tried
Page_Init and this made no difference)

and then the other parts use
<br />
    Public _message As IMessage<br />
<br />
    <ConnectionConsumer("Message")> _<br />
    Sub SetMessage(ByVal message As IMessage)<br />
        Me._message = message<br />
    End Sub<br />
<br />
in the scripts and then:<br />
    If (Not (_message) Is Nothing) Then<br />
        StaffID = "" & _message.Message & ""<br />
    Else<br />
        StaffID = 1<br />
    End If<br />

That all works beautifully. If I change the staffID manually on
Jobs_main(in the code) all the others update next refresh. However I
have put in a catalog, and when I close a web part (the part I was
trying was FavouriteLinks.ascx) then add it again, it defaults to the
StaffID of 1...

So I assume it is not getting the _message value, or it thinks the
_message value is 0 for some reason? Does anyone know why this would
be? Could it be that it is loading before the jobs_main web part? If
so how do I make it load afterwards?
QuestionRegular Expression for Getting file urls on webpage Pin
Neo_Shehpar9-May-07 12:24
Neo_Shehpar9-May-07 12:24 
AnswerRe: Regular Expression for Getting file urls on webpage Pin
mareers9-May-07 18:50
mareers9-May-07 18:50 
GeneralRe: Regular Expression for Getting file urls on webpage Pin
Neo_Shehpar11-May-07 6:17
Neo_Shehpar11-May-07 6:17 
QuestionAdding a web reference for a web service to a consumer dynamically Pin
steve_rm9-May-07 9:44
steve_rm9-May-07 9:44 
AnswerRe: Adding a web reference for a web service to a consumer dynamically Pin
N a v a n e e t h9-May-07 16:45
N a v a n e e t h9-May-07 16:45 
Questionbackground-image Issue Pin
Brendan Vogt9-May-07 9:21
Brendan Vogt9-May-07 9:21 
AnswerRe: background-image Issue Pin
Tarakeshwar Reddy9-May-07 10:47
professionalTarakeshwar Reddy9-May-07 10:47 
GeneralRe: background-image Issue Pin
Guffa9-May-07 12:31
Guffa9-May-07 12:31 
GeneralRe: background-image Issue Pin
N a v a n e e t h9-May-07 16:38
N a v a n e e t h9-May-07 16:38 
AnswerRe: background-image Issue Pin
Guffa9-May-07 12:28
Guffa9-May-07 12:28 
GeneralRe: background-image Issue Pin
Brendan Vogt9-May-07 20:27
Brendan Vogt9-May-07 20:27 
AnswerRe: background-image Issue Pin
Guffa9-May-07 20:56
Guffa9-May-07 20:56 
GeneralRe: background-image Issue Pin
Brendan Vogt9-May-07 21:04
Brendan Vogt9-May-07 21:04 
AnswerRe: background-image Issue Pin
Guffa10-May-07 5:33
Guffa10-May-07 5:33 
AnswerRe: background-image Issue Pin
N a v a n e e t h9-May-07 16:39
N a v a n e e t h9-May-07 16:39 
QuestionCan i have two Databases for single web application? Pin
SasiP9-May-07 8:37
SasiP9-May-07 8:37 
AnswerRe: Can i have two Databases for single web application? Pin
Colin Angus Mackay9-May-07 11:51
Colin Angus Mackay9-May-07 11:51 

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.