ASP - BccFalna.com€¦ · ASP.NET WebForms to develop a Professional Level Web Application very...

50
Advance ASP.NET BccFalna.com 097994-55505 Kuldeep Chand I have tried my best to compile each and every aspect related to Advance ASP.NET WebForms with C# in this eBook with various kinds of Simple and Professional Level Web Applications Based Example Programs using Visual Studio’s Wizard and Manual Coding. It have written latest content on ASP.NET WebForms and I have tried my best to clear each and every Advance Concept like Master-Pages, Themes and Skins, ADO.NET for Database Driven Web Application, Rich Data Controls, Component Based Programming, ASP.NET AJAX, Caching, Custom User and Server Controls, Security Management, etc… in as easy language as possible. But since, the Whole ASP.NET is very big subject, so I have divided it in two parts to cover each and every aspect of it where this EBook covers only Advance Concepts while another eBook covers Core Concepts of ASP.NET WebForms. I believe that no other Advance ASP.NET WebForms with C# Book have as much good content as in this eBook is in Hindi Language because I have tried my best to include each and every advance concept related to ASP.NET and I wish, each and every buyer would be happy with the content of this eBook. If you read this EBook, you will sure get Good Understanding of Advance Concepts of ASP.NET WebForms to develop a Professional Level Web Application very easily plus this Advance Concept is also compulsory to learn if you want to become a Professional ASP.NET MVC Web Developer because Microsoft’s ASP.NET MVC and ASP.NET Webpages are based on these advance concepts too internally.

Transcript of ASP - BccFalna.com€¦ · ASP.NET WebForms to develop a Professional Level Web Application very...

1

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

Advance ASP.NET

B c c F a l n a . c o m 0 9 7 9 9 4 - 5 5 5 0 5

Kuldeep Chand I have tried my best to compile each and every aspect related to Advance ASP.NET WebForms with C# in this eBook with various kinds of Simple and Professional Level Web Applications Based Example Programs using Visual Studio’s Wizard and Manual Coding. It have written latest content on ASP.NET WebForms and I have tried my best to clear each and every Advance Concept like Master-Pages, Themes and Skins, ADO.NET for Database Driven Web Application, Rich Data Controls, Component Based Programming, ASP.NET AJAX, Caching, Custom User and Server Controls, Security Management, etc… in as easy language as possible. But since, the Whole ASP.NET is very big subject, so I have divided it in two parts to cover each and every aspect of it where this EBook covers only Advance Concepts while another eBook covers Core Concepts of ASP.NET WebForms. I believe that no other Advance ASP.NET WebForms with C# Book have as much good content as in this eBook is in Hindi Language because I have tried my best to include each and every advance concept related to ASP.NET and I wish, each and every buyer would be happy with the content of this eBook. If you read this EBook, you will sure get Good Understanding of Advance Concepts of ASP.NET WebForms to develop a Professional Level Web Application very easily plus this Advance Concept is also compulsory to learn if you want to become a Professional ASP.NET MVC Web Developer because Microsoft’s ASP.NET MVC and ASP.NET Webpages are based on these advance concepts too internally.

2

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

� � � Kuldeep Mishra

BetaLab Computer Center Falna

3

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

Advance ASP.NET WebForms with C# in HINDI Copyright © 2015 by Kuldeep Chand All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher. Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. Author & Lead Editor : Kuldeep Mishra Proof Reader : Rohit Mishra and Mohit Mishra Distributed to the book trade worldwide by: BetaLab Computer Center, Subhash Road, Near Vidhya Jyoti School, Falna Station Teh. Bali, Dist. Pali (Raj.) Pin 306116 e-mail [email protected], or visit http://www.bccfalna.com. Mob.: 097994-55505 The information in this book is distributed on an “as is” basis, without warranty. Although every precaution has been taken in the preparation of this work, the author shall not have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this book.

4

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

This ebook is dedicated to you if you really want

to become a

ProFeSSionAl

AdvAnce ASP.neT

WebFormS develoPer

5

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

index oF conTenTS

6

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

Table of Contents ASP.NET – Master Pages ......................................................... 15

Why Master Pages ............................................................................................. 15 Master Page Fundamentals ............................................................................... 17 Master Page Coding .......................................................................................... 18 Content Page Coding......................................................................................... 22 Mixing Programming Model and Language ..................................................... 37 Which Master Page to Use ................................................................................ 38 Working with Master-Page Controls ................................................................. 39 Default Content in Master-Page ........................................................................ 53 Programmatically Assigning Master Page ....................................................... 54 Browser – Specific Master Pages ..................................................................... 55 Master-Content Page Event Ordering ............................................................... 58 Master Pages and Output Caching ................................................................... 59

ASP.NET – Themes and Skins ........................................... 61

Applying ASP.NET 2.0 Themes ......................................................................... 61 Theme for Single ASP.NET Page ..................................................................... 61 Theme for Entire Application ............................................................................ 63

Removing ASP.NET 2.0 Themes ....................................................................... 63 Removing Themes from Server Controls .......................................................... 63 Removing Themes from Server Web Pages ..................................................... 64 StylesheetTheme Attribute ............................................................................... 65

Creating ASP.NET Themes................................................................................ 66 Theme Folder Structure .................................................................................... 66 Working with Skins ........................................................................................... 67 Working with CSS ............................................................................................ 71 Working with Images ........................................................................................ 73 Same Control Multiple Skins ............................................................................. 74

Working with Themes Programmatically ......................................................... 75 Assigning Theme to Page ................................................................................ 75 Assigning SkinID to Controls ............................................................................ 76

Themes with Custom Controls ......................................................................... 76 ASP.NET – ADO.NET .......................................................... 79

Database Fundamentals .................................................................................... 79

7

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

Configuring MSSQL Server Express ................................................................ 82 Data Provider Model .......................................................................................... 94

System.Data.SqlClient namespace .................................................................. 95 System.Data.SqlTypes namespace .................................................................. 95 System.Data namespace ................................................................................. 96

Connected Data Model ...................................................................................... 96 Connection Creation ......................................................................................... 99 Connection Opening ....................................................................................... 102 Using SELECT Command .............................................................................. 108 Using DataReader .......................................................................................... 108 Updating Data ................................................................................................ 126 Field Values in TextBox .................................................................................. 127 Adding Record ................................................................................................ 134 Updating Record ............................................................................................ 140 Deleting Record .............................................................................................. 142

Disconnected Data Model ............................................................................... 153 Selecting Disconnected Data .......................................................................... 155 Selecting Multiple Tables ................................................................................ 158 Defining Relationships .................................................................................... 161

ASP.NET – Data Binding .................................................. 168

Data-Binding Model ......................................................................................... 168 Feasible Data Sources ................................................................................... 169 Collection Classes .......................................................................................... 170 ADO.NET Classes .......................................................................................... 172 Queryable Objects .......................................................................................... 173

Data-Binding Properties .................................................................................. 174 Data-Binding Basics ........................................................................................ 175

Types of ASP.NET Data-Binding .................................................................... 177 Single-Value or Simple Data-Binding .......................................................... 177 Repeated-Value or List Data-Binding .......................................................... 178

Working of Data-Binding ................................................................................. 178 Using Single-Value Data-Binding.................................................................... 179 Using Repeated-Value Data-Binding .............................................................. 185

Data-Binding with Simple List Controls ........................................................... 187 Data-Binding with Dictionary Collection .......................................................... 192 Data-Binding with ADO.NET ........................................................................... 200

8

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

Working with Data Source Controls ............................................................... 216 Page Life Cycle with Data-Binding .................................................................. 219

SqlDataSource Control .................................................................................... 220 Working with Command Types ....................................................................... 228 Working of Data Source Controls ................................................................... 237 Record Selection ............................................................................................ 238 Parameterized Command ............................................................................... 245

Other Types of Parameterized Commands ................................................. 252 Parameterized Stored Procedures .............................................................. 276 Setting Parameter with Unknown Value ...................................................... 287 Error Handling ............................................................................................. 288

Record Updating ............................................................................................ 289 Record Inserting ............................................................................................. 300 Record Deleting .............................................................................................. 308 SqlDataSource Disadvantages ....................................................................... 313

Page Embedded Data Access Logic ........................................................... 313 Large Applications Maintenance Issue ........................................................ 313 Flexibility Issue ........................................................................................... 314 Inappropriate in Other Data Tasks .............................................................. 314

ObjectDataSource Control .............................................................................. 314 ASP.NET – Rich Data Controls ........................................ 317

GridView – Rich Data Control ......................................................................... 318 Handling Columns .......................................................................................... 318

GridView Formatting ........................................................................................ 325 Fields Formatting ............................................................................................ 326 Styles ............................................................................................................. 328 Defining Styles ............................................................................................... 334 Styling with Visual Studio ............................................................................... 335 Formatting Specific Values ............................................................................. 338

GridView Row Selection .................................................................................. 342 Selection for Master-Details Form .................................................................. 343 SelectedIndexChanged Event ........................................................................ 349 Using Data Field as Select Button .................................................................. 351

GridView Sorting .............................................................................................. 356 Sorting and Selection Issue ............................................................................ 358 Advance Sorting ............................................................................................. 360

9

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

GridView Paging .............................................................................................. 360 Automatic Paging ........................................................................................... 361 Paging and Selection ...................................................................................... 363 Customizing Pager ......................................................................................... 366

GridView Templates ......................................................................................... 370 Multiple Templates ......................................................................................... 376 Template Editing in Visual Studio ................................................................... 377 Event Handling in Template ............................................................................ 379 Editing with Simple Controls ........................................................................... 381 Editing with Advance Controls ........................................................................ 385 Editing without Command Column .................................................................. 391

ListView – Rich Data Control .......................................................................... 393 DetailsView and FormView .............................................................................. 410

DetailsView – Rich Data Control ..................................................................... 411 Fields Defining ............................................................................................ 415 Record Operations ...................................................................................... 416

FormView – Rich Data Control ....................................................................... 418 ASP.NET – Component Based Programming ................. 428

Why Components ............................................................................................ 428 Safety ............................................................................................................. 429 Better Organization ........................................................................................ 429 Easy Troubleshoot ......................................................................................... 429 Manageability ................................................................................................. 430 Code Reuse ................................................................................................... 430

Component Terminology ................................................................................. 430 Three-Tier Design .......................................................................................... 430 Encapsulation ................................................................................................. 433 Business Objects ............................................................................................ 434 Data Objects .................................................................................................. 434 Components and Classes .............................................................................. 434

Creating Component ....................................................................................... 435 Classes and Namespaces .............................................................................. 437 Class Members .............................................................................................. 438 Adding Component Reference ....................................................................... 439 Using Component ........................................................................................... 443 Properties and State ....................................................................................... 446

10

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

Data-Access Components ............................................................................... 447 ObjectDataSource Control .............................................................................. 448

Creating XSD Schema ................................................................................... 449 Using ObjectDataSource Control .................................................................... 454

ASP.NET – AJAX ............................................................... 470

AJAX Fundamentals ........................................................................................ 470 AJAX Advantages .......................................................................................... 471 AJAX Limitations ............................................................................................ 471 AJAX in ASP.NET .......................................................................................... 472 ScriptManager Control .................................................................................... 473

Partial Refresh ................................................................................................. 475 Error Handling ................................................................................................ 479 Conditional Updates ....................................................................................... 480 Triggers .......................................................................................................... 483 Progress Notification ...................................................................................... 486 Timely Refreshes ........................................................................................... 489 Optimizing UpdatePanel ................................................................................. 490

AJAX Control Toolkit ....................................................................................... 491 ASP.NET – Files and Streams .......................................... 496

Files V/s Databases ......................................................................................... 496 Working with Files ........................................................................................... 498

Path Class ...................................................................................................... 498 Directory and File Classes .............................................................................. 502

Methods of Directory Class ......................................................................... 503 Methods of File Class ................................................................................. 504

DirectoryInfo and FileInfo Classes .................................................................. 508 Common Members of DirectoryInfo and FileInfo Class ............................... 508 Unique Members of DirectoryInfo Class ...................................................... 509 Unique Members of FileInfo Class .............................................................. 510

DriveInfo Class ............................................................................................... 513 Working with Attributes ................................................................................... 514 Wildcard File Filters ........................................................................................ 517

Working with Streams ..................................................................................... 517 Text Files ........................................................................................................ 520

11

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

Binary Files .................................................................................................... 522 Files Uploading ................................................................................................ 523

ASP.NET – Caching .......................................................... 531

Caching Fundamentals .................................................................................... 532 Output Caching ................................................................................................ 533

Declarative Output Caching ............................................................................ 534 Caching and Query String .............................................................................. 536 Caching with Specific Query String Parameters ............................................. 538 Fragment Caching .......................................................................................... 539 Cache Profiles ................................................................................................ 540

Data Caching .................................................................................................... 541 Adding Items in Cache ................................................................................... 542 Caching with Data Source Controls ................................................................ 546

Caching and Dependencies ............................................................................ 551 File Dependencies .......................................................................................... 552 Cache Item Dependencies ............................................................................. 552 SQL Server Cache Dependencies .................................................................. 553

Enabling Service Broker.............................................................................. 555 Initializing Caching Service ......................................................................... 555 Creating Cache Dependency ...................................................................... 556

ASP.NET – Asynchronous Pages ................................................................... 557 Creating Asynchronous Web Page ............................................................. 560 Querying Data in Asynchronous Page ........................................................ 563 Error Handling .............................................................................................. 568 Caching with Asynchronous Tasks ............................................................ 572

ASP.NET – Custom User Controls .................................. 577

User Control Fundamentals ............................................................................ 578 Creating Simple User Control ......................................................................... 579 Converting Page to User Control .................................................................... 584

Coding User Controls ...................................................................................... 585 Event Handling ............................................................................................... 585 Properties Adding ........................................................................................... 587 Events Handling ............................................................................................. 592

12

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

ASP.NET – Custom Server Controls ............................... 599

Custom Server Control Fundamentals ........................................................... 599 Creating Custom Server Control ................................................................. 602 Using Custom Server Control ..................................................................... 605 Adding Custom Server Controls in Visual Studio Toolbox ....................... 607 Custom Server Control with Style Properties ............................................ 615 Rendering Process ....................................................................................... 622

Custom Server Control State and Events ...................................................... 623 View State ..................................................................................................... 624 Control State ................................................................................................. 627 Postback Data and Change Events ............................................................. 628

ASP.NET – Security Fundamentals ................................. 635

Understanding Security Requirements .......................................................... 635 Authentication and Authorization ................................................................... 637 Forms Authentication ...................................................................................... 639

Web.config Settings........................................................................................ 641 Authorization Rules ........................................................................................ 642

Restricting Access to Specific Directory ...................................................... 644 Restricting Access to Specific Files ............................................................. 645 Restricting Access to Specific Users ........................................................... 646

Login Page ..................................................................................................... 647 Retrieving User Identity ............................................................................... 651 Signing Out ................................................................................................. 652 Persistent Cookies ...................................................................................... 654

Windows Authentication ................................................................................. 657 Web.config Settings........................................................................................ 658

ASP.NET – Membership API ............................................ 663

Using Membership API .................................................................................... 667 Configuring Forms Authentication ................................................................... 667 Creating Data Store ........................................................................................ 669 File-Based SQL Server Store ......................................................................... 675 Configuring Connection String and Membership Provider .............................. 676

Using Security Controls .................................................................................. 681

13

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

CreateUserWizard Control.............................................................................. 681 Login Control .................................................................................................. 687

Programming Login Control ........................................................................ 691 LoginStatus Control ........................................................................................ 694 LoginView Control .......................................................................................... 696 PasswordRecovery Control ............................................................................ 698 ChangePassword Control ............................................................................... 702

Last but Not Least – There is more… .............................. 706

14

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

mASTer-PAgeS

15

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

ASP.NET – Master Pages Visual Inheritance, ASP.NET 2.0 esa Add fd;k x;k dkQh egRoiw.kZ Enhancement Fkk] ftldh otg ls ge ,d ,slk Template Page Create dj ldrs Fks] ftls ASP.NET Application ds fofHkUu Content Pages ds fy, Foundation dh rjg Use dj ldrs FksA bu Templates dks Master Pages ds uke ls tkuk tkrk gS vkSj ;s Master Pages gekjh Web Application Development dh Productivity dks dkQh T;knk Increase dj nsrs gSa] D;ksafd bu Master Pages dh otg ls gekjk Web Application Development, Debugging o Maintaining dk dke dkQh vklku gks tkrk gSA Visual Studio gesa Master Pages dks Create djus ds fy, iw.kZ Designer Support Provide djrk gS] ftldh otg ls ,d Web Designer ds :i esa ge ASP.NET vk/kkfjr Website ;k Web Application dks dkQh rsth ls Develop dj ldrs gSaa vkSj bl Chapter esa ge Master Pages dh Functionalities o Advantages ds ckjs esa gh foLrkj ls tkuus dh dksf”k”k djsaxsA

Why Master Pages lkekU;r% ge tks Hkh Web Application ;k Website Develop djrs gSa] mlesa T;knkrj Webpages dk Layout iwjs Web Application ds nkSjku leku gh jgrk gSA mnkgj.k ds fy, ;fn ge www.bccfalna.com Website ds fdlh Hkh Ebook Related Page dks ns[ksa] rks izR;sd Ebook dk Description leku Layout okys Webpages ds :i esa gh fn[kkbZ nsrk gSA tSlkfd vxys fp= }kjk ge le> ldrs gSa] tgka Content ds vykok lHkh vU; Sections (Header, Menubar, Content Footer, Footer, Sidebar) dh Position Fixed jgrh gSA lkFk tc ge viuh Website dks bl rjg ls Template ds vk/kkj ij Design djrs gSa] rc iwjh Website ij ;fn ge fdlh Change dks Perform djuk pkgrs gSa] rks gesa ek= vius Template esa gh Change djuk gksrk gS vkSj ml Change dk Effect iwjh Website ij gks tkrk gSA mnkgj.k ds fy, vxys fp= esa ge ns[k ldrs gSa fd Sidebar Left Side esa fn[kkbZ ns jgk gSA vc ;fn ge bl Sidebar dks Right-Side esa rFkk Content dks Left-Side esa Render djuk pkgsa] rks gesa dsoy gekjh Website ds Template File esa ekewyh lk ifjorZu djuk gksxk vkSj gekjh iwjh Website ,d u, Layout ds lkFk Render gksus yxsxh] tks fd dsoy Templates dh otg ls gh lEHko gS vkSj ASP.NET esa bu Templates dks Master Pages ds :i esa Create o Manage fd;k tkrk gSA tcfd ;fn fge Master Pages dks Use ugha djrs] rks ml fLFkfr esa gesa gekjh Website ds izR;sd Page ij bu Common Sections (Header, Menubar, Footer, Sidebar, etc…) dks Manually Specify djuk iMrk gS vkSj bl izdkj dh Website esa ;fn Website ds Layout dks Change djuk gks] ;kuh ;fn Left-Side esa fn[kkbZ nsus okys Sidebar dks Right-Side esa Render

16

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

djrs gq, Layout dks Change djuk gks] rks gesa Website ds izR;sd Page ds Codes esa ifjorZu djuk iMrk gSA

17

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

Master Page Fundamentals Master Pages gesa gekjh Website ds fofHkUu Pages ds Common Sections dks Specify djus gsrq ,d Template Provide djrk gS] ftls ge gekjs Web Application esa ftrus pkgsa mrus ASP.NET Pages ij Apply dj ldrs gSaA tc ge Master Pages dks Use djrs gSa] rc ge ,d Master File Create djrs gSa] tks fd ,d Template gksrk gSA bl Template dks Subpage ;k Content Page ds uke ls Reference fd;k tkrk gSA Master Pages dk Extension .master gksrk gS tcfd Content Pages dk Extension lkekU;r% .aspx gksrk gSA ysfdu ftu Content Pages ij gesa Master Template dks Apply djuk gksrk gS] muds Page Directive esa Use fd, tkus okys Master Page Template dks Specify fd;k tkuk t:jh gksrk gSA ge gekjh Website ds fofHkUu Pages ds chp ftu Contents dks Share djuk pkgrs gSa] mUgsa .master File esa Specify djrs gSaA ifj.kkeLo:i ftu Pages ij .master Template File dks Apply fd;k tkrk gS] mu lHkh Pages esa Master File esa Specify fd, x, Contents T;ksa ds R;ksa Content Page esa fn[kkbZ nsus yxrs gSaA fQj Runtime esa ASP.NET Engine Master Page o Content Page nksuksa dks ,d Single File ds :i esa Combine dj nsrk gSA bl izfØ;k dks ge fuEu fp= }kjk csgrj rjhds ls Represent dj ldrs gSa%

18

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

Master Pages dks Use djus dk ,d Qk;nk ;s Hkh gS fd ge gekjs Webpage dh Final Rendering dks IDE ds vUnj gh ns[k ldrs gSa vkSj tku ldrs gSa fd gekjk Webpage tc Web Browser esa Render gksxk] rc dSlk fn[kkbZ nsxk vkSj blh otg ls tc ge gekjs Webpages dks Develop djrs gSa] rks gesa irk gksrk gS fd ml Webpage dk Finally Rendered Output D;k gksxkA tc ge Master Page ds :i esa Template File dks Use djrs gSa] rks IDE ds vUrxZr Develop fd, tkus okys Webpages esa tks Content Master Page ls vk jgk gksrk gS] og Shaded Gray Color esa fn[kkbZ nsrk gSA lkFk gh Master Page ls vkus okys bl Grayed Content dks Content Page }kjk Edit Hkh ugha fd;k tk ldrkA Master Page esa gh ge ;s r; djrs gSa fd mlds fdl fgLls dks Content Page viuk Content Render djus ds fy, Use dj ldsxkA ge gekjs Master Page esa ,d ls T;knk fgLls r; dj ldrs gSa] ftls Content Page Different Content Place djus ds fy, Use dj ldrk gSA ASP.NET 2.0 ds lkFk gh Master Pages dk Concept blfy, lEHko gks ldk] D;ksafd .NET Framework 2.0 ds lkFk gh Partial Classes dks Support fd;k tkus yxk] tks fd .NET Framework }kjk Supported C#/VB.NET Programming Languages dks izkIr gksus okyh ,d cgqr gh mi;ksxh Capability gSA Partial Classes ,d ,slh Capability gS tks gesa ,d gh Class ds nks ;k vf/kd fgLlksa dks nks ;k vf/kd Classes ds :i esa vyx&vyx Define djus dh lqfo/kk Provide djrs gSa] ysfdu tc Application Run gksrk gS] rks lHkh Partial Classes vkil esa Merge gksdj ,d Single Page Class dh rjg dke djus yxrk gSaA ;fn vki bl Partial Class ds Concept dks csgrj rjhds ls ugha tkurs] rks vkids fy, “C#.NET in Hindi” iqLrd dkQh mi;ksxh lkfcr gks ldrh gS] D;ksafd bl iqLrd esa .NET Framework ds yxHkx izR;sd Feature dks dkQh ljy mnkgj.k Programs ds ek/;e ls Detail ls le>k;k x;k gSA

Master Page Coding Master Pages dks vius Web Application esa Add djus ds fy, gesa ogh rjhdk Follow djuk gksrk gS] tks ge fdlh .aspx Page dks vius Project esa Add djus ds fy, djrs gSaA ;kuh gesa gekjs Visual Studio IDE ds PROJECT => Add New Item… Option dks Click djuk gksrk gS] ftlds ifj.kkeLo:i fuEu fp=kuqlkj Dialog Box Display gksrk gS%

19

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

pwafd Master Page Hkh ,d izdkj ls .aspx Page dh rjg gh gksrk gS] blfy, ge gekjs Master Page ds Codes dks leku File esa Hkh fy[k ldrs gSa vkSj bldh Code-Behind File esa Hkh vkSj tc ge Code-Behind File Use djrs gSa] rks bl File dk Extension .master.cs ;k .master.vb gksrk gSA tSls gh ge Visual Studio IDE dk iz;ksx djrs gq, vius Current Project esa u;k Master Page Add djrs gSa] gekjs Solution Explorer esa ,d u;k .Master Page Add gks tkrk gS] ftls Open djus ij mlesa Specified Default Codes fuEukuqlkj gksrs gSa% File Name: Site.Master <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="WebProject.Site" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <asp:ContentPlaceHolder ID="head" runat="server">

20

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

</asp:ContentPlaceHolder> </head> <body> <form id="form1" runat="server"> <div> <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </div> </form> </body> </html> Visual Studio IDE dk iz;kssx djus dk ,d Qk;nk ;s Hkh gS fd ge tc pkgsa rc bl Master Page ds Code-View ls Design-View ij Switch dj ldrs gSaA ;fn ge Visual Studio }kjk Master Page ds fy, Automatically Generate gksus okys mijksDr Code dks ns[ksa rks bl Code esa Page Directive ugha cfYd Master Directive Use fd;k x;k gS] D;ksafd ;s Page okLro esa ,d Master Page gS] ftls vU; .aspx Pages ds fy, Template dh rjg Use fd;k tk,xkA tcfd bl Master Directive ds vU; Attributes Page Directive dh rjg gh gSaA vU; “kCnksa esa dgsa rks Master Page o ASPX Page esa dksbZ fo”ks’k vUrj ugha gksrk vkSj ge tks Codes fdlh .aspx Page esa fy[krs gSa] os lkjs Codes .master Page esa fy[k ldrs gSaA ;kuh ge gekjs Master Page ij Server Controls, RAW HTML o Text, Images, Events o gj oks Code ftls .aspx Page ij Use djrs gSa] bl .master Page ij Hkh leku izdkj ls Use dj ldrs gSaA ;kuh gekjs Master Page ij Hkh Page_Load Event o vU; Events ds fy, Handler gks ldrk gS] tks fd lkekU;r% .aspx Page ij gksrk gSA ;fn ge mijksDr Code esa ns[ksa rks gesa <asp:ContentPlaceHolder> uke dk ,d u;k Server Control fn[kkbZ nsrk gSA ;s Control gekjs Master Page esa Content Page ds fy, Sections Define djus dh lqfo/kk nsrk gS] tgka gekjk Content Page vius Content Place dj ldrk gSA blfy, ;fn ge pkgsa] rks vius Master Page dks fuEukuqlkj rjhds ls Modify djrs gq, mlesa nks vyx Content Placeholder Specify dj ldrs gSa] tgka gekjk Content Page nks vyx rjg ds Contents Render dj ldrk gS% File Name: Site.Master <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="WebProject.Site" %>

21

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>BccFalna.com: Master Page</title> </head> <body> <table style="width:100%;"> <tr> <td colspan="2"> <h1>BccFalna.com</h1> <h4>TechTalks in Hindi</h4> </td> </tr> <tr> <td> <asp:ContentPlaceHolder ID="cphLeft" runat="server"> </asp:ContentPlaceHolder> </td> <td> <asp:ContentPlaceHolder ID="cphRitht" runat="server"> </asp:ContentPlaceHolder> </td> </tr> <tr> <td colspan="2"> <h4>Copyright: 2015</h4> </td> </tr> </table> </body> </html> tc ge bl Master Page dks Visual Studio IDE ds Design-Mode esa ns[krs gSa] rks ;s Master Page gesa dqN fuEukuqlkj fn[kkbZ nsrk gS%

22

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

gekjs bl Modified Master Page esa Header o Footer nks ,sls Sections gSa] ftUgsa gekjh Website ds lHkh Pages ds fy, Common :i ls Use fd;k tkuk gS] tcfd nks Content Place Holder Specify djds geus mUgsa vius Content Page ds Contents dks Fill djus ds fy, Define fd;k gS] rkfd gekjk Content Page mu Content Placeholders esa Dynamic Content Fill dj ldsA

Content Page Coding tc ,d ckj ge viuh Website ds fy, Master Page Design dj ysrs gSa] mlds ckn gesa gekjs Application ds fy, Content Page Create djus gksrs gSa vkSj mu Content Pages ds fy, Template ds :i esa ml Master Page dks Select djuk gksrk gS] ftlds Layout o Design dks ge gekjs Page ds fy, Template dh rjg Use djuk pkgrs gSaA Content Page vkSj dqN ugha okLro esa ,d .aspx Page gh gksrk gSA blfy, tc ge dksbZ Content Page Create djuk pkgrs gSa] rc Hkh gesa Visual Studio ds PROJECT => Add New Item Menu Option dks gh Click djuk gksrk gS] ftlds Response esa fuEukuqlkj Dialog Box Display gksrk gS%

23

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

;gka Appropriate Filename Specify djds tSls gh ge “Add” Button ij Click djrs gSa] gekjs lkeus fuEu fp=kuqlkj gekjk Page Open gks tkrk gS%

bl Page ds Content Area esa Mouse Pointer dks Place djrs gh gekjs Properties Sidebar esa Current Document ls lEcaf/kr Properties fn[kkbZ nsus yxrh gSaA bu Properties esa gesa mijksDr fp=kuqlkj MasterPageFile Property ds Button dks Click djuk gksrk gS] ftlds ifj.kkeLo:i gekjs lkeus fuEukuqlkj ,d Dialog Box Display gksrk gS] ftlesa gekjs Current Web Application ds fy, miyC/k lHkh master Pages fn[kkbZ nsrs gSa%

24

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

;gka gesa ml Master Page dks Select djds OK Button ij Click djuk gksrk gS] ftls ge gekjs Current Content Page ij Apply djuk pkgrs gSaA pwafd gekjs Current Example esa dsoy Site.Master uke dk Master Page gh miyC/k gS] blfy, bl Template dks Select djds tSls gh ge OK Button ij Click djrs gSa] gekjs Current Content Page ij Selected Master Page Template Apply gks tkrk gSA lkFk gh gekjs Current Content Page ds Page Directive esa fuEukuqlkj MasterPageFile uke dk ,d u;k Attribute Add gks tkrk gS] ftls ;fn ge pkgsa rks fcuk mijksDr Procedure Follow fd, gq, Manually Hkh Specify dj ldrs gSa%

File Name: Site.Master <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm.aspx.cs" Inherits="WebProject.WebForm" MasterPageFile="~/Site.Master" %> <!DOCTYPE html>

25

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> </div> </form> </body> </html> vc ;fn ge gekjs bl Newly Created Content Page dks Visual Studio IDE ds Design Mode esa ns[ksa] rks gesa fuEukuqlkj Error fn[kkbZ nsrk gS%

tc ge bl Error esa fn[kkbZ nsus okys “Code view” Hyperlink ij Click djrs gSa] rks ge fuEu fp=kuqlkj fQj ls Code-View esa igqap tkrs gSa%

26

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

ge ns[k ldrs gSa fd Code-Editor esa <html> Element iwjh rjg ls Selected fn[kkbZ ns jgk gS] tks fd Error dk dkj.k cu jgk gSA ,slk blfy, gks jgk gS] D;ksafd tc ge Master Page Create djrs gSa] rks gekjs Content Page ds Structure ls lEcaf/kr iwjk <html> Element Master Page ls Content Page esa Inherit gksrk gSA blfy, gesa gekjs Content Page esa bUgsa Specify djuk t:jh ugha gksrkA vr% tSls gh ge bl lkjs Selected Content dks Delete djrs gSa] gekjk Error lekIr gks tkrk gS vkSj Design View esa gesa gekjk Page fuEukuqlkj fn[kkbZ nsus yxrk gS%

27

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

tgka ge ns[k ldrs gSa fd nks Content Placeholders ds vykok iwjk Page Grayed fn[kkbZ nsrk gS] ftls ge Content Page }kjk fdlh Hkh fLFkfr esa Change ugha dj ldrsA tc ge Visual Studio dk iz;ksx djrs gq, Web Application Project Create djrs gSa] rc Master Page o Content Page Create djus ds fy, gesa mijksDrkuqlkj rjhds dks Follow djuk gksrk gSA ysfdu tc ge Visual Studio dk iz;ksx djrs gq, Website Project Create djrs gSa] rc Master Page o mlls Associated Content Page Create djus dk GUI rjhdk rqyukRed :i ls FkksMk vklku gksrk gSA mnkgj.k ds fy, ekuyks fd ge Visual Studio ds “FILE => Website…” Menu Option dks Click djrs gSa] ftlds ifj.kkeLo:i fuEukuqlkj Dialog Box Display gksrk gS%

bl Dialog Box esa fp=kuqlkj “ASP.NET Empty Web Site” Option dks Select djrs gq, ,d Empty Website Application Create djus gsrq tSls gh ge “OK” Button ij Click djrs gSa] ,d u;k Empty Website Application Create gks tkrk gSA fQj bl Website Application esa u;k Master Page Create djus ds fy, ge tSls gh “WEBSITE => Add New Item…” Menu Option dks Click djrs gSa] gekjs lkeus fuEu fp=kuqlkj Dialog Box Display gksrk gS%

28

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

bl Dialog Box esa fn[kkbZ nsus vuqlkj gesa “Master Page” Option dks Select djds mldk ,d Appropriate uke nsuk gksrk gS] tks fd mijksDr fp= esa “MasterPage.master” gSA bl Dialog Box ij gesa nks Checkbox Hkh fn[kkbZ ns jgs gSa] tgka geus “Place code in separate file” Checkbox dks blfy, Check fd;k gS] rkfd bl Master Page ds Program Logics fy[kus ds fy, ,d Code-Behind File Hkh Create gksA tcfd bl Option dks Uncheck j[kus ij gesa gekjs Master Page ds Program Logics dks Inline Script dh rjg gh fy[kuk iMrk gSA tcfd nwljs Checkbox ds :i esa “Select master page” Checkbox dks geus Uncheck gh j[kk gS] D;ksafd Currently ge Master Page Create dj jgs gSa] tcfd bl Checkbox dks rc Check fd;k tkrk gS] tc ge fdlh Master Page ij vk/kkfjr Content Page Create djuk pkgrs gSaA mijksDr fp=kuqlkj rjhds ls Master Page ds fy, Settings dks Specify djds tSls gh ge “Add” Button ij Click djrs gSa] gekjk Master Page Create gks tkrk gS] tgka ge gekjs Master Page ds Codes fy[krs gSaA Master Page Create djus ds ckn tc ge Content Page Create djuk pkgrs gSa] rc gesa bl Website Project esa Hkh “WEBSITE => Add New Item…” Option dks gh Select djuk gksrk gS] ftlds ifj.kkeLo:i fuEukuqlkj Dialog Box Display gksrk gS%

29

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

pwafd ge ,d Content Page Create djuk pkgrs gSa] tks fd Master Page ij vk/kkfjr gksxk] blfy, bl Dialog Box esa geus “Web Forms” Option dks Select djus ds lkFk gh “Select master page” Checkbox dks Hkh Select fd;k gSA ifj.kkeLo:i bl ckj tSls gh ge “Add” Button ij Click djrs gSa] gekjs lkeus “Select a Master Page” Dialog Box Display gks tkrk gS] ftls Web Application Project Create djus ij gesa Manually Display djuk iMrk gS%

30

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

bl Dialog Box esa gesa gekjs Current Website Project ds fy, Created lHkh Master Pages fn[kkbZ nsus yxrs gSaA pwafd geus vHkh rd dsoy ,d gh Master Page Create fd;k gS] blfy, gesa ;gka ,d gh Master Page fn[kkbZ ns jgk gS] ftls Select djds “OK” Button ij Click djrs gh gekjs Website Project esa ,d Content Page Display gks tkrk gS] ftlesa fuEukuqlkj Predefined Codes fy[ks gksrs gSa] tks fd gekjs Master Page esa Specified Content Placeholder Server Control ls gh Derived gksrk gS% File Name: Default.aspx <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" %> <script runat="server"> </script> <asp:Content ID="Content1" ContentPlaceHolderID="cphLeft" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="cphRitht" Runat="Server"> </asp:Content> bl Automatically Add gksus okys <asp:Content> Server Control esa ge ml Content dks Enclose dj ldrs gSa] ftls ge gekjs Current Content Page ij Content Placeholder Control ds LFkku ij Render djuk pkgrs gSaA ge ns[k ldrs gSa fd bl ckj Automatically Generate gksus okys Code esa <script> uke dk ,d Element rks Included gS ysfdu Default.aspx.cs uke dh Code-Behind File ugha gSA ,slk blfy, gS] D;ksafd geus bl Content Page dks Create djrs le; “Place code in separate file” uke ds Checkbox dks Uncheck dj fn;k FkkA tcfd ;fn ge Master Page vk/kkfjr Content Page Create djus ds fy, fuEu fp=kuqlkj nksuksa Checkboxes dks Checked j[krs%

31

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

rks ml fLFkfr esa “Add” Button ij Click djus ij Automatically Generate gksus okys Content Page ds Auto-Generated Markup Codes fuEukuqlkj gksrs gSa% File Name: Default.aspx <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <asp:Content ID="Content1" ContentPlaceHolderID="cphLeft" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="cphRitht" Runat="Server"> </asp:Content> ge ns[k ldrs gSa fd bl ckj gekjh Default.aspx Page ds fy, Visual Studio }kjk Auto-Generated Code esa <script> Element ugha gS] ysfdu bl ckj gekjs Page Directive esa AutoEventWireup, CodeFile o Inherits uke ds rhu Extra Attributes Defined gSa] tks fd fiNys Auto-Generated Code esa ugha FksA

32

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

,slk blfy, gS D;ksafd bl ckj gekjs Default.aspx ds Program Logics fy[kus ds fy, Visual Studio us ,d Code-Behind File Default.aspx.cs Hkh Create fd;k gS vkSj mls Default.aspx Page ds lkFk Associated fd;k gS] ftlds fy, bu Extra Attributes dks Specify djuk t:jh gksrk gSA bl Auto-Generated Code esa ge ,d vkSj Special ckr ns[k ldrs gSa fd blesa dsoy <asp:Content> Server Control ds :i esa cphLeft o cphRitht ID okys Content Placeholder gh gSa] ftUgsa geus Content Page esa Editable cuk, j[kus ds fy, Master Page esa Specify fd;k FkkA ysfdu ;fn ge bUgsa Code-View esa Remove dj nsa] vkSj Default.aspx Page esa dsoy fuEukuqlkj Code gh jgus nsa%

File Name: Default.aspx <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> vkSj vc Visual Studio ds Design-View ij Switch djsa] rks gesa gekjk Content Page fuEukuqlkj fn[kkbZ nsrk gS%

33

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

ge le> ldrs gSa fd gkykafd geus gekjs Newly Content Page esa dksbZ Header, Footer Specify ugha fd;k gS] cfYd geus bl Header, Footer dks vius Master Page esa Specify fd;k Fkk] fQj Hkh gesa gekjs Content Page ij Header, Footer fn[kkbZ ns jgk gS vkSj ,slk blhfy, gks jgk gS D;ksafd geus vius Content-Page dks Master-Page Template ds vk/kkj ij Create fd;k gSA tcfd gekjs Content-Page esa Master-Page ds Contents dk Inherit gksuk] ,d izdkj ls Visual Inheritance dk mnkgj.k gSA ;kuh ge mijksDrkuqlkj Visual Studio ds Design View dk iz;ksx djrs gq, Master-Page ds Content dks Content-Page esa Visually Inherit gksrs gq, ns[k ldrs gSaA bruk gh ugha] vius Content Page ij ge ftl Content Placeholder ds Content dks Edit djuk pkgrs gSa] mlds fy, <asp:Content> Server Control dks Hkh ge bl Visual Designer }kjk Create dj ldrs gSaA ;kuh ftl Code dks geus Delete dj fn;k Fkk] mls blh Editor esa fuEu fp=kuqlkj Visually fn[kkbZ nsus okys Control Customization Button ij Click djus ij fn[kkbZ nsus okys “Create Custom Content” Hyperlink dks Click djds fQj ls Recreate dj ldrs gSa%

tSls gh ge bl “Create Custom Content” Hyperlink dks Click djrs gSa] mlls lEcaf/kr Code Automatically Generate gks tkrk gS] ftls ge fQj ls Source-Mode esa Switch djds ns[k ldrs gSaA tSls%

34

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

bl izdkj ls gekjs Master Page ij geus ftrus Content Placeholder Controls dks Place fd;k gksrk gS] mUgsa viuh t:jr ds vuqlkj Content-Page ij Edit djus ds fy, bl rjhds dk iz;ksx dj ldrs gSaA lkFk gh tc ge Visual Studio dk iz;ksx djrs gq, Web Application Project Create djrs gSa] rc Hkh Content Page esa Content dks Add djus gsrq Place fd, tkus okys <asp:Content> Control dks blh rjhds dk iz;ksx djrs gq, Visually Auto-Generate dj ldrs gSaA ;kuh ge Master Page esa ftu <asp:ContentPlaceHolder> Web Controls dks Place djrs gSa] Content-Page esa gesa mu Controls ds LFkku ij Content Place djus ds fy, muls Associated <asp:Content> Web Controls dks Specify djuk gksrk gS vkSj contentplaceholderid Attribute ds ek/;e ls ;s crkuk gksrk gS fd ge fdl Master Page Content Placeholder ds LFkku ij Content dks Place djuk pkgrs gSaA mnkgj.k ds fy, Master Page ij geus vius Content Placeholder Web Control dks fuEukuqlkj Specify fd;k Fkk] ftldk ID cphLeft Fkk%

<asp:ContentPlaceHolder ID="cphLeft" runat="server"></asp:ContentPlaceHolder> blfy, Content-Page ij bl Control dh Position ij Dynamic Content dks Place djus ds fy, geus fuEukuqlkj <asp:Content> Web Control dks Specify fd;k gS%

<asp:Content ID="Content1" runat="server" contentplaceholderid="cphLeft"> </asp:Content>

ftlesa contentplaceholderid Attribute dh Value ds :i esa geus “cphLeft” Specify djrs gq, Master-Page ij Specify fd, x, Content Placeholder Control ds lkFk Associate fd;k gSA rkfd bl Control ds chp tks Hkh Content Specify fd;k tk,] Output esa og Content ml Location ij fn[kkbZ ns] ftls Master-Page esa r; fd;k x;k gksrk gSA

35

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

Master-Page o Content-Page dh bl Working dks csgrj rjhds ls le>us ds fy, ge bu nksuksa Pages ds Markups dks fuEukuqlkj Modify dj ldrs gSa] tgka geus gekjs Master-Page dks Visually csgrj Render djus ds fy, blesa dqN Inline CSS Styling dks Hkh Use fd;k gS] rkfd bUgsa Practically Implement djus o mi;ksx esa ysus ds ckjs esa tku ldsa% File Name: MasterPage.master <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>BccFalna.com: Master Page</title> </head> <body> <table style="width:100%;" border="1"> <tr> <td colspan="2" style="background:#efefef;"> <h1>BccFalna.com</h1> <h4>TechTalks in Hindi</h4> </td> </tr> <tr> <td style="height:100px;"> <asp:ContentPlaceHolder ID="cphLeft" runat="server"> </asp:ContentPlaceHolder> </td> <td> <asp:ContentPlaceHolder ID="cphRitht" runat="server"> </asp:ContentPlaceHolder> </td> </tr> <tr> <td colspan="2" style="background:#efefef;"> <h4>Copyright: 2015</h4> </td> </tr> </table>

36

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

</body> </html>

File Name: Default.aspx <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <script runat="server"> protected void btnSubmit_Click(object sender, EventArgs e) { lblHello.InnerHtml = "<h3>Hello! " + txtName.Text + " How are you?</h3>"; } </script> <asp:Content ID="Content1" runat="server" contentplaceholderid="cphLeft"> <form id="form1" runat="server"> <asp:Label ID="lblName" runat="server" Text=""></asp:Label> <asp:TextBox ID="txtName" runat="server"></asp:TextBox> <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" /> </form> </asp:Content> <asp:Content ID="Content2" runat="server" contentplaceholderid="cphRitht"> <span id="lblHello" runat="server">Hello! How are you?</span> </asp:Content> tc ge gekjs Master-Page (MasterPage.master) o Content-Page (Default.aspx) dks mijksDrkuqlkj Modify djrs gSa] ftlesa geus Server-Side Script dks Hkh Current-Page esa gh Specify dj fn;k gS] tcfd ge btnSubmit_Click() Event Handler dks Default.aspx.cs Code-Behind File esa Hkh Implement dj ldrs gSa] rks bl Webpage dks Run djus ij gesa fuEukuqlkj Output Page izkIr gksrk gS%

37

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

ge ns[k ldrs gSa fd gkykafd geus gekjs Content-Page esa Header o Footer Sections dks Specify ugha fd;k gS] fQj Hkh gesa gekjs Output Page esa ;s Sections fn[kkbZ ns jgs gSa] tks fd Master-Page ls Inherit gks jgs gSa vkSj gesa mlh LFkku ij fn[kkbZ ns jgs gSa] tgka geus Master-Page esa bUgsa Specify fd;k FkkA ;kuh tc ge ASP.NET ds Master-Page Concept dks vius Website ;k Web Application Project ds fy, Use djrs gSa] rc gesa dsoy gekjs Master-Page ds Look and Feel ;kuh Layout dks gh Define djuk gksrk gS vkSj ,d ckj vius Website ds Layout ls lEcaf/kr Master-Page Templates dks Create dj ysus ds ckn ge ftl Content-Page ds lkFk pkgsa] ml Content-Page ij bl Template dks Apply dj ldrs gSaA bruk gh ugha] ;fn ge gekjh Entire Website ds Layout esa fdlh izdkj dk ifjorZu djuk pkgrs gSa] rks gesa dsoy Master-Page esa gh Modification djuk gksrk gS] ifj.kkeLo:i lEiw.kZ Website ds mu Content-Pages ij og Change Apply gks tkrk gS] ftu ij Master-Page dks Apply fd;k x;k gSA

Mixing Programming Model and Language .NET Framework dh ,d egRoiw.kZ fo”ks’krk ;s Hkh gS fd ge fdlh Hkh .NET Supported Programming Language dks Use djrs gq, viuk Development djsa] Compiling ds nkSjku lHkh ,d MSIL uke dh ,d Intermediate Language esa Convert gks tkrs gSaA blfy, ;fn ge gekjs Web Application esa Master-Page esa Language ds :i esa C# Programming Language dks Use dj jgs gksa] rks t:jh ugha gS fd ge gekjs Content-Pages esa Hkh blh Language dks Use djrs gq, Program Logics fy[ksaA cfYd ge gekjs Content-

38

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

Pages dks VB.NET ;k fdlh Hkh vU; Supported Programming Language dk iz;ksx djrs gq, Develop dj ldrs gSaA tcfd bl izdkj ds Mixed Programming Language okys Web Application dks Compile o Run djus ij gesa fdlh izdkj dh Error ;k Configuration Related Issues dks Face ugha djuk iMrkA D;ksafd lHkh Languages Compiling ds nkSjku MSIL esa gh Convert gks tkrs gSa] tks fd CLR }kjk Run dh tkus okyh Language gSA blh izdkj ls t:jh ugha gS fd geus ;fn vius Page dks Separate Code-Behind File ds lkFk Create fd;k gS] rks ge mlesa Inline Server-Side Scripting Code ugha fy[k ldrs] cfYd ge gekjs Webpage esa dHkh Hkh vkSj dgha ij Hkh <script runat="server"> Element dk iz;ksx djrs gq, blds chp ml Server-Side Code dks Enclosed dj ldrs gSa] ftls Runtime esa Web Server }kjk Compile djokuk pkgrs gSa] tSlkfd fiNys Example Content-Page esa fd;k gSA

Which Master Page to Use fiNys Example }kjk geus le>k fd ge fdl izdkj ls fdlh Particular Content-Page ds Page Directive esa MasterPageFile Attribute dks Specify djrs gq, mlls fdlh Master-Page Template dks Associate dj ldrs gSaA tcfd ;fn ge pkgsa rks Web.config File esa ,d Configuration Setting }kjk fdlh Default Master-Page dks Application Level ij Set dj ldrs gSaA ifj.kkeLo:i tc fdlh Content-Page ds lkFk fdlh Master-Page dks Specify ugha fd;k x;k gks] rc Hkh ml Content-Page ij ;s Default Master-Page Apply gks tk,xk vkSj bl Configuration dks ge fuEukuqlkj Specify dj ldrs gSa%

<configuration> <system.web> <pages masterPageFile="~/MasterPage.master" /> </system.web> </configuration> pwafd ASP.NET Framework gesa ,d gh Website / Web Application esa fofHkUu izdkj ds Webpages ds fy, Multiple Master-Pages dks Create o Apply djus dh lqfo/kk nsrk gSA blfy, Web.config File esa ge ml Common Master-Page dks Specify dj ldrs gSa] ftls ge gekjh Website ds fdlh Hkh Content-Page ij Apply djuk pkgrs gSaA tcfd fdlh Particular Content-Page ij ;fn gesa fdlh vU; Master-Page dks Specify djuk gks] rks ge fiNys Example dh rjg gh Content-Page ds Page Directive esa MasterPageFile Attribute dk iz;ksx dj ldrs gSaA

39

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

;gka le>us okyh ,d ckr vkSj Hkh gS fd gkykafd ge Web.config File esa Specified Setting }kjk fdlh Hkh Content-Page ij Application-Level Master-Page Template dks Apply dj ldrs gSaA ysfdu bldk eryc ;s ugha gS fd gekjs Web Application ds izR;sd .aspx Page ij Master-Page Apply gksxkA cfYd ;fn ge Simple WebForm Page Create djds Run djrs gSa] rks ml Page ij Master-Page Template Apply ugha gksxkA D;ksafd Master-Page dsoy Content-Page ij gh Apply gksrk gS vkSj Content-Page dsoy os Page gksrs gSa] ftuesa <asp:Content> Web Control dks Specify fd;k x;k gksrk gS vkSj ml Control esa contentplaceholderid Attribute dks Specify fd;k x;k gksrk gSA blh rjg ls ;fn gesa dsoy dqN Specific Pages ds lewg ij gh fdlh Master-Page dks Apply djuk gks] rks Web.config File esa <location> Element Specify djrs gq, ge ml Particular Page Set dks Hkh fuEukuqlkj rjhds ls Specify dj ldrs gSa%

<location path="AdminArea"> <system.web> <pages masterPageFile=”~/MasterPage.master” /> </system.web> </location> ;s Configuration dsoy AdminArea uke ds Folder esa Exist Content-Pages ij gh MasterPage.master uke ds Master-Page dks Apply djsxk] vU; Content-Pages ij ughaA

Working with Master-Page Controls tc ge gekjs Application esa Content-Page Create djrs gSa] rks Default :i ls lHkh Content Pages Automatically Master=Page esa Specify fd, x, Title dks gh Use dj ysrs gSaA ifj.kkeLo:i lHkh Content-Pages dk Title leku gh fn[kkbZ nsrk gS] tks fd SEO dh n`f’V ls Bhd ugha gksrkA blfy, ge bl fLFkfr dks Avoid djus ds fy, vius Content-Page esa Specify fd, x, @Page Directive esa Title Attribute dks Specify dj ldrs gSaA tSls% <%@ Page Title="Content Page" Language="C#" %> tcfd ;fn ge pkgsa rks vius Content-Page ds Title dks Programmatically Hkh Handle dj ldrs gSa vkSj ,slk djus ds fy, Content-Page ds Code esa Master Object dks Use dj ldrs gSaA bl Master Object esa Title uke dh ,d Property gksrh gS] tks fd gekjs Content-Page ds Title dks Represent djrk gSA blfy, bl Property dks Set djds ge gekjs Content-Page ds Title t:jr dks vuqlkj Change dj ldrs gSaA tSls%

File Name: Default.aspx

40

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <script runat="server"> protected void btnSubmit_Click(object sender, EventArgs e) { lblHello.InnerHtml = "<h3>Hello! " + txtName.Text + " How are you?</h3>"; } protected void Page_LoadComplete(object sender, EventArgs e) { Master.Page.Title = "Content Page"; } </script> <asp:Content ID="Content1" runat="server" contentplaceholderid="cphLeft"> <form id="form1" runat="server"> <asp:Label ID="lblName" runat="server" Text=""></asp:Label> <asp:TextBox ID="txtName" runat="server"></asp:TextBox> <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" /> </form> </asp:Content> <asp:Content ID="Content2" runat="server" contentplaceholderid="cphRitht"> <span id="lblHello" runat="server">Hello! How are you?</span> </asp:Content> tc ge mijksDrkuqlkj rjhds ls vius Content-Page esa Page_LoadComplete() Event Handler Method dks Define djrs gSa] rks Resultant Webpage ds Title ij gesa fuEu fp=kuqlkj “Content Page” uke dk Title fn[kkbZ nsrk gS] ftls geus bl Event Handler }kjk Master.Page.Title Attribute esa Set fd;k gS%

41

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

blh rjg ls tc ge Content-Page ds ek/;e ls Master-Pages ds lkFk izfØ;k dj jgs gksrs gSa] rc okLro esa ge Content-Page esa Master-Page ds fofHkUu Controls o Properties dks vklkuh ls Access o Manipulate dj ldrs gSaA tc Content-Page }kjk Master-Page dks Inherit fd;k tkrk gS] rc Master-Page dks Content-Page esa Master uke ds Object }kjk Access and Manipulate fd;k tk ldrk gSA bl Property dks Use djds ge Master-Page ds Controls dh Values ;k Custom Properties dks vius Content-Page esa Access o Manipulate dj ldrs gSaA bls le>us ds fy, ge ,d mnkgj.k ns[krs gSa] ftlesa ge Master-Page esa ,d GUID Create djrs gSa vkSj fQj bl GUID dks Content-Page esa Retrieve djrs gSaA bl mnkgj.k dks Create djus ds fy, gesa Master-Page esa Page_Load Event dks Use djuk gksxk vkSj Master-Page ij ,d Label Web Control dks Place djuk gksxk%

File Name: MasterPage.master <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> <!DOCTYPE html> <script runat="server"> protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { lblGUID.Text = System.Guid.NewGuid().ToString(); } } </script> <html xmlns="http://www.w3.org/1999/xhtml"> … …

42

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

</html> tc ge mijksDrkuqlkj vius Master-Page dks Modify djrs gq, mlesa ,d Label Control dks Place djrs gSa] tks fd User ds fy, ,d Unique GUID Display djrk gS] mlds ckn ge gekjs fdlh Hkh Content-Page esa bl Control dks Access dj ldrs gSa vkSj ,slk djus ds fy, ge dbZ rjhds Use djrs ldrs gSa] tgka igys rjhds ds :i esa ge Master-Page ds FindControl() Method dks Use dj ldrs gSaA tSls%

File Name: Default.aspx <%@ Page Title="Content Page" Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <script runat="server"> protected void btnSubmit_Click(object sender, EventArgs e) { lblHello.InnerHtml = "<h3>Hello! " + txtName.Text + " How are you?</h3>"; } protected void Page_LoadComplete(object sender, EventArgs e) { lblCPGUID.Text = (Master.FindControl("lblGUID") as Label).Text; } </script> <asp:Content ID="Content1" runat="server" contentplaceholderid="cphLeft"> <form id="form1" runat="server"> <asp:Label ID="lblName" runat="server" Text=""></asp:Label> <asp:TextBox ID="txtName" runat="server"></asp:TextBox> <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" /> </form> </asp:Content> <asp:Content ID="Content2" runat="server" contentplaceholderid="cphRitht"> <span id="lblHello" runat="server">Hello! How are you?</span><br /> <b>GUID Inherited from MasterPage: </b> <asp:Label ID="lblCPGUID" runat="server"></asp:Label> </asp:Content>

43

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

bl Modified Content-Page esa geus lblCPGUID uke ds ID dk ,d Label Control Create fd;k gS vkSj Page_LoadComplete() Event Handler esa fuEukuqlkj Code ds ek/;e ls Master-Page esa Specify fd, x, lblGUID ID okys Label Control dks Master.FindControl() Method }kjk Content-Page esa Access djds Content Page esa Create fd, x, lblCPGUID ID okys Label Control dh Text Property esa Assign fd;k gSA ifj.kkeLo:i tc bl Content-Page dks Run fd;k tkrk gS] rks gesa izkIr gksus okyk Resultant Output Page fuEukuqlkj gksrk gS%

bl Code esa geus Page_LoadComplete() Event Handler Method esa Master-Page ds lblGUID Label Control dks blfy, Access fd;k gS] rkfd tc Content-Page iwjh rjg ls Render gksus ds fy, rS;kj gks] rc Master-Page ds Controls dks Access fd;k tk,A D;ksafd bl Event dks ASP.NET 2.0 esa Master-Page Concept ds lkFk gh Include fd;k x;k gS] tks fd Page_Load Event ds Fire gksus ds Just ckn esa Fire gksrk gSA blfy, Master-Page esa Define fd, x, Page_Load() Event Handler ds Execute gksrs gh] Master-Page esa GUID Generate gks tkrk gS] ftls Master-Page ds lblGUID dh Text Property esa Store dj fn;k tkrk gSA fQj bl Event ds rqjUr ckn Content-Page dk Page_LoadComplete Event Trigger gksrk gS] ftlds fy, Master-Page }kjk Triggered Page_Load Event ds Response esa Generated GUID miyC/k jgrk gS] ftls Page_LoadComplete() Event Handler Method esa Access fd;k tk ldrk gSA vki ns[k ldrs gSa fd geus Master-Page o Content-Page nksuksa esa Server-Control o Web-Control dks vyx&vyx uke lblGUID o lblCPGUID ls Refer fd;k gS] tcfd ;fn ge pkgsa rks

44

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

nksuksa gh Pages esa leku uke lblGUID ID okyk Label Control Create dj ldrs gSa] D;ksafd Master-Page ds Label Control dks Content-Page esa Access djus ds fy, Master Object dks Use dj jgs gSa] tks fd Content-Page esa Master-Page dks Represent djrk gSA bruk gh ugha] ftl rjg ls fiNys Example esa geus Master-Page ds ,d Control dks Master Object ds ek/;e ls Content-Page esa Retrieve fd;k gS] Bhd mlh rjg ls ge Master-Page esa Create dh xbZ fdlh Property dks Hkh Get/Set dj ldrs gSaA bls le>us ds fy, ge gekjs Master-Page dks fuEukuqlkj Modify dj ldrs gSa% File Name: MasterPage.master <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> <!DOCTYPE html> <script runat="server"> string mpHeadingTitle = "BccFalna.com"; public string MasterPageHeadingTitle { get { return mpHeadingTitle; } set { mpHeadingTitle = value; } } </script> <html xmlns="http://www.w3.org/1999/xhtml"> … … </html> tc ge gekjs Master-Page dks mijksDrkuqlkj rjhds ls Modify djrs gq, mlesa MasterPageHeadingTitle uke dh Property Specify djrs gSa] bl Property dks Master-Page esa Use djus ds fy, ge fuEukuqlkj Statement fy[k ldrs gSa%

<%= MasterPageHeadingTitle %> ysfdu ;fn ge pkgsa rks bl Property dks Content-Page esa Hkh Access and Manipulate dj ldrs gSaA ekuyks fd ge gekjs Default.aspx Content-Page esa Master-Page dh bl Property dks u, Title ls Set djuk pkgrs gSaA bl t:jr dks iwjk djus ds fy, gekjs Content-Page dks fuEukuqlkj Modify dj ldrs gSa%

File Name: Default.aspx

45

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

<%@ Page Title="Content Page" Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <%@ MasterType VirtualPath="~/MasterPage.master" %> <script runat="server"> protected void btnSubmit_Click(object sender, EventArgs e) { lblHello.InnerHtml = "<h3>Hello! " + txtName.Text + " How are you?</h3>"; } </script> <asp:Content ID="Content1" runat="server" contentplaceholderid="cphLeft"> <form id="form1" runat="server"> <asp:Label ID="lblName" runat="server" Text=""></asp:Label> <asp:TextBox ID="txtName" runat="server"></asp:TextBox> <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" /> </form> </asp:Content> <asp:Content ID="Content2" runat="server" contentplaceholderid="cphRitht"> <span id="lblHello" runat="server">Hello! How are you?</span> <h3>Title of MasterPage <%= Master.MasterPageHeadingTitle %></h3> </asp:Content> vc tc ge bl Content-Page dks Run djrs gSa] rks bl ckj gesa gekjk Output fuEukuqlkj fn[kkbZ nsrk gS%

46

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

tgka ge Master-Page esa Set fd, x, MasterPageHeadingTitle uke dh Property esa Stored eku dks Content Area esa ns[k ldrs gSa vkSj ge bl Content-Page esa Master-Page dh Property dks blfy, ns[k ik jgs gSa D;ksafd geus gekjs Content-Page esa fuEukuqlkj Markup Specify fd;k gS%

<h3>Title of MasterPage <%= Master.MasterPageHeadingTitle %></h3> ftlesa Master Object Master-Page dks Represent djrk gS vkSj bl Master-Page Object esa Defined Property dks Content-Page esa Access djus ds fy, ge bldh MasterPageHeadingTitle Property dks Access dj ldrs gSaA ysfdu Content-Page esa ge Master-Page esa Defined fdlh Property dks rHkh Access dj ldrs gSa] tcfd geus gekjs Content-Page esa fuEukuqlkj MasterType Directive Statement ds ek/;e ls bl ckr dks Specify fd;k gks] fd ge Master-Page ds fdl Type dks Content-Page esa Access djuk pkgrs gSa vkSj ml Master-Page dk uke o Location D;k gS% <%@ MasterType VirtualPath="~/MasterPage.master" %> ftl rjg ls geus mijksDr Example esa Master-Page dh Property dks Content-Page esa Access fd;k gS] Bhd mlh rjg ls ge Master-Page esa Defined fdlh Public Method o Data Members dks Hkh Access dj ldrs gSaA fiNys Section ds Example esa geus Master-Page ds Control dks Content-Page esa Access djus ds fy, FindControl() Method dks Use fd;k FkkA gkykafd og Method Normal rjhds ls dke djrs gq, Output Provide dj jgk Fkk] ysfdu ml Approach dh ,d deh ;s gS fd og Late-Bound Approach Use djrk gS] blfy, ;s Method ml fLFkfr esa Fail gks tkrk gS] tc ge gekjs Markup dks vius Page ls Remove dj nsrs gSaA

47

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

blfy, Defensive Coding Practice dks Follow djrs gq, gesa gesa”kk FindControl }kjk Return gksus okyh Value dks null ls Compare djuk t:jh gksrk gS] rkfd ge bl ckr dks fuf”pr dj ldsa fd ftl Master-Page Control dks ge Content-Page ij Access djuk pkgrs gSa] og Master-Page ij Exist gSA ysfdu bl rjhds ds LFkku ij ge ,d vkSj Alternative rjhdk Use dj ldrs gSa] tks fd Master-Page ds Server Control dks Content-Page ij Access o Manipulate dj ldrs gSaA bl rjhds ds vUrxZr ge lkekU;r% Server Control dks ,d Public Property dh rjg Expose dj nsrs gSa] ftUgsa Content-Page Bhd mlh rjg ls Access o Manipulate djus esa l{ke gks tkrk gS] ftl izdkj ls fiNys Example esa geus Master-Page dh Property dks Content-Page ij Use fd;k gSA bls le>us ds fy, ge gekjs Master-Page dks fuEukuqlkj Modify dj ldrs gSa%

File Name: MasterPage.master <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> <!DOCTYPE html> <script runat="server"> public Label MasterPageLabel { get { return lblGUID; } set { lblGUID = value; } } protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { lblGUID.Text = System.Guid.NewGuid().ToString(); } } </script> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>BccFalna.com: Master Page</title> </head> <body> <table style="width: 100%;" border="1">

48

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

<tr> <td colspan="2" style="background: #efefef;"> <h1>BccFalna.com</h1> <h4>TechTalks in Hindi</h4> <b>User's ID: </b> <asp:Label ID="lblGUID" runat="server" Text=""></asp:Label> </td> </tr> <tr> <td style="height: 100px;"> <asp:ContentPlaceHolder ID="cphLeft" runat="server"> </asp:ContentPlaceHolder> </td> <td> <asp:ContentPlaceHolder ID="cphRitht" runat="server"> </asp:ContentPlaceHolder> </td> </tr> <tr> <td colspan="2" style="background: #efefef;"> <h4>Copyright: 2015</h4> </td> </tr> </table> </body> </html> bl Master-Page esa geus lblGUID uke dk tks Label Control Create fd;k gS] ml Control dks ,d Public Property dh rjg Accessible cukus ds fy, geus fuEukuqlkj Code Specify fd;k gS% public Label MasterPageLabel { get { return lblGUID; } set { lblGUID = value; } }

49

www.BccFalna.com

AdvAnce ASP.neT WebFormS WiTh c# in hindi

ifj.kkeLo:i vc ge MasterPageLabel uke dh Property ds ek/;e ls Master-Page esa Specified lblGUID Label Control dks fdlh Hkh Content-Page esa Access o Manipulate djus ds fy, MasterPageLabel Property dks Bhd mlh rjg ls Use ldrs gSa] ftl rjg ls lblGUID Control dks Use djrs gSa] D;ksafd okLro esa lblGUID dk Reference gh MasterPageLabel Property esa Store gks tkrk gSA bls le>us ds fy, ge gekjs Content-Page dks fuEukuqlkj Modify dj ldrs gSa%

File Name: Default.aspx <%@ Page Title="Content Page" Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <%@ MasterType VirtualPath="~/MasterPage.master" %> <script runat="server"> protected void btnSubmit_Click(object sender, EventArgs e) { lblHello.InnerHtml = "<h3>Hello! " + txtName.Text + " How are you?</h3>"; } </script> <asp:Content ID="Content1" runat="server" contentplaceholderid="cphLeft"> <form id="form1" runat="server"> <asp:Label ID="lblName" runat="server" Text=""></asp:Label> <asp:TextBox ID="txtName" runat="server"></asp:TextBox> <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" /> </form> </asp:Content> <asp:Content ID="Content2" runat="server" contentplaceholderid="cphRitht"> <span id="lblHello" runat="server">Hello! How are you?</span> <h3>GUID of MasterPage: <%= Master.MasterPageLabel.Text %></h3> </asp:Content> tc ge bl Modified Page dks Run djrs gSa] rks gesa fuEukuqlkj Output Page izkIr gksrk gS] tgka Master-Page ij fLFkr lblGUID Label Control dh Text Property esa Stored GUID dks Master.MasterPageLabel.Text Statement ds ek/;e ls Access djrs gq, Content-Page esa Render fd;k x;k gS%

How to Get Complete PDF EBook आप Online Order करके Online या Offline Payment करते हुए इस Complete EBook को तुरन् त

Download कर सकते हैं।

Order करने और पुस् तक को Online/Offline Payment करते हुए खरीदने की पूरी प्रक्रिया की क्रिस् तृत नानकारी प्रा‍ त

करने के क्रिए आप BccFalna.com के क्रनम् न Menu Options को Check Visit कर सकते हैं।

How to Make Order How to Order?

How to Buy Online How to Pay Online using PayUMoney

How to Pay Online using Instamojo

How to Pay Online using CCAvenue

How to Buy Offline How to Pay Offline

Bank A/c Details

नक्र‍ क हरारे Old Buyers के Reviews भी देख सकते हैं ताक्रक आप इस ‍ात का क्रनर्णय िे सकें क्रक हरारे Buyers हरारे

PDF EBooks से क्रकतने Satisfied हैं और यक्रद आप एक से अक्रिक EBooks खरीदते हैं , तो Extra Discount की

Details भी Menubar से प्रा‍ त कर सकते हैं।