15,895,084 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 Baroor (Top 53 by date)
Baroor
24-May-16 4:52am
View
AjaxControlToolkit.HTMLEditor
Baroor
6-May-16 1:06am
View
how to initialize in load ???
Baroor
5-May-16 8:11am
View
Thanks @Chill60
Baroor
5-May-16 4:27am
View
Sample Code:
Create table #temp(number int)
insert into #temp(number)
exec proc_testing
where as proc_testing retruns two tables as result set .
i want to insert second table result from the result in to temporary table
Baroor
23-Dec-15 6:21am
View
<asp:GridView ID="GvAllInvoice" runat="server" Width="100%" PageSize="10" AutoGenerateColumns="False"
ShowFooter="True" AllowSorting="true" OnRowDataBound="GvAllInvoice_RowDataBound" OnPageIndexChanging="GvAllInvoice_PageIndexChanging" OnSorting="GvAllInvoice_Sorting">
<HeaderStyle BackColor="#4E4402" ForeColor="#F7F7F7" HorizontalAlign="Center"></HeaderStyle>
<rowstyle cssclass="GridItem">
<alternatingrowstyle cssclass="GridAltItem">
<footerstyle forecolor="Black" backcolor="#CCCCCC" height="20px">
<columns>
<asp:TemplateField Visible="False" HeaderText="InvID" ItemStyle-Height="20px">
<HeaderStyle Width="0px"></HeaderStyle>
<itemtemplate>
<asp:Label runat="server" Width="0px" Text='<%# DataBinder.Eval(Container, "DataItem.Invoice_ID") %>'
ID="lblinvid">
<itemstyle height="20px">
<asp:TemplateField HeaderText="Invoice No." FooterText="Total" ItemStyle-Height="20px"
SortExpression="invoiceno">
<HeaderStyle Font-Bold="True" ForeColor="White" Width="30%"></HeaderStyle>
<HeaderTemplate>
<asp:Label ID="lblheaderText" runat="server" Text="Invoice NO." Font-Bold="True">
</HeaderTemplate>
<itemtemplate>
<asp:CheckBox ID="chkinv" runat="server">
<asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.invoiceno") %>'
ID="lblInvNo">
<input type="hidden" runat="server" value='<%# DataBinder.Eval(Container, "DataItem.TDSRATE") %>'
id="hdTds" />
<itemstyle height="20px">
<footerstyle height="20px">
<asp:TemplateField HeaderText="Balance" ItemStyle-Height="20px" SortExpression="BalanceInvoiceAmt">
<HeaderStyle Font-Bold="True" ForeColor="White" Width="20%"></HeaderStyle>
<itemtemplate>
Baroor
17-Dec-15 1:05am
View
When i converted this was the converted method
public void SelectAll(System.Object sender, System.EventArgs e)
{
DataGridItem dgItem = default(DataGridItem);
CheckBox ChkBxItem = default(CheckBox);
if (GvDiscountingInvoices.Rows.Count > 0)
{
if (sender.Checked)
{
foreach (GridViewRow gvrow in GvDiscountingInvoices.Rows)
{
ChkBxItem = (CheckBox)gvrow.FindControl("chkbox");
ChkBxItem.Checked = true;
}
}
else
{
foreach (GridViewRow gvrow in GvDiscountingInvoices.Rows)
{
ChkBxItem = (CheckBox)gvrow.FindControl("chkbox");
ChkBxItem.Checked = false;
}
}
}
else
{
// ''Dim strScript As String = "<script>alert('No Records to select');</script>"
// ''Me.RegisterClientScriptBlock("alertmessage", strScript)
ScriptManager.RegisterStartupScript(Page, this.GetType(), "AlertMessage", "alert('No Records to select');", true);
sender.Checked = false;
}
}
But showing error at sender.Checked, as object does not contain defination.
Baroor
12-Oct-15 7:31am
View
Thanks for your answer, its working fro me.
Baroor
9-Oct-15 4:01am
View
@Ralf, thanks, above code works for me.
Baroor
8-Oct-15 8:44am
View
when Iam tring this: (((CheckBox)dg.Controls[i]).Checked ? true : false);
Showing error like, cannot imppicityly convert type bool to string.
Baroor
29-Sep-15 7:39am
View
@Suvendu Shekar, it is not working , asking for type expected error at GetType().
Baroor
28-Sep-15 10:04am
View
set @SEARCH_STR='SELECT a.invoice_id , a.InvoiceNo, a.InvoiceDate, DBO.GET_DATE(b.fromdate) as fromdate,DBO.GET_DATE(b.todate) as todate,
DBO.GET_CLIENT_NAME(CLIENTID) AS CLIENT_NAME,CLIENTID,
DBO.INV_GET_INVSTATUS (STATUS) AS STATUS,convert(varchar(12),dueDate,101) as duedate, netamount as totalamount, TotalPayment,
a.purchaseorder_id,ISNULL(DBO.GET_EMP_NAME(B.consultant_id),'''') as Emp_name,
b.Item_id,b.PO_LINE_NO , DBO.GET_TP_INV_DOC(a.invoice_id) as Doc_Pres,
'CASE WHEN @VENDOR_ID < -1 THEN dbo.GET_VENDOR_NAME(a.VENDORID)
WHEN @VENDOR_ID > 0 THEN dbo.GET_VENDOR_NAME(@VENDOR_ID)
END' vendorname
from TB_TP_INVOICE_MASTER as a left outer join TB_TP_INVOICE_ITEMS as b on a.invoice_id = b.invoice_id
where status <=2
Baroor
13-Aug-15 5:00am
View
I have excel file on local machine, i want to display on click event in pop up page.
Baroor
21-Jul-15 2:49am
View
Tried using Microsoft office Dll, but i want this without using Microsoft office Dll.
Is it possible, if yes please suggest me.
Baroor
13-Feb-15 8:03am
View
By This i got Expected result in grid view, But when Exported to excel showing the text fallowed by ... only, rather i want complete text in excel column.
I Used This.
Text=' <%#DataBinder.Eval(Container,"DataItem.SKILLS").ToString().Length>15? DataBinder.Eval(Container,"DataItem.SKILLS").ToString().Substring(0,14)+"...":DataBinder.Eval(Container,"DataItem.SKILLS")%>' ToolTip='%#DataBinder.Eval(Container,"DataItem.SKILLS")'>
Baroor
13-Feb-15 7:53am
View
minimizing means showing text as "THIs IS S.." instead of "THIS IS SAMPLE QUESTION"
in grid view.
Baroor
29-Jan-15 2:57am
View
Got It @"""["
Baroor
5-Jan-15 7:23am
View
Deleted
@ Sergey, please stop teaching elementary principles ,i also know it depends on installed software,
I Just asked how to just display a pdf file on click or load.this is pretty simple.
Baroor
5-Jan-15 6:49am
View
showing, it is physical path, but virtual path is required.
Baroor
5-Jan-15 6:26am
View
I tried with above code
Baroor
5-Jan-15 6:26am
View
protected void btnpdf_Click(object sender, EventArgs e)
{
string path = Server.MapPath("D:/Folder1/Sample.pdf");
WebClient client = new WebClient();
Byte[] buffer = client.DownloadData(path);
if (buffer != null)
{
Response.ContentType = "application/pdf";
Response.AddHeader("content-length", buffer.Length.ToString());
Response.BinaryWrite(buffer);
}
}
Baroor
18-Oct-14 0:18am
View
@SA, i mentioned clearly
Baroor
17-Oct-14 7:38am
View
I think u guys didnt get my requirement actually.
Baroor
17-Oct-14 7:15am
View
using one parent control i poped up,now i want to bind the result to other parent control, before this i want to confirm whether sencond control in parent
Baroor
17-Oct-14 7:09am
View
@Sinisa Hajnal,
Im asking how to check at child window??????????
Baroor
17-Oct-14 6:27am
View
let say say in Parent.aspx i have txtName
i used window.open() in parent page to pop up childpage.aspx to return some value to parent,
before returning i want to check whether textbox of parent is really there or not.
Baroor
16-Oct-14 3:09am
View
@Sergey Alexandrovich , How can we do in the grid view??
Baroor
15-Oct-14 5:13am
View
I used Window.Open() to pop up asp Page, and i want to return value from pop up page to parent page, but i dont want to pass any parent page control or function, instead i want to get the result on parent page.
Baroor
15-Oct-14 2:23am
View
I dont know how to try???
Baroor
15-Oct-14 0:45am
View
can we access popup window controls from parent in this scenario?????
Baroor
15-Oct-14 0:39am
View
Actually this is not for one page, if i called popup function from another page which doesnt have method which we was calling previously in pop up function it will cause to javascript error.
Baroor
15-Oct-14 0:25am
View
i dont want to send any parent function or control to child, i want to get the complete result to parent then i want to assgn value to the controls of parent.
Baroor
13-Oct-14 4:59am
View
the value should not get after click in the parent, let us say i entered value in the text box and clikced button in the child page then it should bind the value to parent and child should close.
Baroor
13-Oct-14 1:35am
View
let us say i entered some text in child window, then i clicked a button in child window the text value from child should bind to the parent window text box and child window should close, is it possible, please suggest me.
Baroor
8-Oct-14 5:39am
View
yes, on key down event of parent asp.net page textbox i want to pop up some sample.aspx page and return a value which i select in samle.aspx to parent asp.net page.
Baroor
8-Oct-14 5:02am
View
I want with asp page, if i have Sample.aspx page , then how to show this page in pop up window???????????
Baroor
8-Oct-14 2:28am
View
to parent page
Baroor
8-Oct-14 1:26am
View
I think u didnt get my requirement exactly, i have to popup existing asp.net page as pop up, if any thing am selecting in the pop up asp.net web page that value should return to another asp.net web page.
Baroor
7-Oct-14 0:43am
View
will u please provide an example of jquery dialog box.
Baroor
6-Oct-14 5:41am
View
Yes it returns string like: abc/123/xyz
Baroor
6-Oct-14 2:27am
View
This is in Jquery function
objwinopen = window.open('../HRManagement/EmployeeDetails_Search.aspx?Cat=RM&F9=1&Mode=' + ObjMode + '', null, 'status:no;dialogWidth:745px;dialogHeight:624px;dialogHide:true;help:no;scroll:no');
Other window opened but when im trying to get the selected value im getting error.
objMandal.val(objwinopen.split("/")[0]);
is there any syntax error in this.
Baroor
6-Oct-14 2:13am
View
shall i use window.open()?
Baroor
6-Oct-14 2:11am
View
dailogue box will work on all browsers??
Baroor
1-Oct-14 6:38am
View
If we use window.open(), it only opens window, but doesnt return any value.
Baroor
13-Sep-14 0:23am
View
If i have 50 rows, alternate row css should remain same.
Baroor
22-Jul-14 6:16am
View
EX: C://Parent Filder/Child Folder/file.
By using above method im getting only "C://Parent Filder/Child Folder".
not getting file name.
Baroor
20-May-14 8:57am
View
i dont want to use any extra buttons, preview should happen immediatley after selecting image.
Baroor
20-May-14 8:48am
View
I want after browse button click which work on IE 8.
Baroor
20-May-14 8:43am
View
My project is for IE 8.
Baroor
20-May-14 8:30am
View
Thanks for replying, but it is not working on IE 8.
Baroor
20-May-14 8:27am
View
But it will not work on IE 8.
Baroor
19-May-14 8:04am
View
I don't want to use any extra buttons like Upload, Preview, i want to display immediately after browse button.
Baroor
10-Jan-13 1:17am
View
Will u please explain it briefly?
Baroor
10-Jan-13 0:52am
View
Deleted
..
Show More