16,004,887 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 .NET 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 prasanna204 (Top 20 by date)
prasanna204
10-Sep-22 7:13am
View
I worked on error and I wrote the same code
prasanna204
20-Sep-21 5:17am
View
Data is coming from the Backend Richard
prasanna204
27-Aug-21 5:30am
View
I am manually increasing sno count max(sno)+1 like this
prasanna204
27-Aug-21 5:07am
View
when SNO value is not changing that device id row should be deleted from the table
prasanna204
27-Aug-21 5:05am
View
Device id is different in the table
prasanna204
27-May-21 5:21am
View
Hi originalGriff
Actually I gave Example.
In the table ABC and ABC @ 1F shops have same images.I need to display unique shop images instead of displaying same shop images multiple times.
ABc /images
prasanna204
19-Nov-20 9:40am
View
no I need to read download csv file from the web Api.When I am testing from the browser means first I login into the site and I will enter csv file API URl file is downloading.While implementing it in the code.Html content is coming in the csv file.
prasanna204
18-Nov-20 8:31am
View
no Billwoodruff.If I logged into the site through web browser it is downloading csv file with proper data.When I am implimenting this in the code instead of coming proper data it is displaying html content like a page view Source in the browser.
prasanna204
9-Jan-18 1:50am
View
okay David
prasanna204
20-Oct-17 23:57pm
View
I debugged the code its giving value but the thing is after directing to another page the variable value shows empty in Url of another page.
prasanna204
20-Oct-17 11:20am
View
hi,
hr is a varible I am storing selected link text in that variable.The click event is firing and redirects to another page,while debugging jquery code the value is displaying but the value is not coming in url of another page.
prasanna204
25-Jun-17 10:30am
View
hi friends,
here is my code
<asp:Button ID="btnAddFamilyDetails" runat="server" tabindex="29" Text="Save"
OnClick="btnAddFamilyDetails_Click" CssClass="btn btn-primary" ValidationGroup="A1" Style="margin-left: 992px;height: 40px;width: 134px;font-weight: bold;" />
while submitting record the bootstrap validations are firing for example if we type numbers in name field it showing message that 'please enter that matches the pattern'.
when click on edit button data is assigned to all textboxes for example:Name field has text : Rama
<asp:Button ID="btnupdate" runat="server" tabindex="29" Text="Update" Visible="false"
CssClass="btn btn-primary" Style="margin-left: 1050px;height: 40px;width: 134px;font-weight: bold;" OnClick="ddlupdate_Click" />
If I chane text Rama to Rama123 and click on Update button the validation not firing
'please enter that matches the pattern'
Now tell me the solution how to fire bootstrap validations if text is present in input textboxes??
prasanna204
30-May-17 9:56am
View
Sure
Table data:
1 test 30-05-2017 30-05-2017
2 test1 31-05-2017 31-05-2017
Employee applied leaves from 26-05-2017 to 31-05-2017
O/p
Result count 2 fromdate = to date
So if two dates or not equal how to apply conditions ?
prasanna204
5-May-17 8:08am
View
Duration(weeks)=1;nofofworkingdays(in a week)=5;
Datetime Dt=convert.Todatedime(txtStartDate.Text);
Date date=dt.AddDays(7);
how to exclude saturdays and sundays if any caluculate based on nofofworking days
prasanna204
5-May-17 7:31am
View
how to get the end date based on mentioned scenarios?I need code help
prasanna204
24-Nov-16 22:28pm
View
if (grdMaterials.Rows.Count > 0)
{
Response.Clear();
Response.Buffer = true;
if (txtDate.Text == "")
{
Response.AddHeader("content-disposition", "attachment;filename=ApprovedMaterialsData.xls");
}
else
{
Response.AddHeader("content-disposition", "attachment;filename=ApprovedMaterialsData_"+txtDate.Text+".xls");
}
Response.Charset = "";
Response.ContentType = "application/vnd.ms-excel";
StringWriter sw = new StringWriter();
HtmlTextWriter hw = new HtmlTextWriter(sw);
//To Export all pages
grdMaterials.AllowPaging = false;
GetData();
grdMaterials.HeaderRow.BackColor = Color.White;
foreach (TableCell cell in grdMaterials.HeaderRow.Cells)
{
cell.BackColor = grdMaterials.HeaderStyle.BackColor;
}
foreach (GridViewRow row in grdMaterials.Rows)
{
//row.BackColor = Color.White;
foreach (TableCell cell in row.Cells)
{
if (row.RowIndex % 2 == 0)
{
cell.BackColor = grdMaterials.AlternatingRowStyle.BackColor;
cell.BorderColor = Color.Black;
cell.BorderStyle = grdMaterials.BorderStyle;
//Range cell1 = worksheet.Cells[row1, col1];
//Range cell2 = worksheet.Cells[row2, col2];
//Range range = worksheet.get_Range(cell1, cell2);
//range.BorderAround(
// Type.Missing, XlBorderWeight.xlThick, (XlColorIndex)color, Type.Missing);
//((Range)excelSheet.get_Range(exRange)).Cells.Borders.LineStyle = XlLineStyle.xlContinuous;
}
else
{
cell.BackColor = grdMaterials.RowStyle.BackColor;
// ((Range)excelSheet.get_Range(exRange)).Cells.Borders.LineStyle = XlLineStyle.xlContinuous;
}
cell.CssClass = "textmode";
}
}
grdMaterials.RenderControl(hw);
//style to format numbers to string
string style = @" .textmode { } ";
Response.Write(style);
Response.Output.Write(sw.ToString());
Response.Flush();
Response.End();
prasanna204
19-Oct-16 1:38am
View
Thank you so much manu_dhobale
prasanna204
22-Sep-16 12:56pm
View
No problem Maciej.Thank you
prasanna204
18-Sep-16 21:06pm
View
Thank you Maciej.I need to difference the values.
prasanna204
18-Sep-16 21:04pm
View
okey Mika but I need to split 2nd table LeavesBalance column by comma and I want to difference them like this..3-1 for causual and 2-1 for sick leave the result is updated in the first table.
Show More