Change message of Control page on change language of website

कंट्रोल पेज(exapmle.ascx) पर स्क्रिप्ट मैसेज को हिंदी में करने के लिये:


  • उस कंट्रोल पेज(exapmle.ascx) पर इस प्रकार स्क्रिप्ट को लिखेंगे।
  •  
  • उस कंट्रोल पेज(exapmle.ascx) पर एक HiddenField को ऐड करेंगे । 
  • उस कंट्रोल के कोड पेज(exapmle.ascx.cs) पर HiddenField की Property बनाकर HiddenField की value set करेंगे ।

Note : Property का नाम HiddenField के same नहीं होगा। 
  • कंट्रोल पेज(exapmle.ascx) के पैरेंट पेज(exapmle.aspx) के कोड पेज(exapmle.aspx.cs) पर कंट्रोल पेज(exapmle.ascx) पर बनाई गयी Property को access करके उसमे सेशन बदलने के साथ value सेट कर देंगे। 
इस प्रकार आप चयनित भाषा के अनुरूप आप मैसेज को दिखा सकते है।  यह कोड कंट्रोल पेज के लिए है। 

अन्य महत्वपूर्ण लिंक :



Popular posts from this blog

My Bisalpur- Population

Rules for Constructing Character Constants

How to bind dropdownlist inside gridview edit template