Click here to Skip to main content
15,916,842 members
Home / Discussions / C#
   

C#

 
QuestionGridview rowUpdating e.NewValue,e.OldValue returns empty Pin
ss.mmm14-Sep-07 11:09
ss.mmm14-Sep-07 11:09 
QuestionHow to underline text programmatically Pin
Dino2Dino14-Sep-07 10:55
Dino2Dino14-Sep-07 10:55 
AnswerRe: How to underline text programmatically Pin
Matthew Cuba14-Sep-07 16:05
Matthew Cuba14-Sep-07 16:05 
QuestionRe: How to underline text programmatically Pin
Dino2Dino17-Sep-07 10:54
Dino2Dino17-Sep-07 10:54 
QuestionSession, Cache or Viewstate? Pin
ss.mmm14-Sep-07 10:30
ss.mmm14-Sep-07 10:30 
AnswerRe: Session, Cache or Viewstate? Pin
mr.mohsen14-Sep-07 11:38
mr.mohsen14-Sep-07 11:38 
QuestionWhich interface to use to select the whole page for search? Pin
Ahmad Zaidi14-Sep-07 10:27
Ahmad Zaidi14-Sep-07 10:27 
QuestionUsing Process Start Pin
TheJudeDude14-Sep-07 9:41
TheJudeDude14-Sep-07 9:41 
AnswerRe: Using Process Start Pin
Pete O'Hanlon14-Sep-07 10:33
mvePete O'Hanlon14-Sep-07 10:33 
GeneralRe: Using Process Start Pin
TheJudeDude14-Sep-07 10:36
TheJudeDude14-Sep-07 10:36 
GeneralRe: Using Process Start Pin
TheJudeDude14-Sep-07 10:45
TheJudeDude14-Sep-07 10:45 
GeneralRe: Using Process Start Pin
Giorgi Dalakishvili14-Sep-07 11:14
mentorGiorgi Dalakishvili14-Sep-07 11:14 
AnswerRe: Using Process Start Pin
Nathan Holt at EMOM14-Sep-07 10:45
Nathan Holt at EMOM14-Sep-07 10:45 
GeneralRe: Using Process Start Pin
TheJudeDude14-Sep-07 10:53
TheJudeDude14-Sep-07 10:53 
GeneralRe: Using Process Start Pin
Giorgi Dalakishvili14-Sep-07 11:16
mentorGiorgi Dalakishvili14-Sep-07 11:16 
GeneralRe: Using Process Start Pin
TheJudeDude14-Sep-07 11:21
TheJudeDude14-Sep-07 11:21 
GeneralRe: Using Process Start Pin
Giorgi Dalakishvili14-Sep-07 11:30
mentorGiorgi Dalakishvili14-Sep-07 11:30 
GeneralRe: Using Process Start Pin
TheJudeDude14-Sep-07 14:39
TheJudeDude14-Sep-07 14:39 
GeneralRe: Using Process Start Pin
Giorgi Dalakishvili14-Sep-07 22:53
mentorGiorgi Dalakishvili14-Sep-07 22:53 
Questionhow to playBack streaming video ? Pin
hdv21214-Sep-07 9:18
hdv21214-Sep-07 9:18 
AnswerRe: how to playBack streaming video ? Pin
Dave Kreskowiak14-Sep-07 9:27
mveDave Kreskowiak14-Sep-07 9:27 
GeneralRe: how to playBack streaming video ? Pin
hdv21214-Sep-07 11:15
hdv21214-Sep-07 11:15 
QuestionBreak Points in my Custom Attribute class Pin
Sha Sea14-Sep-07 7:26
Sha Sea14-Sep-07 7:26 
Hi,
Im using Visual Studio 2005 and .Net 3.0. I wanted to apply Break Points in my Custom Attribute class. I and my falla both used number of sample code but code is not executing Custom class nor break points work.

Here is someone sample code. Im not able to apply Break point.
Can anyone knows the answer?

<br />
namespace RegKeyAttributeTestor<br />
{<br />
   [AttributeUsage(AttributeTargets.Method|AttributeTargets.Struct,<br />
                   AllowMultiple=false,Inherited=false)]<br />
   public class MyAttribute:Attribute<br />
   {<br />
      private string regKey="a12nf";<br />
      public MyAttribute(string regKey)<br />
      {<br />
         if(this.regKey==regKey)<br />
         {<br />
            Console.WriteLine("Permitted to use this App");<br />
         }<br />
         else<br />
         {<br />
            Console.WriteLine("Not registered to use this App");<br />
         }<br />
      }<br />
   }    //End Attribute class code<br />
   class useAttrib<br />
   {<br />
      [MyAttribute("hello")]<br />
      public static string SayHello(string str)<br />
      {<br />
         return str;<br />
      }<br />
      static void Main()<br />
      {<br />
         Console.WriteLine(SayHello("Hello to Sufyan"));<br />
         Console.ReadLine();<br />
      }<br />
   }<br />
<br />
}<br />


Thanks ,
sha
AnswerRe: Break Points in my Custom Attribute class Pin
Nathan Holt at EMOM14-Sep-07 10:56
Nathan Holt at EMOM14-Sep-07 10:56 
GeneralRe: Break Points in my Custom Attribute class Pin
Sha Sea14-Sep-07 11:33
Sha Sea14-Sep-07 11:33 

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.