15,889,874 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 Agarwal1984 (Top 75 by date)
Agarwal1984
3-Apr-23 23:59pm
View
Try this link just for example.
https://jsplayground.syncfusion.com/zl1n5bnn
Agarwal1984
3-Apr-23 8:28am
View
I am not working remotely.
I am working locally.
I am running application from my code and after publish the code, that right alt+p not working in functional team's laptop also.
Single Alt key is working from both side but when we use (Alt + P) or any other alphabet key with Alt so it's not working right side.
Agarwal1984
3-Apr-23 0:57am
View
not my keyboard problem, problem with only combination with P, single alt working fine but with combination not working.
This problem in every system I have tried many system or keyboard.
Agarwal1984
31-Mar-23 2:04am
View
Google Chrome Browser.
yes It is my keyboard.
Agarwal1984
29-Mar-23 0:05am
View
When i type left alt + P so condition is true but when i type right side alt key so its condition is false.
I did not resolve my issue, i want to run same functionality left or right alt key type with P.
Actually problem with combination with P or any alphabet key.
Agarwal1984
30-Jun-20 5:42am
View
I want to ask one question:-
is this correct way for find file name in path:-
https://abc.com/images/Upload/" + f.XMarksSheetName + "," + f.XCertificateName + "," + f.XIIMarksSheetName + "," + "," + f.XIICertificateName + "," + f.GMarksSheetName + "," + f.GCertificateName + "," + f.FileName + "," + f.FileNameNationalId + "," + f.FileNamePassport.
or can you suggest me right way and what i use get file list from this path.
Agarwal1984
30-Jun-20 5:19am
View
if we use local directory, so we can easily pick the files using:-
var directory = new DirectoryInfo(filePath);
var myFile = (from f in directory.GetFiles()
select f).First();
but my issue with https we server.
Directory info not working with https web server.
Agarwal1984
30-Jun-20 5:15am
View
Suppose my url: https://abc.com/images/Upload
and files: XMarksheet.pdf,XCertificate.pdf etc. in my https folder.
my simple question i want to get files from path so we can use files further.
Agarwal1984
30-Jun-20 4:11am
View
Please give me a solution, how can we get files from https server path?
Agarwal1984
30-Jun-20 4:06am
View
f.XMarksSheetName etc. are my file names and file already stored in "https://abc.com/images/Upload/".
I want to try get files according to my file names.
My simple question is "How to get selected files from https server path"?
Agarwal1984
9-Jul-18 0:22am
View
Actually my error in my controller-
System.Web.HttpContext.Current.Session["Title"] = "Manage Global Copa Dimension";
Session value is not passing in this session.
Agarwal1984
12-Jun-18 6:34am
View
my priority using c# code,and i want to format a particular column. Its a client need not mine.
Agarwal1984
15-Feb-18 4:52am
View
Deleted
I have tried:-
select FORMAT(CreatedDateTime,'MMMM yy') as Months, count(*) as Request from LRequests
group by FORMAT(CreatedDateTime,'MMMM yy')
order by CreatedDateTime desc
its getting error:
Column "LRequests.CreatedDateTime" is invalid in the ORDER BY clause because it is not contained in either an aggregate function or the GROUP BY clause.
Agarwal1984
15-Feb-18 4:51am
View
Deleted
I have tried:-
select FORMAT(CreatedDateTime,'MMMM yy') as Months, count(*) as Request from LRequests
group by FORMAT(CreatedDateTime,'MMMM yy')
order by CreatedDateTime desc
its getting error:
Column "LRequests.CreatedDateTime" is invalid in the ORDER BY clause because it is not contained in either an aggregate function or the GROUP BY clause.
Agarwal1984
13-Jan-18 2:17am
View
I cant use any third party library, we can only use OLE DB
Agarwal1984
27-Oct-17 6:18am
View
i tried but problem is still.
when i click my image button and then edit button so problem is coming after that.
<asp:ImageButton ID="img_user" runat="server" CommandName="Select" ImageUrl='<%# Eval("IsActive") %>'
Width="50px" Height="30px" />
Let suppose:- my existing dropdown selected "Interested" and i clicked on Status Button and then click on edit button so, my dropdown data has been changed "--Select Response--".
If i did not click Status (ImageButton) button and then click on Edit button so dropdown text maintain like "Interested".
Agarwal1984
27-Oct-17 6:08am
View
actually user can select data from dropdownlist if he will clicked on edit button.
Agarwal1984
27-Oct-17 6:01am
View
<asp:TemplateField HeaderText="Client Response">
<itemtemplate>
<asp:Label ID="lblClientResponse" runat="server" Text='<%# Eval("ClientResponse") %>' />
<%-- <%#Eval("ClientResponse")%>--%>
<edititemtemplate>
<asp:Label ID="lblClientResponse" runat="server" Text='<%# Eval("ClientResponse") %>'
Visible="false" />
<asp:DropDownList ID="ddlClientResponse" runat="server" AutoPostBack="True">
<asp:ListItem Value="0">-Select Response-
<asp:ListItem Value="1">Interested
<asp:ListItem Value="2">Not Interested
<asp:ListItem Value="3">Hold
<asp:ListItem Value="4">Call Not Received
<asp:ListItem Value="5">Not Reachable
<asp:ListItem Value="6">Wrong Number
<asp:ListItem Value="7">Switched Off
Agarwal1984
10-Oct-17 4:16am
View
my requirement is:-
--Select--
1
2
3
4
i want to fill combobox with --Select-- but my data successfully filled without select.
Agarwal1984
10-Oct-17 3:45am
View
Now its getting error:-
Input string was not in a correct format.Couldn't store <--Select--> in OrderID Column. Expected type is Int32.
I changed my code:-
public DataTable GetAllBillNo()
{
DataTable dt = new DataTable();
SqlCommand cmd = new SqlCommand("spGetAllBillNo", GetConnection());
cmd.CommandType = CommandType.StoredProcedure;
SqlDataAdapter sda = new SqlDataAdapter(cmd);
sda.Fill(dt);
DataRow dr;
dr = dt.NewRow();
dr.ItemArray = new object[] {"--Select--"};
dt.Rows.InsertAt(dr,0);
return dt;
}
if i convert.int so then another error is giving:- input string was not in a correct format.
Agarwal1984
10-Oct-17 3:27am
View
I am calling correct SP.
Only one column in my dt.
Only OrderID.
when i am not using this code:-
DataRow dr;
dr = dt.NewRow();
dr.ItemArray = new object[] { 0, "--Select--" };//Error in this line.
dt.Rows.InsertAt(dr, 0);
So, value are displaying in my combobox but i want to initial value at 0 position like "--Select--"
DataTable is returning in Single column:-
select OrderID from Orders (this query written in SP).
Agarwal1984
2-Jan-17 3:56am
View
Now error is coming in this line:-
ApplicationException
It is 'type' but is used like a 'variable'
Agarwal1984
27-Dec-16 8:19am
View
my antivirus is disabled and firewall blocked already.
Agarwal1984
23-Dec-16 2:49am
View
Thanks
Agarwal1984
23-Dec-16 2:17am
View
hi
Agarwal1984
23-Dec-16 2:15am
View
Hello
Agarwal1984
23-Dec-16 2:13am
View
When i TextBox tb=new TextBox();
and pass ChooseFolder(ref tb);
first browse button or folderBrowserDialog1 value store in second textbox.
how can we resolve?
Agarwal1984
23-Dec-16 2:11am
View
How to add ChooseFolder(ref ?) textbox?.
Agarwal1984
16-Dec-16 1:54am
View
Thanks
Agarwal1984
10-Nov-16 1:44am
View
ya same question,
I used this link:-https://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument(v=vs.110).aspx
but same problem in my code printed successfully run but my file did not move.
Please help me how to dispose print code when print complete.
Agarwal1984
9-Nov-16 23:24pm
View
so, what can we use in window service?
Agarwal1984
9-Nov-16 7:50am
View
I have tried windows service also for that functionality but Process did not run in windows service.
File was moving through windows service but not printing.
Agarwal1984
9-Nov-16 7:01am
View
So, what can i do for that, because i will be run application on server end without any UI or Button click event.
It will be run automatically. On client computer request.
Agarwal1984
9-Nov-16 6:47am
View
I have debugged my code and i have written WaitForExit, WaitForExit was calling after printing command run.
and then i am closing process also.
Agarwal1984
9-Nov-16 6:25am
View
My document successfully print but my file was not moving in another folder.
Agarwal1984
9-Nov-16 6:06am
View
I don't want to use any click event i want to use only timer basis.
like, when i tried but its getting error.
Agarwal1984
15-Oct-16 7:24am
View
I am only a developer of .Net.
Agarwal1984
15-Oct-16 7:14am
View
But my printer code did not run without any error.
foreach (string file in files)
{
ProcessStartInfo info = new ProcessStartInfo(file);
info.Verb = "Print";
info.CreateNoWindow = true;
info.WindowStyle = ProcessWindowStyle.Hidden;
Process.Start(info);
TraceService(@"C:\PrintingDocument\" + file);
TraceService(@"C:\PrintedDocument\" + file);
System.IO.File.Move(@"C:\PrintingDocument\" + file, @"C:\PrintedDocument\" + file);
}
Printer is not printing the document.
Agarwal1984
6-Sep-16 4:44am
View
Thanks but now second problem is when i unzip file so its getting error:-
Cannot read that as a ZipFile.
I am using this code:-
string zipToUnpack = @"C:\" + file;
string unpackDirectory = @"C:\";
using (ZipFile zip1 = ZipFile.Read(zipToUnpack))
{
foreach (ZipEntry ze in zip1)
{
ze.Extract(unpackDirectory, ExtractExistingFileAction.OverwriteSilently);
}
}
Agarwal1984
31-Aug-16 2:39am
View
This code is not working.
i have to run external my application exe.
Process p = new Process();
p.StartInfo.FileName = @"C:\Program Files (x86)\Microsoft\Notification\TaskbarNotifierDemo.exe";
p.StartInfo.Arguments = "/c dir *.cs";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.Start();
string output = p.StandardOutput.ReadToEnd();
p.WaitForExit();
but its getting error:-
The Just-In-Time debugger was launched without necessary security permissions. To debug this process, the Just-In-Time debugger must be run as an Administrator. Would you like to debug this process?
Its not running through windows service.
Agarwal1984
29-Jul-16 5:08am
View
Thanks it working fine.
Agarwal1984
27-Jul-16 7:21am
View
<asp:ImageField DataImageUrlField="EMPIMG" HeaderText="Person" ControlStyle-Width = "100" ControlStyle-Height = "100">
<controlstyle width="100px" height="100px">
<HeaderStyle Font-Bold="True" />
Agarwal1984
27-Jul-16 7:20am
View
I saw both link but one image column also in my gridview.
SO, how to add or bind image column using c# or jquery?
Agarwal1984
21-Jul-16 9:00am
View
or 0 value
Agarwal1984
21-Jul-16 9:00am
View
actually i am not able to write by default Text in dropdownlist.
Agarwal1984
21-Jul-16 8:59am
View
ddlRatings.Items.FindByValue("0")
Agarwal1984
6-Apr-16 5:20am
View
How will be open my page in wpf webbrowser?
Its opening in chrome.
Agarwal1984
6-Apr-16 5:18am
View
yes
Agarwal1984
2-Feb-16 4:55am
View
I am not repeating my question.
I want to hide media player controls using c#.
You can close my first question "How to open any video file on full screen mode using c# .net?"
My video is opening in full screen mode.
But now my question is different.
my media player control is not hiding.
So,please do not close my this question.
Please help me for hide media player controls using c# .net console application.
Agarwal1984
2-Feb-16 4:32am
View
p.uiMode is not coming.
Agarwal1984
2-Feb-16 4:16am
View
What is the use of command line parameter for hide mediaplayer controls during play video.
I am not seeing parameter for hide mediaplayer controls.
Agarwal1984
2-Feb-16 3:43am
View
now, opening my file,
but controls are visible,
I want to hide controls of media player.
i am using this code for run application.
static void Main(string[] args)
{
string fileName = @"c:\\Wildlife.wmv";
Process p = new Process();
p.StartInfo.FileName = "mplayer2.exe";
//Windows Media Player
p.StartInfo.Arguments = "/fullscreen " + fileName;
Thread.Sleep(10000);
p.Start();
}
I want to hide mediaplayer controls also.
Agarwal1984
30-Nov-15 4:53am
View
I have already tried of this link.
my did not resolve.
i have all ready "turn on" of Access secure app of gmail account.
Agarwal1984
25-Nov-15 5:44am
View
Thanks
Agarwal1984
25-Nov-15 5:36am
View
I don't have use custom error page.
I have to use own error page, and i have write own message on every catch block.
Agarwal1984
25-Nov-15 5:32am
View
<body>
<div class="wrap">
<div class="main">
ABC
{MESSAGE}
<p>There's a lot of reasons why this page is<span class="error"></span>.<br>
<span>Don't waste your time enjoying the look of it</span></p>
<div class="search">
<form>
<!--<input type="text" >-->
<input type="submit" value="Submit">
</form>
</div>
</div>
</body>
its my ErrorMessage Template
Agarwal1984
25-Nov-15 5:31am
View
I used this code:-
protected void Button1_Click(object sender, EventArgs e)
{
string str = PopulateBody("Exception in this page");
this.Page.Controls.Clear();
Response.Write(str);
Response.Redirect("ErrorPage.htm");
}
private string PopulateBody(string ErrorMsg)
{
string body = string.Empty;
using (StreamReader reader = new StreamReader(Server.MapPath("~/ErrorPage.htm")))
{
body = reader.ReadToEnd();
}
body = body.Replace("{MESSAGE}", ErrorMsg);
return body;
}
but message its not displaying.
Agarwal1984
23-Nov-15 7:36am
View
i want to send whole grid:-
TileImage|Desc1|Desc2
~/img/abc.jpg|ABC1|ABC2
image should be display in TileImage column.
but image is not displaing in email.
TileImage|Desc1|Desc2
x|ABC1|ABC2
its only displayed in email.
So, how can be display in tileimage column?
Agarwal1984
23-Nov-15 7:06am
View
my images in gridview, i am not using static image,
Image count can be increase in future.
Basically i have to image content gridview data to email template or email.
Gridview is displaying in email but image not displaying.
My gridview caontent showing without display image filed.
My only with only image.
I am using this code for render Gridview:_
public string GetGridviewData(GridView gv)
{
StringBuilder strBuilder = new StringBuilder();
StringWriter strWriter = new StringWriter(strBuilder);
HtmlTextWriter htw = new HtmlTextWriter(strWriter);
gvRecords.RenderControl(htw);
return strBuilder.ToString();
}
Agarwal1984
23-Nov-15 5:24am
View
my path its already in image field.
Agarwal1984
23-Nov-15 0:38am
View
Embed image is showing in Email Template but its not showing in grid or table.
Datatable its showing in email without image.
image its not displaying in image field but Description1 and Description2 are displaying.
Agarwal1984
19-Nov-15 5:27am
View
I cant remove because my server side coadding in this button.
which data saved in sql server database.
Agarwal1984
20-Oct-15 1:23am
View
Actualy i am a fresher, i don't have knowledge of unity3d but i have to develop data entry application in Unity3D.
Any my database is ms sql server 2008.
So, how can i develop app in unity3d?
Agarwal1984
12-Oct-15 5:40am
View
Its a relevant code step by step.
My problem only in Responce.End().
My second function its not calling after First ExportQRCodeGenerateImageTableData's Response.End()
Agarwal1984
6-Oct-15 9:03am
View
But session its not a good option, i want to retrieve data only selected row.
Session can be expire.
I want search any cross page posting.
Agarwal1984
30-Sep-15 9:03am
View
Confirm Form Resubmission
ERR_CACHE_MISS
Error are giving when i used :-
protected void Application_BeginRequest()
{
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.UtcNow.AddHours(-1));
Response.Cache.SetNoStore();
}
in Global.asax
Its not working..
Agarwal1984
30-Sep-15 8:45am
View
i have a back button problem, when i click on back so, old message will be displayed.
Agarwal1984
30-Sep-15 8:44am
View
where will i write in our code?
Agarwal1984
23-Sep-15 9:00am
View
Our data in this my DataTable but its not export and downloading.
Agarwal1984
23-Sep-15 6:57am
View
When we use try catch block its showing error:-
unable to evaluate expression because the code is optimized or a native frame is on top of the call stack
when we did not use try catch, so it was not showing error.
Agarwal1984
15-Sep-15 8:50am
View
I don't know, how will be do this task, i have done simple sql single table to excel, but now i will be export complete database table backup into the excel worksheet.
Agarwal1984
15-Sep-15 7:40am
View
Database backup in excel according to tables and worksheet..
Agarwal1984
11-Sep-15 7:02am
View
When i am using android Studio, so following errors are coming:-
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAX kernel module is not installed!
I have already installed "Hardware_Accelerated_Execution_Manager".
But still error are coming.
Agarwal1984
9-Sep-15 6:57am
View
How to insert data in ms sql server using android app?
Agarwal1984
4-Jul-15 6:53am
View
Thanks
Show More