15,867,308 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 VC.J (Top 84 by date)
VC.J
17-Sep-15 7:34am
View
select top 10 dbo.udf_StripHTML(NewsDescription) as mydesc ,* from newsdetails where contains(mydesc, '"fiber"')
this will not work
you can store in a temp table and that use that may work, but in a single line it won't
VC.J
17-Sep-15 4:07am
View
what error you are getting
VC.J
9-Jul-15 11:23am
View
Its done no need to help thanks
VC.J
12-Nov-14 2:03am
View
Any exception you have get while executing the code ?
VC.J
4-Nov-14 14:09pm
View
if you have LIC database access than it can be done
VC.J
31-Oct-14 10:33am
View
your answer is right I know
may be I am wrong just for curiosity I am asking this
the above code can be like this
protected void grvList_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Cells[0].Text = (e.Row.RowIndex + 1).ToString();
Label WORKHRS = (Label)e.Row.FindControl("WORKHRS");
int qty = Int32.Parse(WORKHRS.Text);
total = total + qty;
}
else (e.Row.RowType == DataControlRowType.Footer)
{
// here you are finding a Label which is not defined in footer template.
Label lblTotalhours = (Label)e.Row.FindControl("lblTotalhours");
lblTotalhours.Text = total.ToString();
}
}
VC.J
30-Oct-14 3:50am
View
yes it does a 3.5 can work on 4.0 but 4.0 can't work on 3.5
lower to higher is possible but higher is lower :(
VC.J
30-Oct-14 2:54am
View
check that you and your colleague must have the latest file
VC.J
21-Oct-14 0:43am
View
can you provide the code what you have written ,
I get the master page control in my page by using the same code that I have provided to you in my solution .
Pageload what you are pointing out is the pageload event I guess so you need to that code inside pageload event like
protected void Page_Load(object sender, EventArgs e)
{
var dropdown=(DropDownList)Master.FindControl("MDDL_Dept");
if (dropdown != null)
{
//you code
string yourvalue = dropdown.SelectedValue;
}
}
VC.J
21-Oct-14 0:03am
View
is employee id is string if yes than you are adding 1 into it first parse employeeid into int
VC.J
20-Oct-14 7:31am
View
its done I install nuget package 6.1.1 in my unit test project silly mistakes happen :)
VC.J
18-Oct-14 5:32am
View
thats great
VC.J
17-Oct-14 7:06am
View
http://forums.asp.net/t/1564003.aspx?How+to+open+link+to+pdf+file+in+new+tab+using+html
is what you are looking for ?
and you want to open from c#
VC.J
17-Oct-14 6:19am
View
from code behind you want to open a new page in new tab that what you want ?
VC.J
17-Oct-14 2:42am
View
small suggestion why are you using Aliasing in select statement its not required as you are putting the data to other table
VC.J
15-Oct-14 3:31am
View
if this answer is what you are looking for then mark it as solution
VC.J
15-Oct-14 1:00am
View
I dont think so
VC.J
15-Oct-14 0:29am
View
is it a specific requirement as u have to at-least call javascript function otherwise I am suspicious that you will achieve what you want.
I am providing you a code sample have a look
VC.J
15-Oct-14 0:19am
View
call javascript function on closing of your popup
and from that function call javascript function of parent page like
function childPageFunction(){
parent.ParentpageJavascriptFunction();
}
VC.J
15-Oct-14 0:03am
View
I am giving you a sample how to use web method
VC.J
14-Oct-14 10:10am
View
ok, I have VS2010, but what my concern is webmethod has to be static and in static function how we are going to use controls(label button).
VC.J
14-Oct-14 8:09am
View
Mathew in web methods how can we access page controls as you have use Label inside webmethod.
please see the link
http://forums.asp.net/t/1531113.aspx?How+to+get+page+controls+in+WebMethod+ASP+Net+2+0
VC.J
14-Oct-14 6:57am
View
Like this document.getElementById(Label38).innerText= 'work';
VC.J
14-Oct-14 6:56am
View
why do you need to call testc() from code behind there are better way to do that
VC.J
14-Oct-14 3:01am
View
what min height you have set
I think you get confused in min height and height
min height is use to set the minimum height of element
read this
http://www.w3schools.com/cssref/pr_dim_min-height.asp
VC.J
13-Oct-14 15:26pm
View
the java script you have provided is working good
I use this code to call
More >>>
<div id="div1" style="height:10px;"></div>
and the logic is running fine in your script
so where do you getting the error
VC.J
13-Oct-14 14:34pm
View
can you help us to tell us what help do you need
VC.J
13-Oct-14 14:29pm
View
and which line you are getting this error its not clear from your question and when you are getting this error
VC.J
13-Oct-14 14:28pm
View
you have a syntax of C# I think so the code like would be like
stringArray[0] = "Hello";
stringArray[1] = "World";
VC.J
13-Oct-14 14:23pm
View
Deleted
I am not able to replicate your issue at my end
you can see those link for hashing may be that can help you
http://www.codeproject.com/Articles/704865/Salted-Password-Hashing-Doing-it-Right
and
http://msdn.microsoft.com/en-us/library/aa545602(v=cs.70).aspx
VC.J
13-Oct-14 14:13pm
View
great :) are you using execute scalar
VC.J
13-Oct-14 14:12pm
View
agree with Richard but for your case I tried your code , the validation is working on SignOut Button click the same way its working on Login button are you facing the same case or other case.
if you are facing the same case than use validation group
VC.J
13-Oct-14 13:57pm
View
the query must be something like update Users set Password =@password where UserID=@userID
VC.J
13-Oct-14 13:55pm
View
this may help you
http://blogs.msdn.com/b/webdev/archive/2012/09/12/integrate-openauth-openid-with-your-existing-asp-net-application-using-universal-providers.aspx
VC.J
13-Oct-14 7:38am
View
suggest what ?
VC.J
13-Oct-14 7:35am
View
Solution suggested by Cpallini below is better choice what you can do when you click the button disable the button and at the last line of the event enable it.
VC.J
13-Oct-14 7:20am
View
you should show some message or dialogue box and close that box when your event completes its execution or disable the button
VC.J
13-Oct-14 6:27am
View
First Insert the record and find the last record inserted (rowID) and then updated the table from second proced
VC.J
10-Oct-14 3:45am
View
where is your text box inside the grid outside the grid ?
can you put some more detail
VC.J
10-Oct-14 2:22am
View
thats great
VC.J
10-Oct-14 1:48am
View
jagdish I am not Window phone developer so in that case I can't help you sorry about that
VC.J
10-Oct-14 1:05am
View
you can do one thing in parent page you can put a hidden field and access that hidden field in child page and assign the value of text box to the hidden field and than assign the value
VC.J
10-Oct-14 1:03am
View
not possible as far as I know I think by non static method u want to access the control ?
VC.J
10-Oct-14 1:00am
View
yes javascript function is not called by your code I tried this RegisterClientScriptBlock but it also not working
you need to try some other approach
Some are in this link
http://forums.asp.net/t/1701997.aspx?How+to+call+a+Javascript+function+in+timer+Tick+event
VC.J
9-Oct-14 8:22am
View
yes Sinisa, you are right may be I should wait for SarathKumar to tell us what he really want from his question.
VC.J
9-Oct-14 8:12am
View
what I Under stand u need distinct by route number is it the case?
VC.J
9-Oct-14 6:57am
View
yes this is another way and it is better than I have suggested below as you can get the Updated session value.
VC.J
9-Oct-14 5:25am
View
I have Never use jqwidget but For devexpress comparision with telerik may be u can get advantage of devexpress
you can find out here :
http://stackoverflow.com/questions/5758229/telerik-vs-devexpress-asp-net-mvc-controls
VC.J
9-Oct-14 3:04am
View
if you want to value from database you can call webmethods
for webmethod see this link
http://www.c-sharpcorner.com/UploadFile/abhikumarvatsa/calling-an-Asp-Net-C-Sharp-method-web-method-using-javascript/
VC.J
9-Oct-14 2:53am
View
@Gopinath ,I have just update the code below use the clue from that code to call javascript function
VC.J
9-Oct-14 1:46am
View
why you need text change event inside grid view it fire an event and refreshing the grid that is the reason its affecting other textbox you may handle it in client end by using javascript
or try this
http://www.codeproject.com/Tips/663684/Fire-TextBox-TextChanged-Event-from-GridView
may be this help
VC.J
9-Oct-14 0:59am
View
you can use ViewState or Session to save the rows
VC.J
8-Oct-14 8:31am
View
is application framework(development environment) and framework you are installing same?
VC.J
8-Oct-14 8:01am
View
in case you want to install the application after development
you need to install visual studio framework (like 4.0 etc in which you have created your application) and if your friend's machine is not connected to LAN than install Sql Server too
VC.J
8-Oct-14 7:14am
View
In other machine what you want to do run the application or develop the application?
VC.J
8-Oct-14 7:08am
View
why do you want that using Reverse() is the optimum solution
VC.J
8-Oct-14 5:54am
View
use encryption(using any algo) so the your important information can be hide from user.
encrypt the URL and in landing page dycrypt that url before using them
VC.J
8-Oct-14 5:35am
View
what you want to do is to show the selected text of combo boxes combine it and then show it in a gridView column ?
VC.J
8-Oct-14 5:26am
View
Its depend on the interviewer and also the rounds generally in first round you will be asked about the basics like oops sql queries etc and if you clear those the question level gradually increase.
And finally its upto the interviewer(his domain and area of expertise) and how you answer the question.
VC.J
7-Oct-14 7:59am
View
Try window Service that can send e-mail after an interval
VC.J
7-Oct-14 7:30am
View
because of the PostBack you lost dynamically added control , solution is that you need to add the control again.
VC.J
7-Oct-14 6:57am
View
what is your question?
VC.J
7-Oct-14 5:59am
View
its going to be tough ,you can try this new approach that Tadit provided in this solution that might resolve this issue what you need to do store the information in viewstate. I have not tried the code though but you can try that
VC.J
7-Oct-14 5:57am
View
ok do what you want this is the solution of this question there might be another way but if you think by undoing(accepting and rejectng) I am going to write you whole code for you then you are wrong and no forum will write code line for you. your new question is related to the new issue and you have find the solution there
VC.J
7-Oct-14 5:29am
View
are u playing do/undo
VC.J
7-Oct-14 4:13am
View
Tadit, is it possible to retain the value in these control
VC.J
7-Oct-14 4:06am
View
here you need to add javascript function onchange event and add webmethod
In web method you can create a datatable with columns ID and value
and store it in session try that you may get the result its a trick
VC.J
7-Oct-14 3:43am
View
Yash, did the Solution not worked for you
VC.J
7-Oct-14 1:59am
View
do you want to save this information(from dialogue box) in database.
If yes than you need to save the record in db and bind the grid with database.
VC.J
6-Oct-14 5:39am
View
ok one thing in the code if you enter any value in text box and select the check box that will be disappear once drop down event is fired
For you problem I will try to find out solution
VC.J
6-Oct-14 3:30am
View
if you want some value in return from popup than go for jquery dialogue box else window.open() will do for you
VC.J
6-Oct-14 2:49am
View
the control that you add will be lost on post back.
if you know that you can have n number of control than you can add in Aspx and show/hide them using javascript
VC.J
6-Oct-14 2:01am
View
Baroor window.showModalDialog will not work on Chrome.
you can use jQuery dialogue box may be that can help
VC.J
5-Oct-14 6:57am
View
please elaborate more
VC.J
5-Oct-14 6:52am
View
if you are using window form
http://stackoverflow.com/questions/9175482/stop-the-enter-key-from-firing-on-a-winform
VC.J
4-Oct-14 5:41am
View
Ohh Yes sorry about that but one thing that needed to notice here its not a single question btw in this question we had series of question
thanks for pointing out my mistake Matt :)
VC.J
3-Oct-14 12:59pm
View
It depends :
for development Application/Software basic concept like OOPS, DBMS. As you are student right now try to focus on these area. and try to find out your interest and work hard on that
VC.J
3-Oct-14 12:15pm
View
if the answer is accepted than Y I am down voted :(
VC.J
3-Oct-14 8:12am
View
declare like this
double[] thresholdvec= new double[6];
here 6 is array lengh
for 2 d array as in your case
double[,] names = new double[5, 4];
VC.J
3-Oct-14 8:04am
View
thresholdvec[x][y] is the array that you have declared am I right ?
and x and y are integer type
VC.J
3-Oct-14 7:17am
View
the value of threshhold should be integer or can be any other value?
If it can be like double than use
var threshold = averageValue * 0.9;
VC.J
3-Oct-14 7:11am
View
you are multiplying with .9 so you can't convert to int
may be you can try this
int threshold = Convert.ToInt16(averageValue * 0.9);
other way to convert .9 to int and that will result 1 that may effect your output more than the above code
VC.J
2-Oct-14 11:03am
View
Why I am downvoted , is the code is not understandable or something else ??
VC.J
1-Oct-14 7:36am
View
another solution is use jquery dialog
Show More