15,891,136 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by kumar2233 (Top 46 by date)
kumar2233
22-Apr-16 10:25am
View
It is like a facebook requirement .
kumar2233
22-Apr-16 10:25am
View
It is like a facebook requirement .
kumar2233
22-Apr-16 10:25am
View
In facebook once we click on globe button all the latest messages appear on the screen. I want that requirement .
kumar2233
22-Apr-16 10:24am
View
In facebook once we click on globe button all the latest messages appear on the screen. I want that requirement. For references can you share me few links.
kumar2233
15-Apr-16 7:58am
View
For the 1st time im getting value id and again select 2nd row im not getting grid id.
kumar2233
15-Apr-16 7:56am
View
function GetSelectedRow(row) {
$.ajax({
type: "POST",
url: "AdminInitiateCollection.aspx/GetCollectionAreas",
data: '{}',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: OnSuccess,
failure: function (response) {
//alert(response.d);
}
});
function OnSuccess(response) {
//var chkOption1 = $(this);
//var grid = $(this).closest("table");
var dtcollection = response.d;
var ddCollection = dtcollection.split(",");
var rowData = row.parentNode.parentNode;
var rowIndex = rowData.rowIndex;
// var grid = document.getElementById('ctl00_ContentPlaceHolder1_gvInitiateCollection');
var $ctrls = $("#ctl00_ContentPlaceHolder1_gvInitiateCollection tr:eq(" + rowIndex + ") input[id*=cbCollectFor]");
debugger;
for (var i = 0; i < ddCollection.length; i++) {
var isChecked = $("#ctl00_ContentPlaceHolder1_gvInitiateCollection tr input[id*='chkOption1']").is(":checked");
if (isChecked) {
for (var j = 0; j < $ctrls.length; j++) {
if ($ctrls[j].parentNode.innerText == ddCollection[i]) {
$ctrls[j].checked = true;
}
}
} else {
for (var j = 0; j < $ctrls.length; j++) {
if ($ctrls[j].parentNode.innerText == ddCollection[i]) {
$ctrls[j].checked = false;
}
}
}
}
}
}
kumar2233
13-Apr-16 2:48am
View
actual checkbox name is chkoption1.
var $ctrls = $("#<%=gvInitiateCollection.ClientID%> tr input[id*='cbCollectFor']");
<itemtemplate>
<asp:checkbox1 runat="server" id="checkbox1" >
<asp:checkbox1ist runat="server" id="cbCollectFor" >
i'm getting problem at that line ctrls. [object object].
kumar2233
8-Jul-13 3:28am
View
Deleted
in explorer is working but firefox,chrome not working.
<asp:RequiredFieldValidator runat="server" ID="address1Req" ControlToValidate="txtaddress1"
Display="None" ErrorMessage="Please enter the Address1.." />
<asp:RequiredFieldValidator runat="server" ID="cityReq" ControlToValidate="ddlcity"
Display="None" ErrorMessage="Please select the City." />
<asp:RequiredFieldValidator runat="server" ID="stateReq" ControlToValidate="ddlstate"
Display="None" ErrorMessage="Please select State." />
<asp:RequiredFieldValidator runat="server" ID="PinCodeREq" ControlToValidate="txtPinCode"
Display="None" ErrorMessage="Please enter the PIN Code." />
<%-- NRI address Validations--%>
<asp:RequiredFieldValidator runat="server" ID="NRIaddress1REq" ControlToValidate="txtNRIaddress1"
Display="None" ErrorMessage="Please enter the NRIAddress1." />
<asp:RequiredFieldValidator runat="server" ID="NRIcityReq" ControlToValidate="txtNRIcity"
Display="None" ErrorMessage="Please enter the City." />
<asp:RequiredFieldValidator runat="server" ID="NRICountryReq" ControlToValidate="txtNRICountry"
Display="None" ErrorMessage="Please enter the Country." />
<asp:RequiredFieldValidator runat="server" ID="ZIPCodeReq" ControlToValidate="txtZIPCode"
Display="None" ErrorMessage="Please enter the ZIP code." />
<%--Bank validations--%>
<asp:RequiredFieldValidator runat="server" ID="bankbranchreq" ControlToValidate="txtbranch"
Display="None" ErrorMessage="Please enter the Branch name." />
<asp:RequiredFieldValidator runat="server" ID="AccountnoReq" ControlToValidate="txtAccountno"
Display="None" ErrorMessage="Please enter the Bank Account No." />
<asp:RequiredFieldValidator runat="server" ID="Branchaddress1Req" ControlToValidate="txtBranchaddress1"
Display="None" ErrorMessage="Please enter the BranchAddress1." />
<asp:RequiredFieldValidator runat="server" ID="BranchCityReq" ControlToValidate="txtBranchCity"
Display="None" ErrorMessage="Please enter the Branch city." />
<asp:RequiredFieldValidator runat="server" ID="BankPINReq" ControlToValidate="txtBankPIN"
Display="None" ErrorMessage="Please enter the Branch Pin Code." />
<%--Payment validations--%>
<asp:RequiredFieldValidator runat="server" ID="AmountReq" ControlToValidate="txtAmount"
Display="None" ErrorMessage="Please enter the Amount.." />
<asp:RequiredFieldValidator runat="server" ID="ddlschemereq" ControlToValidate="ddlscheme"
Display="None" ErrorMessage="Please select the Scheme." />
<asp:RequiredFieldValidator runat="server" ID="ddlplanreq" ControlToValidate="ddlplan"
Display="None" ErrorMessage="Please select Plan." />
<asp:RequiredFieldValidator runat="server" ID="ddloptionreq" ControlToValidate="ddloption"
Display="None" ErrorMessage="Please select Option." />
<%--Broker Details--%>
<asp:RequiredFieldValidator runat="server" ID="brokercodeREq" ControlToValidate="txtbrokercode"
Display="None" EnableClientScript="true" ErrorMessage="Please enter the Broker Code." />
<%-- Nominee details--%>
<asp:RequiredFieldValidator runat="server" ID="reqNomName" ControlToValidate="txtNomName"
Display="None" ErrorMessage="Please enter the Nominee Name." />
<asp:RequiredFieldValidator runat="server" ID="reqNomDOB1" Enabled="false" InitialValue="__/__/____"
ControlToValidate="txtNomineeDOB" Display="None" ErrorMessage="Please enter Date of Birth for Nominee1." />
<asp:RequiredFieldValidator runat="server" ID="reqNomDOB2" Enabled="false" InitialValue="__/__/____"
ControlToValidate="txtSecNomDOB" Display="None" ErrorMessage="Please enter Date of Birth for Nominee2." />
<asp:RequiredFieldValidator runat="server" ID="reqNomDOB3" Enabled="false" InitialValue="__/__/____"
kumar2233
13-Jun-13 5:47am
View
in explorer button is working. in chrome,firefox does not working..
kumar2233
28-Jan-13 7:39am
View
master page code :
.....................
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="50%" height="91" align="left" valign="middle"><img src="../Images/logo.jpg" width="357" height="61" alt="logo"></td>
<td width="50%" align="left" valign="middle"><table width="382" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td width="36" align="left" valign="bottom"><img src="../Images/Phone.png" width="25" height="17" alt="phone"></td>
<td width="346" align="left" valign="middle">
Toll Free No 1800 258 5678
</td>
</tr>
</table></td>
</tr>
</table>
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server" >
i add new default page i attach master page. In this page images are not displayed in Default page [Child page].
kumar2233
3-Dec-12 5:34am
View
<cc:modalpopupextender id="ModalPopupExtender1" runat="server" BackgroundCssClass="modalBackground"
targetcontrolid="btnSubject" popupcontrolid="Panel1" drag="true" CancelControlID="lnkClose" >
Protected Sub btnSubject_Click(sender As Object, e As System.EventArgs) Handles btnSubject.Click
Try
ModalPopupExtender1.Show()
ModalPopupExtender1.Enabled = True
Catch ex As Exception
booError = True
Dim ErrContext As HttpContext = HttpContext.Current
ErrContext.Items.Add("ErrDesc", ex.Message)
ErrContext.Items.Add("ErrSrc", ex.Source)
ErrContext.Items.Add("ErrInfo", ex.StackTrace)
ErrContext.Items.Add("ErrFile", "D")
Finally
'If Not ddlIHNO Is Nothing Then ddlIHNO.Dispose()
'ddlIHNO = Nothing
'If Not ds Is Nothing Then ds.Dispose()
'ds = Nothing
End Try
If booError Then Response.Redirect("ErrorMessage.aspx", False)
End Sub
Protected Sub ddlDesc_SelectedIndexChanged(sender As Object, e As System.EventArgs) Handles ddldesc.SelectedIndexChanged
Try
ModalPopupExtender1.Show()
ModalPopupExtender1.Enabled = True
Dim objDetails As New Service
Dim dsdesc As New DataSet
dsdesc = objDetails.TaskMF_NCT_getSubjects(strApplid, strApplpwd, ddldesc.SelectedValue)
ddlSubject.DataTextField = "nm_description"
ddlSubject.DataValueField = "nm_code"
ddlSubject.DataSource = dsdesc.Tables(1)
ddlSubject.DataBind()
Dim ds As New DataSet
If Not Session("dsimage") Is Nothing Then
ds = DirectCast(Session("dsimage"), DataSet)
End If
Dim lblnctcode1 As New Label
lblnctcode1.Text = "Nct Code" + " " + ":"
lblnctcode1.Attributes.Add("class", "lbl")
Dim lblnctcode As New Label
Session("Nct") = ds.Tables(1).Rows(0).Item("NTCODE").ToString()
lblnctcode.Text = ds.Tables(1).Rows(0).Item("NTCODE").ToString() + " "
lblnctcode.Attributes.Add("class", "lbl1")
Dim Lbldesc1 As New Label
Lbldesc1.Text = "Description" + " " + ":"
Lbldesc1.Attributes.Add("class", "lbl")
Dim Lbldesc As New Label
Lbldesc.Text = ds.Tables(1).Rows(0).Item("SUBJECT").ToString() + " "
Lbldesc.Attributes.Add("class", "lbl1")
Dim LblINVST As New Label
LblINVST.Text = "Investor Name " + " " + ":"
LblINVST.Attributes.Add("class", "lbl")
Dim LblINVST1 As New Label
LblINVST1.Text = ds.Tables(1).Rows(0).Item("INVNAME").ToString() + " "
LblINVST1.Attributes.Add("class", "lbl1")
Dim LblFLAGDESC As New Label
LblFLAGDESC.Text = "Flag Description " + " "
LblFLAGDESC.Attributes.Add("class", "lbl")
Dim LblFLAGDESC1 As New Label
LblFLAGDESC1.Text = ds.Tables(1).Rows(0).Item("FLAGDESC").ToString() + " "
LblFLAGDESC1.Attributes.Add("class", "lbl1")
Dim LblFolioNo As New Label
LblFolioNo.Text = "Folio No " + " " + ":"
LblFolioNo.Attributes.Add("class", "lbl")
Dim LblFolioNo1 As New Label
LblFolioNo1.Text = ds.Tables(1).Rows(0).Item("FOLIONUM").ToString()
LblFolioNo1.Attributes.Add("class", "lbl1")
DIVCONTENTLEFT.Controls.Add(lblnctcode1)
DIVCONTENTLEFT.Controls.Add(lblnctcode)
DIVCONTENTLEFT.Controls.Add(Lbldesc1)
DIVCONTENTLEFT.Controls.Add(Lbldesc)
DIVCONTENTLEFT.Controls.Add(LblINVST)
DIVCONTENTLEFT.Controls.Add(LblINVST1)
DIVCONTENTLEFT.Controls.Ad
kumar2233
5-Nov-12 4:29am
View
MTIFrames.ActiveViewIndex = 1
hidimgpath1.Value = ds.Tables(1).Rows(0).Item("IHNO_IMAGEPATH").ToString()
hidimgpath2.Value = ds.Tables(1).Rows(0).Item("IHNO_IMAGEPATH").ToString()
Protected Sub rdbRemarks_SelectedIndexChanged(sender As Object, e As System.EventArgs) Handles rdbRemarks.SelectedIndexChanged
' divRejections.Visible = True
Dim service As New TaskMF_WCFServiceClient
Dim dsreason As New DataSet
dsreason = obj.TaskMF_NCT_Get_ObjectionreasonMasterAlt(strApplid, strApplpwd, rdbRemarks.SelectedValue)
If dsreason.Tables.Count <> 0 Then
If dsreason.Tables(0).Rows(0)("Return_Code") = "-1" Then
ScriptManager.RegisterStartupScript(Me, Me.GetType(), "Message", "alert ('" & dsreason.Tables(0).Rows(0)(1).ToString & "');", True)
Exit Sub
ElseIf dsreason.Tables(1).Rows.Count > 0 Then
ddlReasons.DataSource = dsreason.Tables(1)
ddlReasons.DataTextField = "or_reason"
ddlReasons.DataValueField = "or_reason"
ddlReasons.DataBind()
Else
ScriptManager.RegisterStartupScript(Me, Me.GetType(), "Message", "alert ('No Information is Found');", True)
Exit Sub
End If
End If
End Sub
kumar2233
29-Oct-12 2:47am
View
fldtype fldDesc fldname fldparam fldid
1 First Applicant txtFirstApp @txtFirstApp 1
1 Second Applicant txtSecondApp @txtSecondApp 2
1 Third Applicant txtThirdApp @txtThirdApp 3
1 PAN No txtPAN @txtPAN 4
1 J.H1 Pan No. txtJh1Pan @txtJh1Pan 5
2 Bank Name cboBankName @cboBankName 23
2 Bank A/c Type cboBankAcType @cboBankAcType 24
1 Bank A/c No txtBankAccNo @txtBankAccNo 25
1 Bank Add1 txtBankAdd1 @txtBankAdd1 26
1 Bank PIN txtBankPin @txtBankPin 30
1 Bank State txtBankState @txtBankState 31
2 Mode of Red. cboModeofRedemption @cboMode 32
1 IFSC Code txtIFSC @txtIFSC 33
based on fldtype we are create dynamically textboxes and dropdownlist.
in a dynamic textbox text how to store insert a value into sqldb
Collapse | Copy Code
If ds1.Tables(0).Rows(i)(0).ToString() = "1" Then
Dim lbl1 As New Label()
lbl1.ID = "lbl1" + i.ToString()
lbl1.Text = ds1.Tables(0).Rows(i)(1).ToString()
lbl1.Text = lbl1.Text + ":" + " "
myDiv.Controls.Add(lbl1)
Dim MyTextBox As New TextBox()
MyTextBox.ID = ds1.Tables(0).Rows(i)(0).ToString()
myDiv.Controls.Add(MyTextBox)
'table = table & "<tr><td>" + ds1.Tables(0).Rows(i)(1).ToString() + "</td><td>" + MyTextBox.ID + "</td><td>"
myDiv.Controls.Add(New LiteralControl("<br />"))
'table = table + "</table>"
'myDiv.InnerHtml = table
div1.Attributes.Add("class", "button")
End If
If ds1.Tables(0).Rows(i)(0).ToString()= "2" Then
Dim lbl2 As New Label()
lbl2.ID = "lbl2" + i.ToString()
lbl2.Text = ds1.Tables(0).Rows(i)(1).ToString()
lbl2.Text = lbl2.Text + ":" + " "
myDiv.Controls.Add(lbl2)
Dim ddl As New DropDownList()
ddl.AutoPostBack = True
'ddl.Height = "27px"
'ddl.Width = "130px"
ddl.ID = ds1.Tables(0).Rows(i)(0).ToString()
ddl.DataSource = ds1.Tables(0).Rows(i)(0).ToString()
ddl.DataBind()
myDiv.Controls.Add(ddl)
myDiv.Controls.Add(New LiteralControl("<br />"))
div1.Attributes.Add("class", "button")
End If
Dim txtUserName As TextBox = DirectCast(pnlInfo.FindControl(ds1.Tables(0).Rows(i)(0).ToString()), TextBox)
how to add all textboxes text values into db.
plz help me...
kumar2233
29-Oct-12 2:41am
View
ya , i follow same type of procedure . but image are not showing..
kumar2233
29-Oct-12 2:19am
View
in my app images are displaying in iframe without using update panel.
i'm using update panel, images are not displayed in iframe.
kumar2233
9-Oct-12 4:23am
View
ya its working. zoltan zorgo
kumar2233
9-Oct-12 3:26am
View
sure. i will tell u its working r not.
kumar2233
9-Oct-12 2:40am
View
Any way can u send any article related to my requirement.
kumar2233
9-Oct-12 2:25am
View
in my application 2 image src tags.
all the images are comes in database.
sometimes in databases images is null.
My question is 1 img src comes in db and 2nd image not comes in db [ like empty ].
This time how to validate images in javascript.
kumar2233
9-Oct-12 2:25am
View
in my application 2 image src tags.
all the images are comes in database.
sometimes in databases images is null.
My question is 1 img src comes in db and 2nd image not comes in db [ like empty ].
This time how to validate images in javascript.
kumar2233
17-Sep-12 23:36pm
View
how to validate email validation .in,.com,.net in asp.net
kumar2233
17-Sep-12 2:53am
View
hi,
see this link.
http://msdn.microsoft.com/en-us/library/office/dd440953%28v=office.12%29.aspx
kumar2233
7-Sep-12 8:11am
View
it's serious. Actually it is my requirement. I created 2 dynamically textboxes and 1 button.
suppose i click button 2 dynamically textboxes validation are not fired.
plz tell me.
kumar2233
7-Sep-12 5:18am
View
hi pradeep
i create dynamically textboxes. how to apply asp.net validation for these dynamic textboxes.
plz suggest me.
kumar2233
7-Sep-12 2:35am
View
i bind button control in form tag. same code i'm using y button event are not firing.
can u send code attachment link.or send gmailid[ maddulapradeep@gmail.com] ur code...
kumar2233
7-Sep-12 1:49am
View
This event i call u before i creating dynamically button.
Button btnContinue = new Button();
btnContinue.Attributes.Add("class", "button");
btnContinue.ID = "btnContinue";
btnContinue.Text = "Continue";
btnContinue.CausesValidation = false;
btnContinue.Click += new EventHandler(btnContinue_Click);
form1.Controls.Add(btnContinue);
kumar2233
7-Sep-12 1:42am
View
i will try , But same problem arenot fired.
can u send sample code for this Dynamically Button Created....
kumar2233
5-Sep-12 4:22am
View
Ya The problem is sovled. Thnx prabakar...
kumar2233
5-Sep-12 3:32am
View
ur idea is correct. in asp.net , all of controls are running on server side.
here no need to pass runat="server".
I'm getting error like this.
System.Web.HttpException: Control 'tb0' of type 'TextBox' must be placed inside a form tag with runat=server.
kumar2233
5-Sep-12 3:15am
View
yes. i want n no of times to create textboxes.
kumar2233
5-Sep-12 3:08am
View
how to add dynamically create textbox controls in c#.
kumar2233
3-Sep-12 8:15am
View
yes. how can i share our webservice. how to accessible others
kumar2233
3-Sep-12 8:15am
View
yes. how can i share our webservice. how to accessible others
kumar2233
30-Aug-12 5:48am
View
i search for aspsnippets,aspdotnetsuresh. i m not getting correct answer. THAT'S why i posted the question.
Anyway Thnx boss . it is useful for me.
kumar2233
23-Aug-12 7:08am
View
he has written same code That's why i vote
kumar2233
23-Aug-12 7:04am
View
code is working but i have minor mistake in this code txt1.style.backgroundcolor in replace of txt1.style.backgroundColor
kumar2233
8-Aug-12 0:50am
View
i'm using asp.net and vb.net
..............................
Protected Sub dropdownlist1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles
ui_ddl_Reports.SelectedIndexChanged
dropdownlist1.datasource= ds
dropdownlist1.databind()
gridview1.datasource=nothing
gridview1.databind()
End
kumar2233
7-Aug-12 8:14am
View
i try but. in dropdown different 5 options are their. i select any option to display data in gridview. but i select another option previous data its showing. so Gridview data is not clear.
kumar2233
10-Dec-11 0:28am
View
chart program is working
thnx alot morley
kumar2233
7-Dec-11 4:46am
View
yes i added appsettings. in solution explorer i add new folder "TempImages" and folder contains temp.txt is a empty file. i upload this file in ixwebhosting. after I am getting error like this "invalid folder in tempimages". in temp.txt what content i put the file temp.txt.
kumar2233
7-Dec-11 1:09am
View
hi Morley,
in my solution explorer , i have add new folder "TempImages". in "TempImages" folder i add temp.txt file is create. i upload IXWEBHosting in a site.I am getting error like this "invalid folder in tempimages". in temp.txt what content i put the file temp.txt.
kumar2233
6-Dec-11 7:03am
View
in my local system chart program is working properly but i upload this program in "IXWebHosting" . error is came. i dont put any tempimgfiles but program is working
kumar2233
3-Dec-11 2:56am
View
i am using iis version 5.1
kumar2233
9-Jun-11 5:18am
View
iam try this solution.
my xml format like this <XMLPayResponse xmlns="http://www.paypal.com/XMLPay"><responsedata><vendor>mudiaminc<Partner>paypal</Partner><TransactionResults><TransactionResult><result>0<iavsresult>N<avsresult><streetmatch>Match<zipmatch>No Match<message>Approved<PNRef>V35A0B31EC2D</PNRef><authcode>276PNI</TransactionResult></TransactionResults></XMLPayResponse>.
in the above example i try this..
its getting error.
kumar2233
17-Mar-11 7:22am
View
thanks sandeep. code will be correctly wirk.thnks for giving response.
kumar2233
17-Mar-11 3:11am
View
hi, this code is suitable for all attach .doc,.txt...
Show More