tag:blogger.com,1999:blog-3013983863984106982012-03-07T05:06:05.761-08:00Programming & Interview questionsRaghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.comBlogger52125tag:blogger.com,1999:blog-301398386398410698.post-91478909202182051602012-02-19T00:13:00.001-08:002012-03-07T05:06:05.774-08:002012-03-07T05:06:05.774-08:00Assign the null value into the DataRow<div style="font-family: "Courier New",Courier,monospace;">
this code is shown for assigning null values into the<br />
Datarow...<br />
<br /></div>
<div style="background-color: ThreeDFace; border-color: Gray; border-style: dotted;">
<div style="font-family: "Courier New",Courier,monospace;">
<br />
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">DataRow[] rows = dataTable1.Select("EqID = " + Convert.ToInt32(txtEquip.</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">Attributes["EquipId"]));</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">rows[0]["Ph_number"] = string.IsNullOrWhiteSpace(</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">txtPhNumber.Text) ? DBNull.Value : (object)Convert.ToInt32(</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">txtPhNumber.Text);</span></span></div>
</div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-9147890920218205160?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-50019942104425236092012-02-18T23:58:00.000-08:002012-02-18T23:58:27.353-08:002012-02-18T23:58:27.353-08:00Target control with in the update panel<span style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span><span style="color: black; display: inline ! important; float: none; font-family: Arial,'Liberation Sans','DejaVu Sans',sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><br />Move the </span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">ModalPopupExtender </span></span><span style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">to the first update panel:</span><br />
<span style="color: black; display: inline ! important; float: none; font-family: Arial,'Liberation Sans','DejaVu Sans',sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> </span><br />
<div style="background-color: ThreeDFace; border-color: Gray; border-style: dotted;">
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><asp:ImageButton ID="</span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">imgSearch</span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">" runat="server" Width="15px" ImageUrl="~/images/search.png"</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> AlternateText="Select Area" OnClientClick="</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">FileUploadPopup()" /></span><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> </span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> </span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-converted-space"></span></span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> <ajax:ModalPopupExtender ID="mpopArea1" runat="server" OkControlID="imgClose"</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> PopupControlID="</span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">pnlPopUpsearch</span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">" BackgroundCssClass="</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">modalBackground" TargetControlID="imgSearch</span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">"></span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> </ajax:ModalPopupExtender></span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">Panel out side of the update panel</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> <asp:Panel ID="pnlPopUpsearch" runat="server"></span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> <asp:Label ID="lblTest" runat="server" Text="Welcome"></span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> </asp:Label></span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> </span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></asp:Panel></span></span></div>
</div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-5001994210442523609?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-54402896550923388762012-02-18T23:37:00.000-08:002012-02-18T23:37:22.048-08:002012-02-18T23:37:22.048-08:00ValidatorCalloutExtender in asp.net<div style="background-color: ThreeDFace; border-color: Gray; border-style: dotted;">
<span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;"><asp:DropDownList runat="server" ID="</span></span><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">ddlEquipment</span></span><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">" AppendDataBoundItems="true"</span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> class="class1"></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <asp:ListItem Value="-1">--Select Equipment--</asp:ListItem></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </asp:DropDownList></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <asp:RequiredFieldValidator ID="rfv_</span></span><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">Equipment</span></span><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">" runat="server" ControlToValidate="ddlEquipment"</span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> InitialValue="-1" ErrorMessage="Please Select Equipment" Display="None"</span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> ValidationGroup="Request"></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </asp:RequiredFieldValidator></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server" PopupPosition="BottomLeft"</span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> TargetControlID="rfv_Equipment" Width="180px" WarningIconImageUrl="~/images/icon_blue.png"</span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> CssClass="CustomValidatorCalloutStyle"></span></span>
</div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-5440289655092338876?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-91829880894886011892012-02-18T23:33:00.000-08:002012-02-18T23:33:47.716-08:002012-02-18T23:33:47.716-08:00AsyncPostBackTrigger in UpdatePanel<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">Could not find an event named 'OnSelectedIndexChanged' on associated control 'dropdownlist1' for the trigger in UpdatePanel 'UpdatePanel1'...</span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">Use </span></span><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">selectedindexchanged</span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> in the place of </span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">OnSelectedIndexChanged for eventname of </span></span><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">AsyncPostBackTrigger</span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">... </span></span></div>
<div style="background-color: ThreeDFace; border-color: Gray; border-style: dotted;">
<span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;"> <asp:UpdatePanel ID="upnlRestrictedArea" runat="server"></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <ContentTemplate> </span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <asp:Panel ID="pnlResArea" runat="server" Style="display: none" BackColor="#F9F6F4"</span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> Height="350px" Width="380px"></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <div class="PopUpheader"></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <span id="Span1" class="msg">Select Restricted Area</span> <span style="float: right"></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <asp:ImageButton ID="imgClose_resArea" AlternateText="Close" runat="server" ImageUrl="~/images/favicon.ico" /></span></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </div></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <table width="85%" class="cssform"></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <tr></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <td></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> Select Area :</span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </td></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <td></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <asp:DropDownList ID="</span></span><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">ddl</span></span><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">Restricted</span></span><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">" runat="server" AutoPostBack="true" AppendDataBoundItems="true"</span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> OnSelectedIndexChanged="ddlResArea_SelectedIndexChanged"></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <asp:ListItem Text="--Select Area--" Value="0"></asp:ListItem></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </asp:DropDownList></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </td></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </tr></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </table></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <br /></span><span style="font-family: "Courier New",Courier,monospace;"> </span><span style="font-family: "Courier New",Courier,monospace;"></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </asp:Panel></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </ContentTemplate></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <Triggers></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <asp:AsyncPostBackTrigger ControlID="ddl</span></span><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">Restricted</span></span><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">" EventName="selectedindexchanged" /></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </Triggers></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </asp:UpdatePanel></span></span>
</div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-9182988089488601189?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-6079178514734033472012-02-16T10:26:00.000-08:002012-02-16T10:26:41.395-08:002012-02-16T10:26:41.395-08:00Get the values from devexpress Gridview in asp.net<div style="background-color: ThreeDFace; border-color: Gray; border-style: dotted;">
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">protected void grvUserDetails_</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">RowCommand(object sender, ASPxGridViewRowCommandEventArg</span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">s e)</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> {</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> if (e.CommandArgs.CommandName == "Remove")</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> {</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> int noOfSelectedRequests = </span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">grvUserDetails</span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">.</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">FocusedRowIndex;</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> int id = Convert.ToInt32(e.CommandArgs.</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">CommandArgument.ToString());</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> var varSitename = </span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">grvUserDetails</span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">.GetRowValues(</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">e.VisibleIndex, "FirstName");</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> var objValres = </span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">grvUserDetails</span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">GetRowValues(</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">e.VisibleIndex, "AreaId");</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> var objVal1 = </span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">grvUserDetails</span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">.GetRowValues(</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">e.VisibleIndex, "Id");</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> </span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> }</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> }</span></span></div>
</div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-607917851473403347?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-36122138890067141002012-02-16T10:09:00.000-08:002012-02-16T10:09:10.005-08:002012-02-16T10:09:10.005-08:00Row Index with in the Data Table in asp.net<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> foreach (DataRow drow in dtbl.Rows)</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> {</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> int irow = dtbl.Rows.IndexOf(drow);</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> DevExpress.Web.ASPxEditors.</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">ASPxCheckBox chkIsolated = (DevExpress.Web.ASPxEditors.</span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">ASPxCheckBox)</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">Aspxgrid2.</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">FindRowCellTemplateControl(</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">irow, null, "chkIso");</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> if (chkIsolated.Checked == true)</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> {</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> drow["isIsolate"] = true;</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> } <span class="Apple-converted-space"> </span></span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">}</span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<br /></div>
<div style="font-family: "Courier New",Courier,monospace;">
<br /></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">In the above Example also described about Checkbox list of devexpress with in the devexpress gridview in asp.net</span></span></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-3612213889006714100?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-35715521671984554772012-02-16T10:03:00.000-08:002012-02-19T00:16:21.442-08:002012-02-19T00:16:21.442-08:00Checkboxlist Checked Event Client Side Using JavaScript<div style="background-color: ThreeDFace; border-color: Gray; border-style: dotted;">
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><script type="text/javascript"> </span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">function CheckBoxChecked(ChkID) {</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> var status = false;</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> var CheckBoxID = document.getElementById('<%=</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">chkHvecYes.ClientID%>');</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> if (CheckBoxID.checked == true){</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> status=true;</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> return status;}</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> else {</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> alert('Please Select CheckBox');</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> return status;</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> }</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> }</span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">//</span><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">chkHvecYes is checkboxlist Id</span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">function SeletedTab() { <br /> var checkBoxArray = document.getElementById('<%=chkIso_action.ClientID%>').getElementsByTagName('input'); <br /> var checkBoxRef = checkBoxArray[5]; // for 7th Item in the checkboxlist </span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> if (checkBoxRef.checked) {</span></span><br />
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">document.getElementById('plock').style.</span><span style="color: black; display: inline ! important; float: none; font-family: "Courier New",Courier,monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">display<span class="Apple-converted-space"> </span></span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">= "block";</span></span><br /><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> document.getElementById('plock').style.visibility = "visible";<br /> }<br /><br />else<br /> document.getElementById('plock').style.</span><span style="color: black; display: inline ! important; float: none; font-family: "Courier New",Courier,monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">display<span class="Apple-converted-space"> </span></span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">= "none";</span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">document.getElementById('plock').style.visibility = "hidden";</span></span><br /><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> <br /> }</span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> </span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"></script></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><p id="<span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">plock</span>"></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"> Checkboxlist Checked Event or Onclick Client Side Using JavaScript</span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"></p> </span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><asp:CheckBoxList ID="<span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">chkIso_action" runat="server"</span> onclick="<span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">SeletedTab() "></span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><asp:ListItem Text="Test1" Value="0"></span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><asp:ListItem Text="Test1" Value="1"></span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><asp:ListItem Text="Test1" Value="2"></span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><asp:ListItem Text="Test1" Value="3"></span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><asp:ListItem Text="Test1" Value="4"></span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><asp:ListItem Text="Test1" Value="5"></span><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> </span><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> </span><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> </span><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> </span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></asp:</span>CheckBoxList ><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><asp:Button runat="server" Text="Submit" ID="btnHSubmit" OnClientClick="</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">CheckBoxChecked(this)"</span><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">></span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></asp:Button></span></span></div>
</div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-3571552167198455477?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-31375194391889446162012-02-12T06:39:00.000-08:002012-02-12T06:39:01.089-08:002012-02-12T06:39:01.089-08:00OutPut Cache in asp.net<div style="border-style:dotted;border-color:Gray;background-color:ThreeDFace"><div style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;">Setting OutPut Cache in asp.net</span></div><div style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"><br />
</span></div><span style="font-family: "Courier New",Courier,monospace; font-size: small;"><%@ OutputCache Duration="20" VaryByParam="none" %> //Created in Web User Control</span><br />
</div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-3137519439188944616?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-17907432924935586332012-02-12T05:57:00.000-08:002012-02-12T06:07:46.114-08:002012-02-12T06:07:46.114-08:00Char[] Array in asp.net<div style="font-family: "Courier New",Courier,monospace;border-style:dotted;border-color:Gray;background-color:ThreeDFace"><span style="font-size: small;"> char[] arrayInString = "for testing characters";<br />
int icnt = arrayInString.Length;</span> //getting Character array length<br />
</div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-1790743292493558633?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-45001727054157918452012-02-10T09:58:00.000-08:002012-02-12T06:08:44.485-08:002012-02-12T06:08:44.485-08:00Generate Controls Dynamically and adding to the page in asp.net<div style="font-family: "Courier New",Courier,monospace;">Getting data from database and generate controls based on table(database) columns and rows, generate label and textbox controls with in a html table dynamically and added to the Page in asp.net..... </div><div style="font-family: "Courier New",Courier,monospace;"><br />
</div><div style="font-family: "Courier New",Courier,monospace;border-style:dotted;border-color:Gray;background-color:ThreeDFace">private void getallowance()<br />
{<br />
DataTable dt = BLayer.getAllowColumns();<br />
if (dt.Rows.Count > 0)<br />
{<br />
//HtmlTableRow htr = new HtmlTableRow();<br />
<br />
Table tbl = new Table();<br />
tbl.ID = "table1";<br />
Page.Form.Controls.Add(tbl);<br />
foreach (DataRow dr in dt.Rows)<br />
{<br />
Label lbl = new Label();<br />
HtmlTableRow htr = new HtmlTableRow();<br />
HtmlTableCell htc = new HtmlTableCell();<br />
//htc.ColSpan = 2;<br />
for (int irow = 0; irow < 6; irow++)<br />
{<br />
htc = new HtmlTableCell();<br />
<br />
<br />
<br />
string strcolname = dr["columnname"].ToString();<br />
string[] strtestcol = strcolname.Split("_".ToCharArray());<br />
<br />
<br />
if (strtestcol.Length <= 1)<br />
{<br />
if (strcolname.ToUpper() == "CUG" || strcolname.ToUpper() == "TDS" || strcolname.ToUpper() == "LOAN")<br />
{<br />
if (irow == 4)<br />
{<br />
lbl.ID = "lbl" + strcolname;<br />
lbl.Text = dr["Heading"].ToString();<br />
htc.Controls.Add(lbl);<br />
htc.Width = "265";<br />
}<br />
if (irow == 5)<br />
{<br />
TextBox TextBox1 = new TextBox();<br />
TextBox1.ID = "txt" + strcolname;<br />
TextBox1.CssClass = "formstyle01";<br />
TextBox1.Enabled = false;<br />
TextBox1.Font.Bold = true;<br />
TextBox1.Text = string.Empty;<br />
TextBox1.Style.Add("text-align", "right");<br />
htc.Controls.Add(TextBox1);<br />
htc.Width = "150";<br />
}<br />
<br />
htr.Cells.Add(htc);<br />
tblcolded.Rows.Add(htr);<br />
}<br />
}<br />
else<br />
{<br />
//htr = new HtmlTableRow();<br />
if (irow == 2)<br />
{<br />
htc.Style["bgcolor"] = "#807d7d";<br />
//htc.Controls.Add(cell);<br />
}<br />
if (irow == 3)<br />
{<br />
<br />
//row.Style["bgcolor"] = "#807d7d";<br />
//htc.Controls.Add(row);<br />
}<br />
if (strtestcol[1].ToString() == "a")<br />
{<br />
if (irow == 0)<br />
{<br />
lbl.ID = "lbl" + strcolname;<br />
lbl.Text = dr["Heading"].ToString();<br />
htc.Controls.Add(lbl);<br />
htc.Width = "265";<br />
}<br />
if (irow == 1)<br />
{<br />
TextBox TextBox1 = new TextBox();<br />
TextBox1.ID = "txt" + strcolname;<br />
TextBox1.CssClass = "formstyle01";<br />
TextBox1.Enabled = false;<br />
TextBox1.Font.Bold = true;<br />
TextBox1.Text = string.Empty;<br />
TextBox1.Style.Add("text-align", "right");<br />
htc.Controls.Add(TextBox1);<br />
//htr.Cells.Add(htc);<br />
htc.Width = "150";<br />
htc.VAlign = "middle";<br />
htc.Align = "left"; <br />
}<br />
htr.Cells.Add(htc);<br />
htr.VAlign = "top";<br />
tblcol.Rows.Add(htr);<br />
<br />
}<br />
else if (strtestcol[1].ToString() == "d")<br />
{<br />
if (irow == 4)<br />
{<br />
//Label lbl = new Label();<br />
lbl.ID = "lbl" + strcolname;<br />
lbl.Text = dr["Heading"].ToString();<br />
htc.Controls.Add(lbl);<br />
htc.Width = "265";<br />
}<br />
if (irow == 5)<br />
{<br />
TextBox TextBox1 = new TextBox();<br />
TextBox1.ID = "txt" + strcolname;<br />
TextBox1.CssClass = "formstyle01";<br />
TextBox1.Enabled = false;<br />
TextBox1.Font.Bold = true;<br />
<br />
TextBox1.Style.Add("text-align", "right");<br />
TextBox1.Text = string.Empty;<br />
htc.Controls.Add(TextBox1);<br />
//htr.Cells.Add(htc);<br />
htc.Width = "150";<br />
//tblcol.Rows.Add(htr);<br />
}<br />
<br />
htr.Cells.Add(htc);<br />
//tblcol.Rows.Add(htr);<br />
tblcolded.Rows.Add(htr);<br />
}<br />
} <br />
<br />
} <br />
<br />
}<br />
<br />
}<br />
<br />
}</div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-4500172705415791845?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-88869872346549056792012-02-10T09:52:00.000-08:002012-02-12T06:10:56.895-08:002012-02-12T06:10:56.895-08:00Javascript Event for RadioButton in asp.net<div style="font-family: "Courier New",Courier,monospace;"><br />
</div><div style="border-style:dotted;border-color:Gray;background-color:ThreeDFace"><div style="font-family: "Courier New",Courier,monospace;"><script language="javascript" type="text/javascript"></div><div style="font-family: "Courier New",Courier,monospace;"> function RadioPermit(ID) {<br />
document.getElementById('<%=txtEndDate.ClientID%>').disabled = !document.getElementById(ID).checked;<br />
document.getElementById('<%=irblTemp.ClientID%>').checked = !document.getElementById(ID).checked;<br />
}</div><span style="font-family: "Courier New",Courier,monospace;"></script></span><br />
<div style="font-family: "Courier New",Courier,monospace;"><br />
</div><div style="font-family: "Courier New",Courier,monospace;"><input type="radio" runat="server" id="irblPermit" class="rbNormal" name="Permit" onclick="RadioPermit(this.id);" /></div><div style="font-family: "Courier New",Courier,monospace;"><br />
</div><div style="font-family: "Courier New",Courier,monospace;"><asp:TextBox ID="txtEndDate" Enabled="false" runat="server" CssClass="txNormal" onkeypress="return false;"></asp:TextBox> </div><div style="font-family: "Courier New",Courier,monospace;"><input type="radio" runat="server" id="irblTemp" class="rbNormal" checked="true" /></div></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-8886987234654905679?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-49902153923976689652012-02-10T09:45:00.000-08:002012-02-12T06:13:09.152-08:002012-02-12T06:13:09.152-08:00Themes in asp.netCreating themes / skin file in a folder <b>App_Themes ,Extension for themes /Skin is<span style="font-size: small;"> :</span></b><span style="color: black; display: inline ! important; float: none; font-family: 'Segoe UI',Verdana,Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;"> <u><i>.skin</i></u></span></span><span class="Apple-converted-space"><br />
</span></span><br />
<br />
<div style="border-style:dotted;border-color:Gray;background-color:ThreeDFace"><div style="font-family: "Courier New",Courier,monospace;"><asp:GridView SkinID="GridView<span style="font-family: "Courier New",Courier,monospace;">Skin</span>" runat="server" CssClass="gridview" ><br />
<AlternatingRowStyle CssClass="grdalt" /><br />
<PagerStyle CssClass="grdpgr" /><br />
</asp:GridView></div><div style="font-family: "Courier New",Courier,monospace;"><br />
</div><span style="font-family: "Courier New",Courier,monospace;"><asp:Calendar width="250" DayStyle-Width="34" DayStyle-Height="15" runat="server" </span><br />
<span style="font-family: "Courier New",Courier,monospace;"> CellPadding="0" CellSpacing="0" FirstDayOfWeek="Monday" ShowGridLines="True"</span><br />
<span style="font-family: "Courier New",Courier,monospace;"> DayStyle-BackColor="#F99B98" DayStyle-ForeColor="Black" DayStyle-Font-Names="Arial"</span><br />
<span style="font-family: "Courier New",Courier,monospace;"> NextPrevFormat="ShortMonth" SkinID="CalendarSkin"</span><br />
<span style="font-family: "Courier New",Courier,monospace;"> SelectionMode="None"></span><br />
<span style="font-family: "Courier New",Courier,monospace;"> <DayHeaderStyle BackColor="Black" Font-Names="Arial" ForeColor="White" Font-Size="9pt" /> </span><br />
<span style="font-family: "Courier New",Courier,monospace;"> <DayStyle Font-Names="Arial" ForeColor="Black" Font-Size="9pt"></span><br />
<span style="font-family: "Courier New",Courier,monospace;"> </DayStyle></span><br />
<span style="font-family: "Courier New",Courier,monospace;"> <TitleStyle BackColor="Gray" Font-Names="Arial" ForeColor="White" HorizontalAlign="Center" /></span><br />
<span style="font-family: "Courier New",Courier,monospace;"></asp:Calendar></span><br />
<br />
<span style="font-family: "Courier New",Courier,monospace;"><asp:TextBox SkinID="textbox</span><span style="font-family: "Courier New",Courier,monospace;">Skin"</span><span style="font-family: "Courier New",Courier,monospace;"> CssClass="styleNormal" Width="180px"></asp:TextBox></span><br />
</div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-4990215392397668965?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-33992800890658406922012-02-10T09:34:00.000-08:002012-02-12T06:13:29.956-08:002012-02-12T06:13:29.956-08:00RowDataBound in gridview<div style="border-style:dotted;border-color:Gray;background-color:ThreeDFace"><div style="font-family: "Courier New",Courier,monospace;">protected void grvdata_RowDataBound(object sender, GridViewRowEventArgs e)<br />
{<br />
try<br />
{<br />
<br />
if (Session["user"] == null)<br />
{<br />
Response.Redirect("../login.aspx");<br />
}<br />
else<br />
{<br />
if (e.Row.RowType == DataControlRowType.DataRow)<br />
{<br />
DataRow dr = ((DataRowView)e.Row.DataItem).Row;<br />
string applictnno = dr["applictnno"].ToString();<br />
string Plotno= dr["Plotno"].ToString();<br />
((HyperLink)e.Row.FindControl("linkforallexec")).NavigateUrl = string.Format("~/pages/Executive.aspx?Plotno={0}", Plotno+ "&&applicationno="+ applictnno); // navigate from one page to another page through using query string<br />
}<br />
}<br />
}<br />
catch (Exception)<br />
{<br />
<br />
throw;<br />
}<br />
}</div></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-3399280089065840692?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-64964653845622000412012-02-10T09:28:00.000-08:002012-02-12T06:13:49.854-08:002012-02-12T06:13:49.854-08:00Onkeypress for textbox in asp.net<div style="border-style:dotted;border-color:Gray;background-color:ThreeDFace"><div style="font-family: "Courier New",Courier,monospace;">protected void Page_Load(object sender, EventArgs e)<br />
{<br />
txtdate.Attributes.Add("onkeypress", "return false;");<br />
}</div></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-6496465384562200041?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-70372726935760718642012-02-10T09:26:00.000-08:002012-02-12T06:14:22.580-08:002012-02-12T06:14:22.580-08:00Sending Group Emails in asp.net<div style="border-style:dotted;border-color:Gray;background-color:ThreeDFace"><div style="font-family: "Courier New",Courier,monospace;">private void GetApplnumber()<br />
{<br />
if (Session["userData"] == null)<br />
{<br />
string strmsg = "Session has been expire, Please login again to continue";<br />
string stralert = "<script language=javascript>alert('" +strmsg + "');";<br />
stralert += "window.location='../login.aspx'</script>";<br />
Page.RegisterClientScriptBlock("alert", stralert);<br />
}<br />
else<br />
{<br />
user = (User1)Session["userData"];<br />
Executive = user.UserID.ToString();<br />
string applno = string.Empty;<br />
DataSet ds = new DataSet();<br />
ds = BussinessLayer.SendEmail(Executive, applno); //getting data from database throug BussinessLayer<br />
if (ds.Tables[0].Rows.Count > 0)<br />
{<br />
foreach (DataRow dr in ds.Tables[0].Rows)<br />
{<br />
if (dr["Email"].ToString() != string.Empty)<br />
{<br />
Emails = Emails + dr["Email"].ToString() + ";" ;</div><div style="font-family: "Courier New",Courier,monospace;"> }<br />
}<br />
}<br />
}<br />
}</div><div style="font-family: "Courier New",Courier,monospace;"><br />
</div><div style="font-family: "Courier New",Courier,monospace;">//button click</div><div style="font-family: "Courier New",Courier,monospace;"><br />
</div><div style="font-family: "Courier New",Courier,monospace;">protected void btnsend_Click(object sender, EventArgs e)<br />
{<br />
try<br />
{<br />
GetApplnumber();<br />
string id =Emails.ToString();<br />
string[] stremail = id.Split(';');<br />
for (int i = 0; i < stremail.Length - 1; i++)<br />
{<br />
MailMessage mailmm = new MailMessage();<br />
mailmm .From = new MailAddress("abc@def.com");<br />
mailmm .To.Add(new MailAddress(stremail[i].ToString()));<br />
mailmm .Subject = txtsubject.Text;<br />
mailmm .Body = txtbody.Text;<br />
mailmm .IsBodyHtml = true;<br />
SmtpClient client = new SmtpClient();<br />
client.EnableSsl = true;<br />
client.Timeout = 400000;<br />
client.Send(mailmm );<br />
}<br />
<br />
}<br />
catch(SmtpException ex)<br />
{<br />
lblres.Text = ex.ToString();<br />
}<br />
<br />
}</div></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-7037272693576071864?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-58177280455555853802012-02-10T09:15:00.000-08:002012-02-12T06:14:42.875-08:002012-02-12T06:14:42.875-08:00Using Hashtable in asp.net<div style="border-style:dotted;border-color:Gray;background-color:ThreeDFace"><div style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;">Hashtable hlist = new Hashtable();</span></div><div style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;">hlist["applno"] = txtapplicationno.Text;<br />
hlist["Flatno"] = txtflatno.Text;<br />
hlist["Flatstataus"] = ddlflatstatus.SelectedValue;<br />
hlist["Customername"] = txtcname.Text == "" ? string.Empty : txtcname.Text; <b>//ternary operator in asp.net</b><br />
hlist["amount"] = float.Parse(txtreceivedamt.Text);<br />
string dueamt = txtdueamount.Text == "0" ? "0" : txtdueamount.Text; //ternary operator in asp.net</span></div></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-5817728045555585380?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-54479741955497825972012-02-10T08:06:00.000-08:002012-02-12T06:15:20.692-08:002012-02-12T06:15:20.692-08:00File Upload in asp.net<div style="border-style:dotted;border-color:Gray;background-color:ThreeDFace">if (fUpload.PostedFile != null && fUpload.PostedFile.ContentLength > 0)<br />
{<br />
filename = Path.GetFileName(fUpload.PostedFile.FileName);<br />
string extension = Path.GetExtension(filename);<br />
string contentType = fUpload.PostedFile.ContentType;<br />
byte[] document = fUpload.FileBytes; <br />
ScriptManager.RegisterStartupScript(Page, this.GetType(), "Close", "CloseFileUploadPopUp();", true);<br />
}<br />
</div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-5447974195549782597?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-54408933183318358362012-02-10T08:01:00.000-08:002012-02-10T08:01:11.437-08:002012-02-10T08:01:11.437-08:00Get the Content Type of File in asp.net<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-converted-space"><br /></span></span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-converted-space"> </span>Response.ContentType = ReturnExtensions(fileExtn.</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">ToString()); </span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> </span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-converted-space">//here </span></span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">fileExtn is string it may be </span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">.txt / </span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">.html /</span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">.avi etc...</span></span></div>
<div style="font-family: "Courier New",Courier,monospace;">
<span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> private string ReturnExtensions(string fileExtensions)<br /> {<br /> switch (fileExtensions)<br /> {<br /> case ".htm":<br /> case ".html":<br /> case ".log":<br /> return "text/HTML";<br /> case ".txt":<br /> return "text/plain";<br /> case ".doc":<br /> return "application/ms-word";<br /> case ".tiff":<br /> case ".tif":<br /> return "image/tiff";<br /> case ".asf":<br /> return "video/x-ms-asf";<br /> case ".avi":<br /> return "video/avi";<br /> case ".zip":<br /> return "application/zip";<br /> case ".xls":<br /> case ".csv":<br /> return "application/vnd.ms-excel";<br /> case ".gif":<br /> return "image/gif";<br /> case ".jpg":<br /> case "jpeg":<br /> return "image/jpeg";<br /> case ".bmp":<br /> return "image/bmp";<br /> case ".wav":<br /> return "audio/wav";<br /> case ".mp3":<br /> return "audio/mpeg3";<br /> case ".mpg":<br /> case "mpeg":<br /> return "video/mpeg";<br /> case ".rtf":<br /> return "application/rtf";<br /> case ".asp":<br /> return "text/asp";<br /> case ".pdf":<br /> return "application/pdf";<br /> case ".fdf":<br /> return "application/vnd.fdf";<br /> case ".ppt":<br /> return "application/mspowerpoint";<br /> case ".dwg":<br /> return "image/vnd.dwg";<br /> case ".msg":<br /> return "application/msoutlook";<br /> case ".xml":<br /> case ".sdxl":<br /> return "application/xml";<br /> case ".xdp":<br /> return "application/vnd.adobe.xdp+xml";<br /> default:<br /> return "application/octet-stream";<br /> }<br /> }</span></span></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-5440893318331835836?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-63273976705094890662012-02-10T07:54:00.000-08:002012-02-12T06:16:17.680-08:002012-02-12T06:16:17.680-08:00DataView in asp.net<div style="border-style:dotted;border-color:Gray;background-color:ThreeDFace"><div style="font-family: "Courier New",Courier,monospace;"><span style="color: black; display: inline ! important; float: none; font-family: arial; font-size: x-small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-converted-space"></span><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">DepartmentsSectionsParameterBu</span></span></span><wbr style="color: black; font-family: "Courier New",Courier,monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-family: "Courier New",Courier,monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">ilder pm1 = new DepartmentsSectionsParameterBu</span></span><wbr style="color: black; font-family: "Courier New",Courier,monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-family: "Courier New",Courier,monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">ilder();</span><br style="color: black; font-family: "Courier New",Courier,monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-family: "Courier New",Courier,monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">pm1.AppendEquals(</span></span><wbr style="color: black; font-family: "Courier New",Courier,monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-family: "Courier New",Courier,monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">DepartmentsColumn.</span></span><wbr style="color: black; font-family: "Courier New",Courier,monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-family: "Courier New",Courier,monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">AssetId, assetId.ToString()); </span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: "Courier New",Courier,monospace;"> </span></span></span></div><div style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">TList<DepartmentsSections> objDeptList = DataRepository.</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">DepartmentsSectionsProvider.</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">Find(pm1.GetParameters());</span> </span></div><div style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;">DataSet dsNode = new DataSet();<br />
if (dsNode != null && dsNode.Tables[0].Count > 0 )</span></div><div style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;">{<br />
dsNode = objDeptList.ToDataSet(true); //--Convert from List to dataset<br />
<b><i style="color: #93c47d;">DataView dv = dsNode.Tables["Departments"].DefaultView;</i></b></span></div><div style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;">dv.RowFilter = "SectionName='Section1'";<br />
}</span></div><br/><br />
</div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-6327397670509489066?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-41177798564233555352012-02-10T07:45:00.000-08:002012-02-12T06:17:33.927-08:002012-02-12T06:17:33.927-08:00ModalPopupExtender in asp.net<div style="border-style:dotted;border-color:Gray;background-color:ThreeDFace"><span style="font-family: "Courier New",Courier,monospace;"> <asp:Button ID="<b><span style="color: #b6d7a8;">btnTest</span></b>" runat="server" Text="Click Here" /></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <ajax:ModalPopupExtender ID="mpopResArea" runat="server" OkControlID="<span style="color: #76a5af;">imgClose_resArea</span>" </span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> PopupControlID="<b><span style="color: #3d85c6;">pnlResArea</span></b>" BackgroundCssClass="modalBackground" TargetControlID="</span><span style="font-family: "Courier New",Courier,monospace;"><b><span style="color: #b6d7a8;">btnTest</span></b></span><span style="font-family: "Courier New",Courier,monospace;">"> </span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </ajax:ModalPopupExtender></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <asp:Panel ID="</span><span style="font-family: "Courier New",Courier,monospace;"><b><span style="color: #3d85c6;">pnlResArea</span></b></span><span style="font-family: "Courier New",Courier,monospace;">" runat="server" style="display:none" BackColor="#F9F6F4" Height="350px" Width="380px" ></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <div class="PopUpheader"></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <span id="Span1" class="msg">Select Restricted Area</span></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <span style="float:right"></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <asp:ImageButton ID="</span><span style="font-family: "Courier New",Courier,monospace;"><span style="color: #76a5af;">imgClose_resArea</span></span><span style="font-family: "Courier New",Courier,monospace;">" AlternateText="Close" runat="server" ImageUrl="~/images/close.gif" /></span></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </div> </span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <table width="85%" class="cssform"></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <tr> </span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <td></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> Select Area :</span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </td> </span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <td></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <asp:DropDownList ID="ddlResArea" runat="server" AutoPostBack="true" AppendDataBoundItems="true" onselectedindexchanged="ddlResArea_SelectedIndexChanged"></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <asp:ListItem Text="--Select Area--" Value="0"></asp:ListItem></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </asp:DropDownList> </span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </td></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </tr></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </table></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <br /> </span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <center></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <dx:ASPxGridView ID="grvResarea_aspx" AutoGenerateColumns="False" KeyFieldName="Id;RestrictedAreaId" runat="server" </span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> OnRowCommand="grvResarea_aspx_RowCommand"></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <Columns> </span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <dx:GridViewDataTextColumn Caption="ID" FieldName="Id" Visible="false"></dx:GridViewDataTextColumn> </span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <dx:GridViewDataColumn Caption="Select"></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <DataItemTemplate></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <asp:LinkButton ID="LinkButton1" runat="server" Text="Select" CommandName="Select" CommandArgument='<%# Eval("Id") %>'></asp:LinkButton> </span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </DataItemTemplate></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </dx:GridViewDataColumn> </span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <dx:GridViewDataTextColumn Caption="Restricted AreaID" VisibleIndex="2" FieldName="RestrictedAreaId"></dx:GridViewDataTextColumn></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> <dx:GridViewDataTextColumn Caption="Site Name" VisibleIndex="3" FieldName="SiteName"></dx:GridViewDataTextColumn></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </Columns> </span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </dx:ASPxGridView></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </center></span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;"> </asp:Panel></span><p></P></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-4117779856423355535?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-87577738909277908422012-02-10T07:17:00.000-08:002012-02-12T06:18:21.351-08:002012-02-12T06:18:21.351-08:00Bindable Property for User Control<div style="border-style:dotted;border-color:Gray;background-color:ThreeDFace"><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;">public string empName="";</span></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><br />
</div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;">//</span><span style="font-size: small;">This property</span><span style="font-size: small;"> Makes bindable.</span></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;">[System.ComponentModel.Bindable(true)] </span></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;">public string employeeName</span></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;">{</span></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"> get</span></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"> {</span></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"> return empName;</span></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"> }</span></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"> set</span></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"> {</span></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"> empName=value;</span></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"> this.txtName.Text = empName.ToString();</span></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"> }</span></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;">}</span></div><p></p></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-8757773890927790842?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-260365549319317322012-02-10T07:03:00.000-08:002012-02-12T06:18:56.626-08:002012-02-12T06:18:56.626-08:00Convert the time to 24hr format in asp.net<div style="border-style:dotted;border-color:Gray;background-color:ThreeDFace"><div style="font-family: "Courier New",Courier,monospace;"></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><span style="color: black;">string[] strSTime =Convert.ToDateTime(Convert.</span><wbr style="color: black; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">ToDateTime(dview[0]["</span><wbr style="color: black; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">StartDtTime"]).</span><wbr style="color: black; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">ToShortTimeString()).ToString(</span><wbr style="color: black; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">"H:mm").Split(":".ToCharArray(</span><wbr style="color: black; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">));</span><b>--Here dview means dataview</b><br />
<br />
<span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">txtSDate.Text = Convert.ToDateTime(</span><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">Convert.ToDateTime</span><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">(txtDate.Text)</span><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">.ToShortDateString(</span><wbr style="color: black; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">)).ToString("dd/MM/yyyy");</span><b>--Converting date into dd/MM/yyyy format</b><br />
<br />
<span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">rbl_test.SelectedValue = </span><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">dview</span><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">[0]["IsolationType"] == true ? "1" : "2";</span><br />
<br />
<br />
<span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">TimeSpan ts;</span><br />
<span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">ts = Convert.ToDateTime(</span><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">Convert.ToDateTime(</span><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">dview</span><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">[</span><wbr style="color: black; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">0]["FinishDtTime"]).</span><wbr style="color: black; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">ToShortDateString()) - Convert.ToDateTime(</span><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">Convert.ToDateTime(</span><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">dview</span><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">[</span><wbr style="color: black; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">0]["FromDate"]).ToShortDateString(</span><wbr style="color: black; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="float: none; orphans: 2; widows: 2; word-spacing: 0px;">));</span><b>--Calculating days using timespan in asp.net</b></div><p></p></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-26036554931931732?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-12034664599967750052012-02-08T10:10:00.000-08:002012-02-12T06:19:31.581-08:002012-02-12T06:19:31.581-08:00Scrollbar in gridview<div style="border-style:dotted;border-color:Gray;background-color:ThreeDFace"><div style="font-family: "Courier New",Courier,monospace;"><b><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">For Scrollbar in devexpress gridview.</span></span></b><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> </span></span></div><div style="font-family: "Courier New",Courier,monospace;"><br />
</div><div style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><dx:ASPxGridView ID="gvSearch" runat="server" Width="98%" OnRowCommand="</span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">gvSearch</span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">_</span></span><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">RowCommand"</span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> KeyFieldName="ID" SettingsBehavior-AllowSort="</span></span></div><div style="font-family: "Courier New",Courier,monospace;"><wbr style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></wbr><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">false" SettingsPager-Visible="false"></span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> <Settings ShowVerticalScrollBar="true" </span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">ShowHorizontalScrollBar="true"</span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> /></span></span></div><div style="font-family: "Courier New",Courier,monospace;"><br />
</div><div style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><br />
</span></span></div><p></p></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-1203466459996775005?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-52765964243137960232012-02-08T10:07:00.000-08:002012-02-12T06:21:57.600-08:002012-02-12T06:21:57.600-08:00DBCC CHECKIDENT<div style="font-family: "Courier New",Courier,monospace;"></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"><span style="background: none repeat scroll 0% 0% white; color: #333333; line-height: 115%;">We can find the current identity seed by using<span class="apple-converted-space"> </span></span><u><span class="codeblue"><span style="orphans: 2; widows: 2; word-spacing: 0px;"><span style="background: none repeat scroll 0% 0% white; line-height: 115%;">DBCC</span></span></span></u><span class="codeblack"><span style="color: black;"> </span></span><span class="codeblack"><span style="background: none repeat scroll 0% 0% white; color: black; line-height: 115%;">checkident</span></span><span class="apple-converted-space"><span style="background: none repeat scroll 0% 0% white; color: black; line-height: 115%;"></span><b><span style="background: none repeat scroll 0% 0% white; color: black; line-height: 115%;"> </span></b></span><span class="codeblack"><span style="background: none repeat scroll 0% 0% white; color: black; line-height: 115%;">.</span></span></span></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><br />
</div><br />
<div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"><span class="codeblack"><span style="background: none repeat scroll 0% 0% white; color: black; line-height: 115%;">DBCC checkident (#a)</span></span></span></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"><span class="codeblack"><span style="background: none repeat scroll 0% 0% white; color: black; line-height: 115%;">if we execute above query than we will find like below:<br />
Checking identity information: current identity value 'some number', current column value '</span></span></span><span style="font-size: small;"><span class="codeblack"><span style="background: none repeat scroll 0% 0% white; color: black; line-height: 115%;">some number</span></span></span><span style="font-size: small;"><span class="codeblack"><span style="background: none repeat scroll 0% 0% white; color: black; line-height: 115%;">'. </span></span></span></div><div style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span></span></div><div style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><br style="color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><br />
<br />
<span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">DBCC CHECKIDENT ('tablename', 'RESEED', rowid)</span></span></div><div style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">Ex:DBCC CHECKIDENT ('IC_Request', 'RESEED', 2)</span></span></div><div style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> </span></span><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> </span></span></div><div style="font-family: "Courier New",Courier,monospace;"></div><div style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"><b><span style="color: black;">'</span><span style="color: black;">table_name</span></b><b><span style="color: black;">'</span></b><i><span style="color: black;"></span></i></span></div><div class="indent" style="font-family: "Courier New",Courier,monospace; orphans: 2; widows: 2; word-spacing: 0px;"><span style="font-size: small;"><i><span style="color: black;">It Is the name of the table for which to check the current identity value .</span></i></span></div><div class="indent" style="font-family: "Courier New",Courier,monospace;"><b><span style="font-size: small;"><span style="color: black;">RESEED</span></span></b></div><div class="indent" style="font-family: "Courier New",Courier,monospace; orphans: 2; widows: 2; word-spacing: 0px;"><span style="font-size: small;"><i><span style="color: black;">Specifies that the current identity value should be corrected.</span></i></span></div><div style="font-family: "Courier New",Courier,monospace;"><br />
</div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-5276596424313796023?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0tag:blogger.com,1999:blog-301398386398410698.post-67321705912513576202012-02-08T09:47:00.000-08:002012-02-12T06:22:31.986-08:002012-02-12T06:22:31.986-08:00Shortcut Keys in Visual Studio<div style="border-style:dotted;border-color:Gray;background-color:ThreeDFace"><span style="font-size: small;"><span style="color: black; display: inline ! important; float: none; font-family: "Courier New",Courier,monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">Ctrl + M + M --expand,minimize for single</span><span style="font-family: "Courier New",Courier,monospace;"> </span><span style="color: black; display: inline ! important; float: none; font-family: "Courier New",Courier,monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">methods / events</span><br style="color: black; font-family: "Courier New",Courier,monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><br style="color: black; font-family: "Courier New",Courier,monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" /><span style="color: black; display: inline ! important; float: none; font-family: "Courier New",Courier,monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">Ctrl + M + O -- minimize for all</span><span style="font-family: "Courier New",Courier,monospace;"> </span><span style="color: black; display: inline ! important; float: none; font-family: "Courier New",Courier,monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">methods / events</span></span><span style="color: black; display: inline ! important; float: none; font-family: arial; font-size: x-small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">Ctrl + M + L -- expand for all methods / events</span></span></span><br />
</div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/301398386398410698-6732170591251357620?l=htmltipsforu.blogspot.com' alt='' /></div>Raghavahttp://www.blogger.com/profile/16285528876169698911noreply@blogger.com0