Click here to Skip to main content
15,881,455 members

Michael Freidgeim - Professional Profile



Summary

    Blog RSS
25
Author
109
Authority
123
Debator
64
Enquirer
90
Organiser
456
Participant
0
Editor
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Reputation

Weekly Data. Recent events may not appear immediately. For information on Reputation please see the FAQ.

Privileges

Members need to achieve at least one of the given member levels in the given reputation categories in order to perform a given action. For example, to store personal files in your account area you will need to achieve Platinum level in either the Author or Authority category. The "If Owner" column means that owners of an item automatically have the privilege. The member types column lists member types who gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilver
Bypass spam checks when posting contentsilversilversilversilversilversilvergoldSubEditor, Mentor, Protector, Editor
Store personal files in your account areaplatinumplatinumSubEditor, Editor
Have live hyperlinks in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Have the ability to include a biography in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Edit a Question in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Edit an Answer in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Delete a Question in Q&AYesSubEditor, Protector, Editor
Delete an Answer in Q&AYesSubEditor, Protector, Editor
Report an ArticlesilversilversilversilverSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubEditor, Mentor, Protector, Editor
Edit other members' articlesSubEditor, Protector, Editor
Create an article without requiring moderationplatinumSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending QuestionProtector
Approve/Disapprove a pending AnswerProtector
Report a forum messagesilversilverbronzeProtector, Editor
Approve/Disapprove a pending Forum MessageProtector
Have the ability to send direct emails to members in the forumsProtector
Create a new tagsilversilversilversilver
Modify a tagsilversilversilversilver

Actions with a green tick can be performed by this member.


 
GeneralMy blog at geekswithblogs Pin
Michael Freidgeim5-Oct-05 18:26
Michael Freidgeim5-Oct-05 18:26 
GeneralContains method for DataReader Pin
Michael Freidgeim6-Mar-05 18:53
Michael Freidgeim6-Mar-05 18:53 
GeneralChange case to string array Pin
Michael Freidgeim13-Jan-05 14:13
Michael Freidgeim13-Jan-05 14:13 
GeneralSmartNavigation and 'onload' JavaScript Pin
Michael Freidgeim6-Dec-04 14:29
Michael Freidgeim6-Dec-04 14:29 
GeneralSending ASP.NET page rendered content from another ASP.NET page. Pin
Michael Freidgeim23-Sep-04 19:30
Michael Freidgeim23-Sep-04 19:30 
GeneralStore JavaScript as embedded resource. Pin
Michael Freidgeim19-Sep-04 15:06
Michael Freidgeim19-Sep-04 15:06 
I've seen many places where people use inline concatenation to create some JavaScript in ASP.NET VB
using String '&' operator or StringBuilder.Append.
The code is usually hard to read.
It's easier to save JavaScript fucntion code into a separate file with "build Action"="embedded resource" and use several reusable helper functions.

Public Shared Function StreamToString(ByVal strm As Stream) As String
    If strm.CanSeek Then strm.Seek(0, SeekOrigin.Begin)
    Dim myReader As New StreamReader(strm)
    Dim sRet As String = myReader.ReadToEnd()
    Return sRet
End Function
Public Shared Function ResourceToString(ByVal ResName As String) As String
    ' Get the current assembly.
    Dim Asm As [Assembly] = [Assembly].GetExecutingAssembly()
    Return ResourceToString(ResName, Asm) 'call overload
End Function
Public Shared Function ResourceToString(ByVal ResName As String, ByVal Asm As [Assembly]) As String
    ' Resources are named using a fully qualified name.
    Dim sName As String = Asm.GetName().Name + "." + ResName
    Dim strm As Stream = Asm.GetManifestResourceStream(sName)
    ' Read the contents of the embedded file.
    If strm Is Nothing Then
        Throw New ApplicationException("Couldn't find embedded resource " & sName)
    End If
    Dim sRet As String = StreamToString(strm)
    Return sRet
End Function
Public Shared Function JScript(ByVal sScript As String)
    Return "<script language='javascript'>" & sScript & "<" & Chr(47) & "script>"
End Function

Or even better use Eric Woodruff's Resource Server Handler Class
[^]

Michael
GeneralDefault button in ASP.NET form. Pin
Michael Freidgeim15-Sep-04 18:09
Michael Freidgeim15-Sep-04 18:09 

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.