15,915,160 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 spriyanair (Top 28 by date)
spriyanair
4-Apr-16 9:09am
View
iam converting datatable to xml and binding that.need to to know how to bind data to the label inside table which is inside gridview.
function OnSuccess(response) {
debugger;
var xmlDoc = $.parseXML(response.d);
var xml = $(xmlDoc);
var customers = xml.find("datatb");
var row = $("[id*=gvCustomers] tr:last-child").clone(true);
var gvCustomers = $("#<%=gvCustomers.ClientID%>");
var rows = gvCustomers.children("tbody").children("tr");
var dataRow = rows.eq(1);
$("td", row).eq(0).html($(this).find("RunID").text());
var lblFileName = dataRow.find("[id*='lblFileName']");
lblFileName.html("Hello world ");
$("[id*=gvCustomers] tr").not($("[id*=gvCustomers] tr:first-child")).remove();
$.each(customers, function () {
var customer = $(this);
$("td", row).eq(0).html($(this).find("RunID").text());
var rows = gvCustomers.children("tbody").children("tr");
var dataRow = rows.eq(1);
var lblFileName = dataRow.find("[id*='lblFileName']");
lblFileName.html($(this).find("FileName").text());
var lblUploadedby = dataRow.find("[id*='lblUploadedby']");
lblUploadedby.html($(this).find("UploadedBy").text());
var lblUploadedOn = dataRow.find("[id*='lblUploadedOn']");
lblUploadedOn.html($(this).find("UploadedOn").text());
var lblComments = dataRow.find("[id*='lblComments']");
lblComments.html($(this).find("Comments").text());
$("[id*=gvCustomers]").append(row);
row = $("[id*=gvCustomers] tr:last-child").clone(true);
});
}
spriyanair
4-Apr-16 9:06am
View
I need to do the binding thru javascript due to someother functionalities
spriyanair
4-Apr-16 9:05am
View
outside grid
spriyanair
4-Apr-16 8:22am
View
button click
spriyanair
4-Apr-16 5:38am
View
yes first column only. But one small issue its is not merging for the last id.
spriyanair
4-Apr-16 5:14am
View
thank you.This a very big helpBut unfortunately its only working for first id.Could you plz tell me hw to do it for all the ids
spriyanair
4-Apr-16 4:53am
View
<script type="text/javascript">
function test() {
debugger;
var rowscount = document.getElementById('<%=gvCustomers.ClientID%>').rows.length;
var grid= document.getElementById('<%=gvCustomers.ClientID%>');
for (i = rowscount - 1 ; i > 0; i--) {
var row = grid.rows[i].cells;
var previousRow = grid.rows[i-1].cells;
if (row[0].innerHTML == previousRow[0].innerHTML) {
if (previousRow[0].rowSpan == 0)
{
if (row[0].rowSpan == 0) {
previousRow[0].rowSpan += 2;
}
else {
previousRow[0].rowSpan = row.Cells[0].rowSpan + 1;
}
row[0].Visible = false;
}
}
}
}
</script>
spriyanair
1-Apr-16 8:00am
View
Reply
can u give an example
spriyanair
1-Apr-16 6:54am
View
can u give an example
spriyanair
16-Feb-16 3:59am
View
I id like that only it work fine when date with time stamp is given but will fails when date alone is given
spriyanair
16-Feb-16 2:54am
View
what happens if string is in date time format
spriyanair
16-Feb-16 2:20am
View
some data have time stamp some don't have; have to work in both the cases
spriyanair
16-Feb-16 2:15am
View
DateTime.ParseExact(value[21].Trim(), "dd/MM/yyyy HH:mm:ss", CultureInfo.InvariantCulture); I have used this code before its working fine if string is date time.But it fails when date alone is given.Could you clarify with an example
spriyanair
16-Apr-14 7:35am
View
I need to log the whether the functional test methods are started and ended.
AssemblyInitialize will execute bfre FT execution.But after cmpleteion of execution also I need to log
spriyanair
1-Mar-13 6:30am
View
http://www.codeproject.com/Articles/27543/XML-Database-In-C if i update data like mentioned in this url wil it get updated in server
spriyanair
1-Mar-13 4:53am
View
Deleted
so what can i do for this any solution .
Iam creating an addin for microsoft project plan using visual studio.There i need to store some small amount of data which user enters through UI.users will be openting the application from server and enter data .I need to make this data entered by the user should be avaliable to all.can any one give me any suggestions for this.
spriyanair
1-Mar-13 4:52am
View
so what can i do for this any suggestions
Iam creating an addin for microsoft project plan using visual studio.There i need to store some small amount of data which user enters through UI.users will be openting the application from server and enter data .I need to make this data entered by the user should be avaliable to all.can any one give me any suggestions for this.
spriyanair
1-Mar-13 1:12am
View
can u explain a little detail
spriyanair
28-Feb-13 23:49pm
View
Is there any way to store the data in solution itself?
spriyanair
28-Feb-13 6:56am
View
i need to create some templates with some default values
dont know where to save that values
spriyanair
28-Feb-13 6:53am
View
how to store the data in server any possible way?
spriyanair
28-Feb-13 6:39am
View
If if i refer path using any of this Application.UserAppDataPath
Application.LocalUserAppDataPath
Application.CommonAppDataPath and access the application in server the file wil be stored in server or in my local system
spriyanair
21-Feb-13 7:32am
View
NOT WRKING
spriyanair
21-Feb-13 2:18am
View
I want this relative path c:\users\priya.sasidharan\documents\visual studio 2010\Projects\
but after documents iam not getting the path
spriyanair
20-Feb-13 2:07am
View
i want to call this inside a button click
public void Application_NewProject(Microsoft.Office.Interop.MSProject.Project pj)
{
MSProject.Task newTask = pj.Tasks.Add("This text was added by using code");
newTask.Start = DateTime.Now;
newTask.Duration = "3";
newTask.ResourceNames = "Rob Caron, Kelly Krout";
}
How to do that
spriyanair
21-Nov-12 7:27am
View
i have tried the following code but its not working.Row command event is not getting fired
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SearchPage.aspx.cs" Inherits="SearchPage" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %>
<!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>
<script runat="server">
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static AjaxControlToolkit.Slide[] GetImages()
{
return new AjaxControlToolkit.Slide[]
{
new AjaxControlToolkit.Slide("images/Blue hills.jpg","Blue Hills",
"Go Blue"),new AjaxControlToolkit.Slide("images/Sunset.jpg","Sunset",
"Setting sun"),new AjaxControlToolkit.Slide("images/Winter.jpg","Winter",
"Wintery..."),new AjaxControlToolkit.Slide("images/Water lilies.jpg",
"Waterlilies", "Lillies in the water"),new AjaxControlToolkit.Slide("images/VerticalPicture.jpg",
"Sedona", "Portrait style picture")};
}
</script>
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
Displaying Results for
Country
:
<asp:Label ID="lbl_Country" runat="server" Text="Country">
<asp:LinkButton ID="lbt_ChangeFilter" runat="server"
onclick="lbt_ChangeFilter_Click">ChangeFilter
<br />
State
:
<asp:Label ID="lbl_State" runat="server" Text="State">
<asp:Panel ID="Panel1" runat="server" Height="1191px" Width="837px">
<br />
<br />
<ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowCommand="GridView1_RowCommand"
PageSize="6" Height="500px" Width="800px" BorderColor="White">
<columns>
<asp:TemplateField>
<itemtemplate>
<table align="center" bgcolor="#CCCCCC" class="style1" width= "800px" >
<tr>
<td>
<asp:Label ID="lbl_HotelName" runat="server" Font-Bold="True" Font-Size="Medium" ForeColor="#3366FF" Text='<%#Eval("HotelName") %>'>
</td>
<td>
</td>
<td align="right" >
<asp:Button ID="btn_BookHotel" runat="server" OnClick ="btn_Book_Click" Text="Book" BackColor="#990000" ForeColor="White" CommandName="GridButton" CommandArgument='<%# Eval("HotelID") %>' CausesValidation="True" PostBackUrl="~/ReservationPage.aspx" />
</td>
</tr>
</table>
<table align="center" bgcolor="#CCCCCC" width="800px">
<tr>
<td>
spriyanair
19-Nov-12 0:49am
View
Hi my requirement is to add a tabpanel in each row of gridview
spriyanair
18-Nov-12 11:13am
View
I have tried that inside rowcommand but that event is not getting fired
Show More