15,792,060 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 Python questions
View PHP 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 kk2014 (Top 105 by date)
kk2014
26-May-15 3:16am
View
Hi,
I have gone through the link you given earlier but what is work around for this solution in order to change the text calculation.
Thanks.
kk2014
10-Nov-14 0:21am
View
I have found something new in my web.config file. Ì have allow users="*" and deny users="?" in it.
is it causing some issue?
and how can we write content in noscript tag instead redirecting to guideline page.
kk2014
10-Nov-14 0:20am
View
Deleted
I have found something new in my web.config file. i have code like below in web.config.
<deny users="?">
<allow users="*">
what is that? is it causing some issue?
kk2014
10-Nov-14 0:18am
View
Deleted
I have found something new in my web.config file. i have code like below in web.config.
<deny users="?">
<allow users="*">
what is that? is it causing some issue?
kk2014
5-Sep-14 2:38am
View
Hi Mika Wendelius,
the differences u said are the basic differences which I know. are there any other differences?
Thanks,
kk2014
12-Aug-14 3:37am
View
Hi,
I have installed runtime and made necessary changes in web.config file for crystal reports. now problem is that on my local while creating a CR I had given server name Suppose 'A' but on hosting server, the server name is suppose 'B'. nw while creating a report it gives error like below:
Error
Failed to open the connection. Details: [Database Vendor Code: 17 ] Failed to open the connection. Payroll {E7D420B1-90BB-429D-ABC5-3F697788306B}.rpt Details: [Database Vendor Code: 17 ]
Thanks,
kk2014
11-Aug-14 8:47am
View
Sorry you loose the bet. I have Crystal report 8.5 and 9.0 installed on web server. Still getting error. but the solution you gave will might be work.
kk2014
4-Aug-14 8:34am
View
string came from DB and bind to Drop down.
kk2014
29-Jul-14 5:44am
View
hello,
please read post carefully. 0.3 is real and need to convert into time(HH:MM).
kk2014
29-Jul-14 4:54am
View
yes you are right. first need to convert 0.3 into 00:30 min.
kk2014
29-Jul-14 4:54am
View
first need to convert 0.3 into 00:30 min which means half n hour.
your solution will give answer 2014-07-29 18:03:00.000.
it should get 2014-07-29 18:15:00.000.
kk2014
23-Apr-14 7:32am
View
hey daljeet singh,
i found something. please check below link:
http://social.microsoft.com/Forums/en-US/d13f3230-78d1-4c26-8276-d49cd82736c9/passing-dataset-object-from-controller-to-the-view
kk2014
23-Apr-14 7:20am
View
Yes, that is problem. How can i get the dataset or how can i print the dataset value to VIEW. I have tried with viewdata but i am not getting values instead system.data.dataset.
as ViewBag is not available in MVC2.
I am newbie to MVC.
kk2014
21-Feb-14 4:44am
View
Hi Ziee-M,
I am talking about vb6.0.
kk2014
20-Feb-14 0:08am
View
Hi Richard,
Thanks for reply.
kk2014
18-Feb-14 0:24am
View
Hello,
Yes I have already created unprotected pdf and I am not using any 3rd party tool.
with below code i am generating pdf file.
As I am working in VB6, i have to mess with it.
On Error GoTo ErrorHandler
Dim ObjWord As Word.Application
Dim objWordDoc As Word.Document
Set ObjWord = CreateObject("Word.Application")
ObjWord.Visible = True
Set objWordDoc = ObjWord.Documents.Open(DocPath)
objWordDoc.ExportAsFixedFormat OutputFileName:= _
sDests & sDestsPDFFile, ExportFormat:=wdExportFormatPDF, _
OpenAfterExport:=False, OptimizeFor:=wdExportOptimizeForPrint, Range:= _
wdExportAllDocument, From:=1, To:=1, Item:=wdExportDocumentContent, _
IncludeDocProps:=True, KeepIRM:=True, CreateBookmarks:= _
wdExportCreateNoBookmarks, DocStructureTags:=True, BitmapMissingFonts:= _
True, UseISO19005_1:=False
'objWordDoc.Password = "ita@123"
ObjWord.Quit
Set ObjWord = Nothing
Exit Function
Thanks
kk2014
18-Feb-14 0:23am
View
Deleted
On Error GoTo ErrorHandler
Dim ObjWord As Word.Application
Dim objWordDoc As Word.Document
Set ObjWord = CreateObject("Word.Application")
ObjWord.Visible = True
Set objWordDoc = ObjWord.Documents.Open(DocPath)
objWordDoc.ExportAsFixedFormat OutputFileName:= _
sDests & sDestsPDFFile, ExportFormat:=wdExportFormatPDF, _
OpenAfterExport:=False, OptimizeFor:=wdExportOptimizeForPrint, Range:= _
wdExportAllDocument, From:=1, To:=1, Item:=wdExportDocumentContent, _
IncludeDocProps:=True, KeepIRM:=True, CreateBookmarks:= _
wdExportCreateNoBookmarks, DocStructureTags:=True, BitmapMissingFonts:= _
True, UseISO19005_1:=False
ObjWord.Quit
Set ObjWord = Nothing
Exit Function
kk2014
18-Feb-14 0:23am
View
Deleted
Hello,
Yes I have already created unprotected pdf and I am not using any 3rd party tool.
with below code i am generating pdf file.
As I am working in VB6, i have to mess with it.
On Error GoTo ErrorHandler
Dim ObjWord As Word.Application
Dim objWordDoc As Word.Document
Set ObjWord = CreateObject("Word.Application")
ObjWord.Visible = True
Set objWordDoc = ObjWord.Documents.Open(DocPath)
objWordDoc.ExportAsFixedFormat OutputFileName:= _
sDests & sDestsPDFFile, ExportFormat:=wdExportFormatPDF, _
OpenAfterExport:=False, OptimizeFor:=wdExportOptimizeForPrint, Range:= _
wdExportAllDocument, From:=1, To:=1, Item:=wdExportDocumentContent, _
IncludeDocProps:=True, KeepIRM:=True, CreateBookmarks:= _
wdExportCreateNoBookmarks, DocStructureTags:=True, BitmapMissingFonts:= _
True, UseISO19005_1:=False
'objWordDoc.Password = "ita@123"
ObjWord.Quit
Set ObjWord = Nothing
Exit Function
Thanks
kk2014
18-Feb-14 0:22am
View
Deleted
Hello,
Yes I have already created unprotected pdf and I am not using any 3rd party tool.
with below code i am generating pdf file.
As I am working in VB6, i have to mess with it.
<pre>On Error GoTo ErrorHandler
Dim ObjWord As Word.Application
Dim objWordDoc As Word.Document
Set ObjWord = CreateObject("Word.Application")
ObjWord.Visible = True
Set objWordDoc = ObjWord.Documents.Open(DocPath)
objWordDoc.ExportAsFixedFormat OutputFileName:= _
sDests & sDestsPDFFile, ExportFormat:=wdExportFormatPDF, _
OpenAfterExport:=False, OptimizeFor:=wdExportOptimizeForPrint, Range:= _
wdExportAllDocument, From:=1, To:=1, Item:=wdExportDocumentContent, _
IncludeDocProps:=True, KeepIRM:=True, CreateBookmarks:= _
wdExportCreateNoBookmarks, DocStructureTags:=True, BitmapMissingFonts:= _
True, UseISO19005_1:=False
'objWordDoc.Password = "ita@123"
ObjWord.Quit
Set ObjWord = Nothing
Exit Function</pre>
Thanks
kk2014
17-Feb-14 8:20am
View
did you get the solution?
i have to implement the same functionality.
kk2014
27-Sep-13 4:37am
View
Hi Phantom,
have u read my post carefully? if you do so then i have also written "once i stop the debugging then why it is executing the code?".
this is simple thing if i have not pasted the code then also you can give the answer. right?
thanks
kk2014
27-Sep-13 4:34am
View
Hi Asif,
i know that but please read my question again. i want to know if i stop debugging then rest of the code should not execute. then why it is executing?
thanks,
krunal
kk2014
17-Sep-13 7:32am
View
hi harshil,
i think ipaddress = Request.ServerVariables["REMOTE_ADDR"]; will work. actually i want to show ISP's address.
thanks,
kk2014
17-Sep-13 6:30am
View
hi cpallini,
i don;t want to use webservice. i want free api or google api that can solve my problem.
i fed up by searching too much but i dnt get my solution. i have tried apis but some are dont working.
thanks.
kk2014
17-Sep-13 6:20am
View
hi harshil,
thanks for the reply. but this link doesn't work for me. i downloaded code and it requires API key. for that i have to register and registration is unavailable,
is there free api is available which is in working condition? i have tried so many apis but it didn't work for me.
thanks.
kk2014
29-Aug-13 7:10am
View
you mean you want js pop up background color change?
kk2014
4-Jun-13 7:07am
View
hi prasad,
i don't know how to determine the country/location but i want user date and time from where he/she will open the website.
thanks.
kk2014
30-May-13 6:04am
View
no i have column 'password' which have datatype varchar(50) right now but i want to change datatype to binary(16).
how can i do it?
kk2014
29-May-13 6:52am
View
hi,
i want to convert datatype varchar to binary(16) in my db table.
how can i do that?
thanks.
kk2014
28-May-13 4:02am
View
Hi aarti,
it works for me. i got exactly which i want.
thank.
kk2014
28-May-13 4:00am
View
hi Basmed Awad,
thanks for the reply but i want to do that inine query. so solution 1 is working for me.
but thanks for the reply.
kk2014
25-May-13 9:27am
View
hi,
i said html text boxes not asp.
but thanks for the reply.
thanks.
kk2014
18-May-13 7:21am
View
u mean to say u want data between <div class="important-dates domain-data"> and </div> from code behind. right?
kk2014
17-May-13 5:56am
View
hi,
in short i don't want to redirect to page test.aspx if flag=1.
thanks
kk2014
17-May-13 5:48am
View
hi,
in short i don't want to redirect to page test.aspx if flag=1.
thanks
kk2014
30-Apr-13 7:24am
View
i have just checked it and it is working on fb login i can access/redirect to other pages..
kk2014
30-Apr-13 7:19am
View
Hi sonu,
till i have faced this type of situations, if user have not registered in your site then we are providing facility to login with facebook account.right nw u are doing that by signing with fb acc successfully.right.
AND
if user have account in both sites then still user can access other pages.
kk2014
30-Apr-13 3:47am
View
IE is the most ridiculousness browser. i am also facing compatibility issues ...
kk2014
26-Apr-13 8:07am
View
delete above code which is in your .aspx page
kk2014
26-Apr-13 7:52am
View
remove code
<script type="text/javascript">
//<![CDATA[
alert('Please, enter valid User id.');//]]>
</script>
it initializes every time when your page loads....
let me know if it works for you...
kk2014
26-Apr-13 7:40am
View
can you paste your code here. so i can check and revert back to you...
kk2014
26-Apr-13 7:38am
View
ok. where did you put your ScriptManager.RegisterStartupScript(this, typeof(Page), "script", "alert('Please, enter valid User id.');", true); ???
kk2014
26-Apr-13 7:08am
View
have u given your button as a default button in your form somewhere?
kk2014
26-Apr-13 7:07am
View
hi,
please check in database your primary key id.
is it Upid or something else?
your error suggest that it is some naming problem...
kk2014
26-Apr-13 7:05am
View
you can split like..
string str=yourcell.split('\n');
some thing like that...
kk2014
26-Apr-13 7:01am
View
Deleted
http://forums.iis.net/t/1174490.aspx/1
http://forums.asp.net/t/1607786.aspx
kk2014
26-Apr-13 7:00am
View
u got any error? if yes then paste in reply.
kk2014
26-Apr-13 6:51am
View
i think it will give
'Object reference not set to an instance of an object.' error.
because when u click on link button and press yes in your confirmation msg it will go to row data bound when it finds the button and check condition
if (lblGrdStatus.Text != "Translation")
{
lnkDelete.Enabled = false;
}
but have no text so will result in error.
kk2014
19-Apr-13 5:35am
View
glad to hear that...
:)
kk2014
19-Apr-13 4:32am
View
is my solution solved your query?
kk2014
19-Apr-13 3:56am
View
so if you want to show submitted data on another page then u can fetch that record from database on another page. you can give style to that form.
it is simple.
kk2014
19-Apr-13 3:44am
View
user want to see that form on another page or same page?
kk2014
19-Apr-13 3:32am
View
please elaborate your req.
what is "every form is submitted on the basis of an id. and i want to get the readonly view of that form which is related to that id." in your post?
kk2014
19-Apr-13 3:25am
View
you can make the controls read only after form submission..
kk2014
8-Mar-13 7:23am
View
hi Richard MacCutchan,
i have tried this also.
System.IO.File.GetLastWriteTime(System.Reflection.Assembly.GetExecutingAssembly().Location).ToString("dd-MM-yyyy hh:mm:ss");
but no change. at last i have to upload code as .zip on ftp and then extract it and then replace old code with updated one.
there also build the code. so it will show that date.
kk2014
5-Mar-13 1:30am
View
that's not the way...if i release .zip file today and client unzip it 2 days later and upload code then it should display 2 days previous date.
kk2014
27-Feb-13 3:30am
View
hi Goutam Patra,
thanks for the quick reply.
can i get that API?
kk2014
17-Dec-12 6:33am
View
hi Armando Talex,
thanks for the advice. i am going to design in pixel instead of £ calculation.
kk2014
12-Dec-12 6:15am
View
i had written for just to check actually where and what the actual error is?
kk2014
12-Dec-12 5:49am
View
what is the question and where u are getting error?
kk2014
12-Dec-12 5:26am
View
u mean to say if file is uploaded then you want to show preview button...
kk2014
12-Dec-12 5:18am
View
hi please clarify about repeaters...are they nested repeaters or seprate repeaters... and how data to be exported in excel?
kk2014
12-Dec-12 5:10am
View
i think your .aspx code is not completed...
u wrote
Label lblInstallments = ((Label)e.Row.FindControl("lblInstallments"));
where is lblInstallments in gridview?
kk2014
12-Dec-12 3:25am
View
and i don't fine your link hide code. you are hiding your label only...
kk2014
12-Dec-12 3:17am
View
hiplease paste your .aspx page and .aspx.cs page code. i mean paste whole code. so i can trace it easily...
kk2014
12-Dec-12 3:05am
View
please elaborate your requirement.
kk2014
12-Dec-12 2:32am
View
what have you done so far? please paste your query here.
which date format are you using from dd/mm/yyyy or mm/dd/yyyy?
kk2014
11-Dec-12 7:48am
View
no error comes..nothing happens....and also not sending mail...
it works fine on my local machine but problem is on my live server....
kk2014
11-Dec-12 3:38am
View
please paste your both .aspx and .aspx.cs code here...
kk2014
11-Dec-12 3:34am
View
ok wait...:)
kk2014
11-Dec-12 3:25am
View
ok let me check what i can do for you...but can u tell me or paste your code here what you had done so far....so i get to know..thanks
kk2014
11-Dec-12 3:22am
View
ok so text.txt file at d:websites2 location contains div tag. it shuold be deleted.right????
kk2014
11-Dec-12 3:10am
View
you mean to say at a time of exporting file you want to give your file name?right?please elaborate...
kk2014
11-Dec-12 3:04am
View
you mean to say the code above u given will write in text file and delete mydiv lines from that....right?
kk2014
11-Dec-12 1:28am
View
can u please paste your code here? so here i can check also....
thanks,.
kk2014
11-Dec-12 1:14am
View
try literal instead dropdownlist.
cmd.Parameters.Add("@Project", SqlDbType.VarChar).Value = ((Literal)GridView1.Rows[0].Cells[2].Controls[0]).SelectedItem.Text;
kk2014
11-Dec-12 1:06am
View
then, what is the question? please elaborate....
kk2014
10-Dec-12 3:34am
View
please paste your .aspx code and .aspx.cs code also.
kk2014
8-Dec-12 5:28am
View
can u please tell us which type of error is coming? and what is the flow of your requirement?
kk2014
8-Dec-12 3:38am
View
hi u want this result by query in db or what?please elaborate your question.
kk2014
5-Dec-12 3:33am
View
cant understand what you want to say...please elaborate
kk2014
21-Nov-12 2:37am
View
hey thanks,
kk2014
19-Nov-12 4:36am
View
hi,
i am working on c# desktop application. it doesnt allow me response property of ex at HttpWebResponse resp = (HttpWebResponse)ex.Response;
kk2014
19-Nov-12 4:34am
View
i am working on c# desktop application and if username and password donot match then i want that authentication error code.
kk2014
27-Oct-12 6:21am
View
hi,
Please check username and password you are using for the same...
kk2014
12-Oct-12 7:29am
View
hi amit,
i have putted physical page and redirecting to https://.
it works for me.
thanks,
krunal
kk2014
12-Oct-12 5:51am
View
hi amit,
is it possible that without i hardcode in my application, if i write http://test.com or test.com in adress bar, then it directly redirect to https://test.com.
i don't want to write code in http://test.com.
which setting i do in https://test.com redirect me to https://?
kk2014
12-Oct-12 4:47am
View
hi amit,
thanks for the quick reply. let i know you update...
kk2014
28-Sep-12 7:03am
View
if you write CommandName and text same then it will give error 'The GridView 'GridView1' fired event Rowediting which wasn't handled' so that you have to write
protected void grdcontry_RowEditing(object sender, GridViewEditEventArgs e)
{}
but if you give CommandName and text different then it will not give error and no need to write
protected void grdcontry_RowEditing(object sender, GridViewEditEventArgs e)
{}.
kk2014
24-Sep-12 3:52am
View
try this solution,
it works same as dropdown and other controls....
kk2014
24-Sep-12 1:41am
View
hi ProgramFOX,
thanks for the reply. ya you are right. i checked my jquery file link. it doesn't contain https://. it is http:// only.
so, i downloaded that .js file and save in project folder and give path name of project. it is working fine....
thanks,
kk
kk2014
12-Sep-12 8:15am
View
hi, in my project on form load there will be text "mandetory*" next to every label. on selection/input of text it will disappear.
kk2014
12-Sep-12 8:05am
View
hi, i have assigned my html control value to other text box which is runat="server". see below.
on .aspx page code is:
<input id="txtplace" type="text" visible="false" value="" runat="server" />
<script type="text/javascript">
function CopyVal() {
document.getElementById("txtplace").value = document.getElementById("input1").value;
return false;
}
function isValid(tab)
{
return Page_ClientValidate();
}
</script>
on code behind i am wirting code:
txtplace.Attributes.Add("onblur", "javascript:return isValid('txtplace');");
bt it doesnt work.now is there any solution?
kk2014
17-Aug-12 2:46am
View
Hi aspnet_regiis,
i have tried these lines of codes to get username.
if (System.Web.HttpContext.Current.User.Identity.IsAuthenticated)
{
string userName = "Hello, " + System.Web.HttpContext.Current.User.Identity.Name;
}
string ddd = System.Net.Dns.GetHostName();
string s = Page.User.Identity.Name;
string sss= System.Environment.UserName;
string test= HttpContext.Current.Request.LogonUserIdentity.ToString();
let me know are there any other solutions for the same.
thanks.
kk2014
16-Aug-12 9:01am
View
she had also tried it but it is not working....
kk2014
16-Aug-12 7:46am
View
hi the link given in solution1 is good link. you can export your gridview data to excel.
kk2014
16-Aug-12 7:45am
View
where are you saving image? i can't find it...or try something like this. please check your path where you are saving your image. if it is wrong then also you can't save image. try .ashx extension to save image. let me know if you have any query.
kk2014
8-Aug-12 1:44am
View
hi ami,
can you psate ur code here?
kk2014
4-Aug-12 5:22am
View
what is your session timeout? if it is less than please increase it,,,,
kk2014
1-Aug-12 9:16am
View
where i have to write return false;?
kk2014
24-Jul-12 8:44am
View
it is for just understanding...i have another name in table and consider columns id,id1,id2 respectively in my output.
kk2014
24-Jul-12 6:42am
View
hi amit,
i have used this code from this link. can u help me out to overcome from this pro.?
http://msdn.microsoft.com/en-us/library/bb645998.aspx#Y570
can u look into this link function and help me.
thanks.
kk2014
18-Jul-12 3:41am
View
hi ravi kamesh,
i applied ur code to my app. it works perfectly here.
kkakadiya
kk2014
17-Jul-12 6:52am
View
can u please elaborate your query? as per my understanding, when u click on one particular record's link button or button then u want to bind that record in pdf format or there is a one button outside grid and then click on that record it will bind whole grid data into it??
please explore ur query.
kkakadiya
kk2014
17-Jul-12 4:25am
View
i think there is no blank space in my string i have provided but solution like this given on net. 0x indicating it is hex string.
Show More