15,908,581 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 1989priya (Top 45 by date)
1989priya
27-May-14 1:37am
View
yaa..Its not working.There are no error.Path1 pick up path of crystal report.
Path1 = AppDomain.CurrentDomain.BaseDirectory.ToString & "CrystalInvoice.rpt"
Dim a As New ReportDataset
Dim DS1 As New DataSet1
DS1.Tables("DTInvMst").Rows.Add(cmbType.Text, cmbInVNo.Text, txtPortOfLoading.Text, txtPortDischarge.Text, dtpBuyerDate.Text, txtOtherRef.Text, txtBuyerOrderNo.Text, txtPreCarriage.Text, dtpRemovalGoods.Text, txtSNo.Text, txtVessel.Text, txtFinalDest.Text, txtExporterRef.Text, txtRateDuty.Text, txtTotalDutyFig.Text, txtWords.Text, txtExamption.Text, dtpDateDebit.Text, dtpInvoice.Text, dtpRoadPermit.Text, txtPLA.Text, txtRGSno.Text, txtRoadPermitNo.Text, dtpRemovalGoods.Text, txtPlaceOfReceipt.Text, txtCountGoods.Text, txtCountDest.Text, txtTermsPaymt.Text, txtexcisevalue.Text, txtExcise1.Text, txtCESSValue.Text, txtTotalCess1.Text, txtEduValue.Text, txtEduCess1.Text, txtAllExcise1.Text, txtSaleTaxValue.Text, txtSaletax1.Text, txtTaxAmt1.Text, txtTotalsale1.Text, cmbOrderAckNo.Text, txtOrderAckDate.Text, txtPartyName.Text, dgvInvoice.Rows(0).Cells("colDescription").Value, dgvInvoice.Rows(0).Cells("colQty").Value, dgvInvoice.Rows(0).Cells("colRate").Value, dgvInvoice.Rows(0).Cells("colTotal").Value, dgvInvoice.Rows(0).Cells("colkindpackage").Value, dgvInvoice.Rows(0).Cells("colPackageSize").Value, dgvInvoice.Rows(0).Cells("colNetWeight").Value, dgvInvoice.Rows(0).Cells("colGrossWeight").Value, dgvInvoice.Rows(0).Cells("colBatch").Value, txtCustName.Text, txtCustAdd.Text, dtpCust.Text, txtTarrifHeadNo.Text, txtDocument.Text, txtPhoneNo.Text, txtMb.Text, txtTransporter.Text, txtVehicleNo.Text, txtCustInvNo.Text, txtTinNo.Text, txtECC.Text, txtPO.Text, txtGRNo.Text)
BindCompanyInfo()
DS1.Tables("DTCompany").Rows.Add(ds.Tables(0).Rows(0)("CName"), ds.Tables(0).Rows(0)("Add1"), ds.Tables(0).Rows(0)("State"), ds.Tables(0).Rows(0)("City"), ds.Tables(0).Rows(0)("PhoneNo"), ds.Tables(0).Rows(0)("MobileNo"), ds.Tables(0).Rows(0)("EmailId"), ds.Tables(0).Rows(0)("ContPerson"), ds.Tables(0).Rows(0)("FaxNo"), ds.Tables(0).Rows(0)("TinNo"), ds.Tables(0).Rows(0)("LstNo"), ds.Tables(0).Rows(0)("CstNo"), ds.Tables(0).Rows(0)("PanNo"), ds.Tables(0).Rows(0)("CompHOffice"), ds.Tables(0).Rows(0)("ExpiryDate1"), ds.Tables(0).Rows(0)("ExpiryDate2"), ds.Tables(0).Rows(0)("FinYear1"), ds.Tables(0).Rows(0)("FinYear2"))
Path1 = AppDomain.CurrentDomain.BaseDirectory.ToString & "CrystalInvoice.rpt"
a.PrintRPT(DS1, Path1, heading)
a.Show()
when I get data from my window form,It load data into crystal report but When I get data from dataset,It does not load data into crystal report
1989priya
12-Mar-14 0:35am
View
In my sites..I saw when users used client side.I wanted to learn how to work on this,where
is error in my coding.
1989priya
12-Mar-14 0:31am
View
hi..
I would rembeber all those things that you told me.
According to you,password validation should be on server side instead of client side,But I
wanted to do at client side.
1989priya
6-Mar-14 10:54am
View
Fisrt of all I made a web service..
public class WebService : System.Web.Services.WebService {
public WebService () {
//Uncomment the following line if using designed components
//InitializeComponent();
}
public List<webservice> CountryInformation { get; set; }
[WebMethod]
public string LoadCountry()
{
string ab=null;
List<string> authors = new List<string>();
authors.Add("India");
authors.Add("US");
return authors;
}
}
then I am trying to call that web service in aspx page using jquery..
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script src="jquery/jquery-1.6.2.min.js" type="text/javascript"></script>
<script src="jquery/jquery.validate.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$.ajax({
type:"POST",
contentType: "application/json; charset=utf-8",
url: "WebService.asmx/ LoadCountry",
data: "{}",
dataType: "json",
success: function (Result) {
$.each(Result.d, function (key, value) {
$("#DropDownList1").append($("<option></option>").val;
});
},
error: function (Result) {
alert("Error");
}
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:DropDownList ID="DropDownList1" runat="server">
</div>
</form>
</body>
</html>
1989priya
5-Mar-14 13:07pm
View
Hi Tadit...
Thanks for reply.
I want to bind hard coded country name in web service instead of retreive from database. I tried,but I am not getting how to do?
1989priya
28-Feb-14 13:58pm
View
I show you my coding
$(document).ready(function () {
$("#form1").validate(
{
rules:
{
'<%=TextBox1.UniqueID %>':
{
required: true
},
'<%=TextBox2.UniqueID %>':
{
required: true,
email:true
}
},
messages:
{
'<%=TextBox1.UniqueID %>':
{
required:"Please enter name"
},
'<%=TextBox2.UniqueID %>':
{
required: "Please enter a email"
}
}
});
$('#TextBox1').focusout(function () {
$('#form1').validate().element('#TextBox1');
});
$('#TextBox2').focusout(function () {
$('#form1').validate().element('#TextBox2');
});
});
Now tell what to do? You want to say I should use ClientID instead of UniqueID
1989priya
28-Feb-14 13:54pm
View
<body>
<form id="form1" runat="server">
<asp:TextBox ID="TextBox1" runat="server" CssClass="style1"><br />
<asp:TextBox ID="TextBox2" runat="server" CssClass="style1"><br />
<asp:Button ID="Button1" runat="server" Text="Button" />
<asp:Label ID="Label1" runat="server" Text="Label">
</form>
</body>
1989priya
28-Feb-14 13:50pm
View
I dont know how to create a element of label.......
I tried this ("#Label1").html("Enter a email")
But this does not work
1989priya
28-Feb-14 13:41pm
View
can you please tell if I have to show a message of validation on a label than how will be show??
I am not more familiar in jquery.
1989priya
28-Feb-14 13:12pm
View
thankx.....it work f9
I give you my 5
1989priya
28-Feb-14 12:58pm
View
No...I dont want this.I want a validation.I show you my coding...
$(document).ready(function () {
$("#form1").validate(
{
rules:
{
'<%=TextBox1.UniqueID %>':
{
required: true
}
},
messages:
{
'<%=TextBox1.UniqueID %>':
{
required:"Please enter name"
}
}
});
});
that coding work correctly but it work after click on button but I want this should be show focus go on from textbox to another textbox
1989priya
28-Feb-14 12:43pm
View
yaa.....like that.I tell you through a example.
Suppose you have 2 textbox.In first textbox you will have to fill email and 2 textbox will fill name.when your focus out from one textbox to another textbox.Fisrt textbox should print a validation message i.e. please filled a email
1989priya
8-Jan-14 12:30pm
View
Thankx ProgramFox
Now I got it
1989priya
8-Jan-14 11:50am
View
Hi ProgramFox
Thanks for reply.
I read this link but I am not getting.....
1989priya
24-Jun-13 11:49am
View
Hay stibee,I am not using WPF.I am working on window form not a WPF
1989priya
24-Jun-13 11:29am
View
WPF means?
1989priya
16-Apr-13 4:12am
View
Mr Navin...
How dare you talk with me like that.I am fresher,May be I am wrong,But there are no way to talk.
Do you not have any manner
1989priya
16-Apr-13 3:33am
View
Malli_S
I couldn't found solution from here
1989priya
16-Apr-13 3:17am
View
select a.type,b.ID,b.Name,b.TypeID from tbl_1 a innerjoin tbl_2 b on tab1id=tab2ID
1989priya
15-Apr-13 6:26am
View
hi Raj Parashar
It does not work
1989priya
12-Apr-13 14:43pm
View
no,my ques is I have some email id like a@g.com and some invalid in like a@@a@.com,
I wanna do that when I fetch email id from database.At that time only valid email should be fetch
1989priya
12-Apr-13 14:34pm
View
my ques is that how to show valid email id in textbox or gridview
1989priya
12-Apr-13 14:22pm
View
hi OriginalGriff
I am not getting propery what to you want to say?
1989priya
12-Apr-13 14:09pm
View
hi richcb
I am not getting what did you send to me
1989priya
12-Apr-13 7:05am
View
No I dont have entity framework 5
But can you tell for entity framework 4
1989priya
12-Apr-13 6:48am
View
Still Database is not coming
1989priya
12-Apr-13 6:24am
View
Hay _Amy
My Database is not coming after db.
I have namespace System.Data
1989priya
12-Apr-13 5:03am
View
Hi N@veen.S
I add sql sever database that is in visual studion that syntax is like that Database1.mdf,this is a mdf file.There is no connection string here
1989priya
15-Mar-13 14:55pm
View
Hi Pankaj491 Its not changing data on paging
1989priya
15-Mar-13 13:10pm
View
hi sandeep...........I not getting what did you update?
1989priya
15-Mar-13 6:01am
View
OriginalGriff thanks for solution.Can You help one more,Did you see my coding,I trying to make a paging using repeater,but this is not working,Can you tell me what is problem in this coding???
1989priya
15-Mar-13 5:33am
View
origina griff I submit code,Check it.
1989priya
15-Mar-13 5:32am
View
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Repeater2.WebForm1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Repeater ID="rptPages" runat="server" >
<HeaderTemplate>
<table border="1" cellpadding="0" cellspacing="0">
</HeaderTemplate>
<itemtemplate>
<asp:LinkButton ID="btnPage" CommandName="Page" CommandArgument="<%#Container.DataItem %>" runat="server"><%# Container.DataItem %>
<footertemplate>
</table>
<asp:Repeater ID="rptItems" runat="server">
<HeaderTemplate>
<ul>
</HeaderTemplate>
<itemtemplate>
<li>
<%#DataBinder.Eval(Container.DataItem,"pid")%>
<%#DataBinder.Eval(Container.DataItem,"pname") %>
<%#DataBinder.Eval(Container.DataItem,"qty") %>
<%#DataBinder.Eval(Container.DataItem,"unitprice") %>
</li>
<footertemplate>
</ul>
</div>
</form>
</body>
</html>
using System;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
namespace Repeater2
{
public partial class WebForm1 : System.Web.UI.Page
{
SqlConnection con;
SqlDataAdapter da;
DataSet ds;
protected void Page_Load(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=.;Initial Catalog=rept;Integrated Security=True");
if (!Page.IsPostBack)
LoadData();
}
private void LoadData()
{
con.Open();
da = new SqlDataAdapter("select * from product", con);
DataTable dt = new DataTable();
da.Fill(dt);
con.Close();
PagedDataSource pgitems = new PagedDataSource();
DataView dv = new DataView(dt);
pgitems.DataSource = dv;
pgitems.AllowPaging = true;
pgitems.PageSize = 5;
pgitems.CurrentPageIndex = PageNumber;
if (pgitems.PageCount > 1)
{
rptPages.Visible = true;
ArrayList pages = new ArrayList();
for (int i = 0; i < pgitems.PageCount; i++)
pages.Add((i + 1).ToString());
rptPages.DataSource = pages;
rptPages.DataBind();
}
else
{
rptPages.Visible = false;
}
rptItems.DataSource = pgitems;
rptItems.DataBind();
}
public int PageNumber
{
get
{
if (ViewState["PageNumber"] != null)
return Convert.ToInt32(ViewState["PageNumber"]);
else
return 0;
}
set
{
ViewState["PageNumber"] = value;
}
}
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
rptPages.ItemCommand += new RepeaterCommandEventHandler(rptPages_ItemCommand);
}
void rptPages_ItemCommand(Object sender, RepeaterCommandEventArgs e)
{
if(e.CommandArgument is int)
{
PageNumber = int(e.CommandArgument) - 1;
LoadData();
}
}
}
}
1989priya
15-Mar-13 5:21am
View
Hi OriginalGriff yaa,I checked out exactly,This is showing an error on this line
1989priya
15-Mar-13 4:50am
View
Hi OriginalGrifF thanks for reply but its also showing error i.e invalid expression term int
1989priya
15-Mar-13 4:47am
View
Hay Mickt1985 show a error That is invalid expression term int
1989priya
15-Mar-13 4:27am
View
Hi anurag sinha...I am new in .net.I dont more.
Please can you tell me how to typecast?
1989priya
14-Mar-13 6:25am
View
Hi _Amy what did you update?
1989priya
12-Mar-13 3:04am
View
Thanks Prasad_Kulkarni for giving reply but can u tell me error in my coding
1989priya
5-Mar-13 4:54am
View
In my coding,when in my div keep up above button,when in this div,I call class and id,my button and textbox is invisible.
1989priya
5-Mar-13 4:33am
View
There is no error showing because of the jquery.I am unable to find out the error manually.So Pleae help.
1989priya
4-Mar-13 3:57am
View
Yaa,my id is primary key and I used identity on id but identity is not working
1989priya
4-Mar-13 3:53am
View
Thankx amit.......
It work
1989priya
4-Mar-13 3:45am
View
no,its not working
1989priya
4-Mar-13 3:39am
View
How to use postback method here ?
Show More