15,918,889 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 Lokesh Zende (Top 71 by date)
Lokesh Zende
13-Sep-21 11:37am
View
Hey, Have you got the solution? I am also having the exactly similar case as yours.
Lokesh Zende
4-Oct-18 2:37am
View
Why my question is rated 1 star? :(
Anyone? At least point me in the right direction. Is it even possible?
Lokesh Zende
8-Aug-18 11:25am
View
Yes. This is what I did. Extracted hour, minutes and seconds part from the time string.
Lokesh Zende
26-Jul-18 3:06am
View
I have a time parameter whose value is like "14:07:58". How can I convert it to double?
Lokesh Zende
5-Jul-18 0:37am
View
Yes. I did using WHILE.
Lokesh Zende
10-Aug-17 23:33pm
View
Instead of ip address for SMTP, I used domain name and everything is working fine now.
Thanks everyone for your replies :)
I really appreciate.
Lokesh Zende
12-Jul-17 5:16am
View
Thanks for suggestion. I tried this also. Makes no difference
Lokesh Zende
12-Jul-17 1:45am
View
I can see items in each combobox in a column. So I don't think it has anything to do with BindingSource. Or does it?
Lokesh Zende
24-Feb-17 0:50am
View
Yes, the entire process happens in the same domain, in the same browser tab.
Its kind of weird, I get the session values sometimes but not always.
Lokesh Zende
13-Dec-16 6:33am
View
Thanks F-ES Sitecore :)
Lokesh Zende
7-Nov-16 4:46am
View
Thanks Setyo. Will give it a try. Meanwhile check my answer.
Lokesh Zende
18-May-16 4:36am
View
Surya,
AbhiNAV5 and RaviNATH6 are my hardcoded options in select input, so I have no trouble binding the data. I can even show the value that comes from db using ng-model.
Problem occurs when that value is not exactly same in case as that of values of options hardcoded.
Lokesh Zende
22-Apr-16 6:02am
View
Yes it does. I am saying because I have already tried that.
Lokesh Zende
22-Apr-16 5:36am
View
Yes. And that is why I want to assign the source on tab click.
Lokesh Zende
17-Apr-16 23:47pm
View
yes..I want to keep it a secret ;)
Lokesh Zende
17-Apr-16 23:46pm
View
Yes.. This is what I want. I am new to angular. I thought I would work just like the javascript. But you saved me. :)
Lokesh Zende
12-Apr-16 8:05am
View
Thank you Passion4Code :)
It would be very helpful if you could provide me with a link which explains the CRUD operations using ASP.Net.
I am not familiar with MVC :|
Lokesh Zende
16-Dec-15 4:12am
View
Yes we can read registry values. I have already done that. But just don't know where to look for sites added in trusted zone.
Lokesh Zende
3-Feb-15 6:26am
View
Yes. That was it. Thanks Zoltan.
Lokesh Zende
22-Jan-15 6:54am
View
Thank you Ryan.
Lokesh Zende
18-Dec-14 5:58am
View
yes ..
Lokesh Zende
10-Dec-14 23:58pm
View
No help
Lokesh Zende
11-Nov-14 0:38am
View
Yes there is a risk but can't help it. Below is the function in vbscript that I want to convert in javascript. If you can help, would be greatfull.
Function GetWebStationVersion()
const HKEY_LOCAL_MACHINE = &H80000002
const uninstallRegKey = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall";
const stdRegPro = "winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\default:StdRegProv";
Set objReg=GetObject(stdRegPro)
objReg.EnumKey HKEY_LOCAL_MACHINE, uninstallRegKey, arrSubKeys
For Each subkey In arrSubKeys
objReg.GetStringValue HKEY_LOCAL_MACHINE, uninstallRegKey & "\" & subkey, "DisplayName", strDisplayName
If InStr(1, strDisplayName, "My webstation", vbTextCompare) > 0 Then
objReg.GetStringValue HKEY_LOCAL_MACHINE, uninstallRegKey & "\" & subkey, "DisplayVersion", strVersion
Exit For
End If
Next
GetWebStationSVersion = strVersion
End Function
Lokesh Zende
7-Nov-14 6:08am
View
Ok. But then what about RegRead method ?
Lokesh Zende
7-Nov-14 5:19am
View
I have a plugin that sets the value in the registry when installed. Using those values I can check few things.
And my application is not cross browser. It is for IE users only.
Lokesh Zende
13-Mar-14 7:30am
View
I am using framework 3.5. My application has almost 100+ pages.
Lokesh Zende
6-Jan-14 2:33am
View
Good one Maciej Los.
Thanks for showing a new way. I have never thought of this.
Lokesh Zende
15-Oct-13 4:58am
View
Thanks Rohan. This also works.
Lokesh Zende
2-Jul-13 1:12am
View
Hi Nick Ginis . Thanks for your reply. Could you please tell me how can I send the array using Ajax as I am not used to Ajax and JQuery?
Lokesh Zende
28-May-13 4:44am
View
Thanks a TON...
It helped me in my other Time Out issue as well ..
:)
Lokesh Zende
28-May-13 2:29am
View
Worked..
Thanks Maciej Los :)
Lokesh Zende
4-Feb-13 0:48am
View
Yes, it is possible..using Rewrite rules we can achieve this.
Now, do you know anything about Rewrite rules???
Lokesh Zende
2-Jan-13 8:50am
View
Thanks for your reply Gaurav. But this is not what I am looking for. I start a sql job on button click and leave the rest to happen on that job. Mean while I do my other transactions. But whenever I visit the sql job page, it should show me the percent completed by the job. My sql job and this progress bar (or whatever the control may be) should be in sync.
Any help now ?
Thanks.
Lokesh Zende
19-Dec-12 8:33am
View
Will I not need to specify anything int the Notification or Alert section of the Job Properties? If I have to call the procedure "sp_send_dbmail" after a job is done, then what is the use of setting the mail account and creating the profile as described in the post? I was expecting that the mail id I put while creating the mail account, will get the notification mails.
Lokesh Zende
19-Dec-12 8:15am
View
Thanks for your reply Prasad.
I know how to create and schedule a job. I want to receive a mail when my scheduled job succeeds or fails.
Lokesh Zende
19-Dec-12 8:09am
View
Sir I used the same procedure to create my profile n account to send the mail.
I tried sending the test mail as well, it worked. but now I want to send the mail if any SQL job fails / succeeds.
And btw, I like your blog as well. Its very helpful for newbies like me.
Lokesh Zende
19-Dec-12 6:31am
View
So whats the problem ??
Please paste your problem.
Lokesh Zende
29-Nov-12 6:07am
View
Hello Sanjay,
Yes, it definitely works. But I dont want to save the excel in other formats. Rather, how can I ask the user to do such things. hahaha..Hope u can understand.
Thanks for reply.
Lokesh Zende
23-Oct-12 4:50am
View
Exactly what i was looking for.. :)
Thanks.
Lokesh Zende
28-Aug-12 3:04am
View
Thanks for your quick reply. I always tell the same thing, but..
He expects how the server come to know what is the data? In which form it is?
What does the server do when it receives the data?
Lokesh Zende
30-Jul-12 5:52am
View
Reason for my vote of 5
Good article
Lokesh Zende
3-Jul-12 4:33am
View
quiet right guess sandip. my 5
Lokesh Zende
3-Jul-12 4:25am
View
My 5..
Lokesh Zende
2-Jul-12 6:38am
View
yes sandip, thats the reason. Any solution for it?
Lokesh Zende
2-Jul-12 5:16am
View
It works only till FileSave Dialogue box opens.
Once I save the file, nothing happens.Page doesn't refresh.
Lokesh Zende
6-Apr-12 1:57am
View
Thanks OriginalGriff ...
:)
Lokesh Zende
22-Mar-12 0:34am
View
Yes Shreekar,
I did the same way. :)
Lokesh Zende
22-Mar-12 0:33am
View
Thanks for this info, Sastry_kunapuli...
Lokesh Zende
18-Jan-12 4:15am
View
Deleted
Hi SAKryukov,Thanx 4 your quick rply
Lokesh Zende
16-Jan-12 10:02am
View
Tried this... but no help... :(
Lokesh Zende
23-Dec-11 3:11am
View
Thanks Amir... :)
Lokesh Zende
8-Dec-11 2:26am
View
finally got it working guys..
function Comma(Num) {
var number = Num;
if (number.length > 3) {
Num += '';
Num = Num.replace(/,/g, '');
x = Num.split('.');
x1 = x[0];
x2 = x.length > 1 ? '.' + x[1] : '';
var rgx = /(\d+)(\d{3})/;
var x3;
x1 = x1.replace(rgx, '$1' + ',' + '$2');
if (x1.length > 3) {
x3 = x1.split(',');
rgx = /(\d+)(\d{2})/;
while (rgx.test(x3[0]))
x3[0] = x3[0].replace(rgx, '$1' + ',' + '$2');
}
if ((x1.length == 3 && x2.indexOf(".") != -1) || (x1.length == 2 && x2.indexOf(".") != -1) || (x1.length == 1 && x2.indexOf(".") != -1))
return x1 + x2;
else
return x3[0] + ',' + x3[1] + x2;
}
else {
return Num;
}
}
Lokesh Zende
6-Dec-11 0:04am
View
Thanks for the replies..
But my client is not happy with the behaviour of MaskedEditExtender.
It shows commas and dot while typing, which he thinks is quit annoynig.
Could you please help me with what I have (i.e. that script function) ???
Lokesh Zende
23-Nov-11 1:47am
View
Hi _Domain S_,
Thanks for your quick response.
Please see my code and tell me if anything is wrong with it..
Lokesh Zende
23-Nov-11 1:45am
View
Deleted
Hi _Damian S_,
Thanks for your quick response.
Yes, my file is getting created properly and I can open it without any trouble.
Here's my code
public enum ExcelVersion
{
Excel,
Excel2007
};
private string ProviderExcel = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=";
private string ExtendedPropertiesExcel = "Extended Properties=\"Excel 8.0;HDR=Yes;IMEX=1\"";
private string ProviderExcel2007 = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=";
private string ExtendedPropertiesExcel2007 = "Extended Properties=\"Excel 12.0;HDR=YES\"";
private string mConnString = "";
protected void btnPost_Click(object sender, EventArgs e)
{
if (rdpUpload.UploadedFiles.Count == 0)
throw new Exception("Please select file to upload");
string sExtension = "";
string FileName = "";
ApplicationDirectoryTypeInfoList oApplicationDirectoryTypeInfoList = ApplicationDirectoryTypeInfoList.GetAllApplicationDirectories(); // my classes to read Directory..
ApplicationDirectoryTypeInfo oApplicationDirectoryTypeInfo = oApplicationDirectoryTypeInfoList.GetItem(35);
string FilePath = oApplicationDirectoryTypeInfo.ApplicationDirectoryFQN;
FilePath = FilePath.Substring(FilePath.IndexOf("/") + 1);
FilePath = AppDomain.CurrentDomain.BaseDirectory + FilePath;
foreach (UploadedFile file in rdpUpload.UploadedFiles)
{
FileName = file.GetName();
sExtension = file.GetName();
sExtension = sExtension.Substring(sExtension.LastIndexOf(".") + 1);
if (sExtension != "xls")
throw new System.Exception("Select .xls/.xlsx file ");
ExcelImport(ExcelVersion.Excel, FilePath + "//" + FileName);
GetPaymentVouchers();
}
}
public void ExcelImport(ExcelVersion ver, string FilePath)
{
switch (ver)
{
case ExcelVersion.Excel:
mConnString = ProviderExcel + FilePath + ";" + ExtendedPropertiesExcel;
break;
case ExcelVersion.Excel2007:
mConnString = ProviderExcel2007 + FilePath + ";" + ExtendedPropertiesExcel2007;
break;
}
}
public void GetPaymentVouchers()
{
OleDbConnection cn = new OleDbConnection(mConnString);
try
{
cn.Open(); // I get Error here while opening Connection...
DataTable schemaTable = cn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, new object[] { null, null, null, "TABLE" });
string SheetName = schemaTable.Rows[0][2].ToString();
StringBuilder SelectStatement = new StringBuilder();
SelectStatement.Append("SELECT * FROM [").Append(SheetName).Append("]");
OleDbDataAdapter da = new OleDbDataAdapter(SelectStatement.ToString(), cn);
DataSet ds = new DataSet();
da.Fill(ds);
}
catch(Exception ex)
{}
}
Lokesh Zende
16-Nov-11 6:07am
View
Thanks for your reply Deepak..
But while googling, I had already tried your solution..It doesn't work..:(
Lokesh Zende
19-Feb-11 5:27am
View
Hey Dylan Morley,
I have never used Jquery. So I dont know how do we do it.
But thanks for your helping hand.
Lokesh Zende
19-Feb-11 5:25am
View
Hi T.Saravanann,
I already tried by this way.
It works but not what I wanted..
It first opens a popup and then I go to server side code.
What I want is,
1.I click a button,
2.xecute some code on btn_Click event,
3.at certain condition in code (like if(a==b)), open pop up
Dont proceed further unless and untill I click Ok/Cancel button on popup.
Lokesh Zende
19-Feb-11 5:19am
View
Hi Sandeep,
Thanks for your reply.
I tried using RegisterClientScript.
What is happening is, it is executing my whole code and then giving me pop up.
I want to open popup at certian point. When it opens, further code should not be xecuted unless and untill I click OK/Cancel button of that confirmation box
Lokesh Zende
18-Feb-11 4:03am
View
This is not what I wanted OriginalGriff.
It is possible to open popup from server side.
I just cant find it how do we do it.
Lokesh Zende
8-Feb-11 6:02am
View
Hey,
I got the solution(?) or problem cause.
My query string was not well formed.
anyways, thanx for your helping hand.
Lokesh Zende
8-Feb-11 3:56am
View
Hey Sandeep,
Thanks for ur response buddy.
I checked the discussion you suggested but I still cant find the solution.
What to check in LAN Settings?
Any further help?
Lokesh Zende
7-Feb-11 8:51am
View
Ty Omi
Lokesh Zende
2-Dec-10 23:38pm
View
I am still not clear with you.
Colud you please tell me what exactly should I do?
Lokesh Zende
25-Nov-10 2:05am
View
Hi Sandip,
I have used Form authentication only.
This is what I have in Web.Config :
<authentication mode="Forms">
<forms loginUrl="~/Default.aspx" name="XESS" timeout="120" />
</authentication>
Lokesh Zende
12-Nov-10 6:36am
View
My apologies.
I will keep it in mind Mr. Richard MacCutchan.
Lokesh Zende
12-Nov-10 4:14am
View
Why m not allowed to use URGENT word?
and you dont know about A * algo?
Hav u ever heard of Shortest Path algo?
Lokesh Zende
29-Oct-10 5:37am
View
Toli Cuturicu, that was some misatke.
Now chk this one.
Lokesh Zende
28-Oct-10 5:54am
View
It will work.
Lokesh Zende
14-Sep-10 4:32am
View
Hi Sunasara..
Thanks for your reply.
I already have a page which I want to open as a modal popup.
Can u help me with that.
Lokesh Zende
29-May-10 7:06am
View
Reason for my vote of 2
works fine for me
Show More