15,890,438 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 sameer549 (Top 57 by date)
sameer549
7-Aug-17 1:56am
View
http://www.c-sharpcorner.com/UploadFile/dpatra/autocomplete-textbox-in-wpf/
sameer549
13-Jul-17 1:13am
View
whats problem you are facing with background worker ??
I did many such long running tasks using background worker.
checkout the simple example with background worker and try to implement.
https://www.codeproject.com/Articles/99143/BackgroundWorker-Class-Sample-for-Beginners
sameer549
6-Jul-17 9:01am
View
biometric data will be saved in its configured DB, and you can write your own windows service to access the data and do the remaining things..
sameer549
22-Jun-17 8:01am
View
did you try Using both SendKeys.Send() and SendKeys.Sendwait() ??
sameer549
21-May-17 7:11am
View
register pageload script from codebehind and call your javascript function
sameer549
20-May-17 6:39am
View
yes but stringBuilder cant hold string for lakhs of records, definitely it throw memory out exception at some point.
sameer549
20-May-17 6:12am
View
when you are working with bulk data, need to read the rows in a chunks/loop, for example, 1000 rows each time
sameer549
15-May-17 7:43am
View
can you explain, y do u need this ?
sameer549
15-May-17 7:39am
View
welcome, please always check google before posting question.
sameer549
13-May-17 4:09am
View
may i know what problem you facing ?
sameer549
13-May-17 4:07am
View
what ajax you tried ? did you search your question on google ?
sameer549
25-Apr-17 3:27am
View
i need suggestion on how best we can display differences on UI.
sameer549
24-Apr-17 8:45am
View
give your exact input string.. is it contains multiple lines as you given above?
sameer549
24-Apr-17 7:11am
View
then it should work, debug and check data in dt (gvDetails.DataSource = dt;)
sameer549
24-Apr-17 6:53am
View
did you bind gridview after inserting data ?
sameer549
24-Apr-17 6:23am
View
keep your question simple, no one will look into this much big code.
what you want ? what you tried? where you facing problem ?
sameer549
24-Apr-17 3:43am
View
if its working in localhost then it should work on server also,
check your server credentials
and be sure whether ajax request hitting the right path
sameer549
19-Apr-17 3:35am
View
you cannot achieve this directly, you need to save the checkbox state in some variable and then hide/show checkbox in subform load event.
http://stackoverflow.com/questions/14616958/saving-the-form-state-then-opening-it-back-up-in-the-same-state
sameer549
18-Apr-17 4:40am
View
if (lbl.Text == "Empty")
{
e.Row.Visible = false && RENT == 0;
return; //will stop here
}
is this what you are expecting ?
sameer549
13-Apr-17 1:19am
View
ohh i didn't observed, good.
sameer549
13-Apr-17 1:06am
View
Hi karthik, i guess filter should be like this,
string filter = string.Join(",", list.Select(r=> "'"+ r + "'"));
sameer549
11-Apr-17 3:05am
View
try commenting ClientScript.RegisterStartupScript, and try again.
sameer549
6-Apr-17 8:32am
View
try inspect element and check whether class is applying or any other css overriding.
sameer549
4-Apr-17 8:46am
View
yes you are right Richard
sameer549
4-Apr-17 8:18am
View
yes, read my above comment properly, in your c#,
step1: access gridview from master page
step2: loop through gridview rows
step3: while looping, find any controls(label/textbox/linkbutton) from gridview row, and then you can get the properties/values from that control
sameer549
4-Apr-17 8:06am
View
from where did you added the office2013.dll reference ?
did you check version issues ? All systems have office application of same version ?
sameer549
4-Apr-17 7:45am
View
if you are using item templates, then first you need to access the item control from the gridview row, and then you can access the text of particular control.
for example,
Label lblID = (Label)gv.Rows[index].cells[0].FindControl("lblID");
string value = lblID.Text;
sameer549
4-Apr-17 7:28am
View
are you getting any exception ?
have you used any item templates in gridview designing ?
sameer549
28-Mar-17 5:34am
View
can you explain clearly what you want to achieve, and where are you stopping ?
as per my understanding, your code needs modification like this,
if(Result.HasRows)
{
while (Result.Read())
{
//do here data reading stuff here
}
}
sameer549
28-Mar-17 5:04am
View
i think in butUpdateMember_Click, you are missing update command before line, adp.Update(dtEditMember)
it should be something like
//select the update command
adp.UpdateCommand=cmd;
//update the data source
adp.Update(dtEditMember);
sameer549
27-Mar-17 6:42am
View
check this link once,
http://www.c-sharpcorner.com/uploadfile/61b832/sqldataadapter-update-method/
sameer549
26-Mar-17 6:50am
View
prepare steps for your program and search on google accordingly,
for example:
step1: reading text from file line by line
step2: fill the datatable in a loop
step3: bind datatable to gridview.
Sample code will be something like this, (code not tested)
StreamReader fileReader = new StreamReader(filePath);
string line; DataTable dt = new DataTable();
dt.Columns.Add("Column1");
while ((line = fileReader.ReadLine()) != null)
{
DataRow dr = dt.NewRow();
dr["Column1"] = line.ToString();
dt.Rows.Add(dr);
}
GridView1.DataSource = dt;
GridView1.DataBind();
sameer549
24-Feb-17 9:09am
View
Hey Richard its working fine, Thank you.
sameer549
23-Feb-17 15:31pm
View
similarly, can you please make the first regex to work for any word ?
sameer549
23-Feb-17 15:20pm
View
hi richard,
thanks for comments, in the second regex u have hardcoded "simp", which will work for simplg but not for other words. Can you make it more helpful, because i am working on find replace kind of thing and user can enter any input.
sameer549
14-Feb-17 15:35pm
View
Can Anyone plz guide me on this ?
sameer549
9-Jan-17 6:51am
View
Hi pete, thanks for the link, but i found it very complex to understand.
sameer549
3-Jan-17 7:13am
View
anyone plz help me for this ??
sameer549
18-Nov-14 0:06am
View
i suggest you its better to ask a question in github, you will get quick solution.. https://github.com/MahApps/mahapps.github.com
sameer549
18-Nov-14 0:01am
View
your question is not clear..
sameer549
22-Sep-14 1:52am
View
Hi,
Thanks for your solution. But i know this what you have given.. please read my question clearly
sameer549
5-Aug-14 5:00am
View
I dont think there will be a need of different connections. do u want to use different connectionStrings/same connectionstring with different connections ?
sameer549
5-Aug-14 3:20am
View
I think there is no other way, you have to implement this in your code logic. At runtime you have to when application starts, store the connectionString as it is in Use, and you have to release the connectionString when application terminates.
sameer549
4-Aug-14 3:35am
View
Hi Mehdi, thanks for ur reply, i have already gone through this link, but i didn't found File->Export->Forward Engineer SQL CREATE Script option in workbench 6.1 . However i generated script using right click option by selecting all the tables,and stored procedures.
sameer549
24-Jul-14 7:46am
View
there are many options first decide what you want to do. whether you want to enhance your career a web developer or if you want to stick to windows development.!!
sameer549
23-Jul-14 12:40pm
View
you can do it in your c# code in the code behind, on your button_click event you can store the procedure result in DataTable, use a for loop and build a html string using string builder,meanwhile add Total/GrandTotal and then you can use,
here is some sample code
StringBuilder Htmlstr = new StringBuilder();
//build html string for report here
Htmlstr.Append("<script = language='javascript'>");
Htmlstr.Append("window.open('/Report.aspx');");
Htmlstr.Append("</script>");
ClientScript.RegisterStartupScript(GetType(), "GenerateReport", Htmlstr.ToString());
sameer549
8-Jul-14 7:42am
View
please be clear, what is the symbol you are using to seperate numbers ?
sameer549
5-Jul-14 4:37am
View
yes you are rite. actually mine is a typing mistake :)
sameer549
29-Jan-14 7:08am
View
Hi khan, check if u have added 2 references of excel.or else Remove the reference and add once again. And to make 'embed interop types' to false,open solution explorer right click on reference, goto properties, and set Embed Interop Types to false.
hope it helps
Regards Sameer
sameer549
17-Jan-14 1:44am
View
check what values are there in combobox2, if combobox2 has a item with value dt1.Rows[6]["Value"].ToString(); then you will get it , or else u can also add items to combobox at runtime, like combobox2.items.add("")
sameer549
16-Jan-14 1:46am
View
code behind file means the file in which u implement code logic, in code behind file u can use only c#.net and vb.net. In designing u can use html tags instead of asp tags, but for calling events u may need some additional logic
sameer549
6-Jan-14 1:40am
View
Hi karthik, the file stored in the sql db will be in encoded(unreadable) format. So first u have to extract the original text from that and then u can update/delete the sql db record based on the requirement
sameer549
26-Dec-13 4:29am
View
Deleted
r u sure that bodyPage.htm page is in root directory ?
sameer549
26-Dec-13 4:27am
View
Hi Murugappan, If u have client side validations on your aspx page, then the button click code will not execute if any validation error,to redirect u can use Response.Redirect("yourpagename.aspx"); method,
Hope this helpful,
Regards
Sameer
sameer549
12-Nov-13 0:02am
View
Hi Bernhard, we are using office 2007 only both in my system and client system .
sameer549
11-Nov-13 4:53am
View
Hi richard, thanks fr ur reply
I am getting exception while trying to access MailItem ex code :
subject = ((Microsoft.Office.Interop.Outlook.MailItem)myInbox.Items[i]).Subject;
can i know what will be the reason for this exception ??
sameer549
11-Nov-13 4:31am
View
Error Message :
Unable to cast COM object of type System_ComObject to InterfaceType “Microsoft.Office.Interop.Outlook.MailItem” . This operation failed because the QueryInterface Call on the Com Component for the Interface with ID’{00063034-0000-0000-C000-00000000046} failed due to the following error. No such interface supported (Exception from HRESULT: 0x80004002)
(E_NONINTERFACE)
Show More