15,743,541 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 Javascript questions
View C++ questions
View Python questions
View Java 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 Trung Nguyen Son (Top 52 by date)
Trung Nguyen Son
3-Oct-14 0:36am
View
It's totally free!
Big system uses it, I will show you some evidence. Check it out:
http://nickcraver.com/blog/2013/11/22/what-it-takes-to-run-stack-overflow/
Trung Nguyen Son
2-Oct-14 21:21pm
View
$('.alert').delay(1000).fadeOut(); => Where is your "alert" class?
Trung Nguyen Son
22-Aug-14 10:50am
View
Post your code, I will check for u.
Trung Nguyen Son
20-Aug-14 21:37pm
View
Your usage is wrong:
#<%= ComboBox1.ClientID %> option:selected....
Trung Nguyen Son
20-Aug-14 6:54am
View
Pleas post your code, I will take a look!
Trung Nguyen Son
18-Aug-14 2:34am
View
Pls check out here:
http://stackoverflow.com/questions/14964035/how-to-export-javascript-array-info-to-csv-on-client-side
Trung Nguyen Son
14-Aug-14 6:50am
View
Post your code, plz!
Trung Nguyen Son
14-Aug-14 6:32am
View
You'd better mark your first question as solved.
It's good for other guys who comes up a question like yours.
Trung Nguyen Son
14-Aug-14 5:50am
View
You cannot!
It's security policy!
I think you should open a new question on this, there might be some solutions for you!
Brs,
--
Trung Nguyen Son
14-Aug-14 4:58am
View
Remember to enable popup on browser.
Trung Nguyen Son
14-Aug-14 4:57am
View
Dim newWin As String = "window.open('http://www.w3schools.com', '_blank', 'toolbar=yes, scrollbars=yes, resizable=yes, top=500, left=500, width=400, height=400');"
ClientScript.RegisterStartupScript(Me.GetType(), "pop", newWin, True)
ClientScript.RegisterStartupScript(Me.GetType(), "redirect", "javascript: window.location.href = 'http://google.com';", True)
Trung Nguyen Son
14-Aug-14 4:37am
View
The redirect should be done in client-side, so the code should be:
Dim queryString As String = "test.aspx"
Dim newWin As String = "window.open('" & queryString & "');"
ClientScript.RegisterStartupScript(Me.GetType(), "pop", newWin, True)
ClientScript.RegisterStartupScript(Me.GetType(), "redirect", "'window.location.href = "your page";'", True)
Trung Nguyen Son
14-Aug-14 4:33am
View
Of cource, it cannot.
What do you want to do now?
Trung Nguyen Son
14-Aug-14 4:31am
View
Sure, you can.
First, do open popup and then redirect.
Try it!
Trung Nguyen Son
14-Aug-14 4:16am
View
Pls post your code behind!
Trung Nguyen Son
14-Aug-14 4:09am
View
I've just updated your code.
With asp:ScriptManager and correct some missing tags.
Check it out!
Trung Nguyen Son
14-Aug-14 4:03am
View
Post a new question man!
Trung Nguyen Son
14-Aug-14 3:09am
View
Pls check, I've updated.
Trung Nguyen Son
14-Aug-14 3:01am
View
You should use only 1 update panel (in this case is the UpdatePanel4).
In the trigger, register for the 3 buttons. That means, 3 buttons will cause async postback.
Trung Nguyen Son
14-Aug-14 2:27am
View
1. REMOVE <asp:AsyncPostBackTrigger ControlID="gvManageSo1" /> in UpdatePanel4
2. PUT
<asp:AsyncPostBackTrigger ControlID="btnSearch1" />
<asp:AsyncPostBackTrigger ControlID="btnClear1" />
<asp:AsyncPostBackTrigger ControlID="btnExportToExcel1" />
in the UpdatePanel4
3. And REMOVE updatepanel "up"
Trung Nguyen Son
14-Aug-14 1:57am
View
AsyncPostBackTrigger: "Defines a control and optional event of the control as an asynchronous postback control trigger that causes the UpdatePanel control to refresh."
Just do it, you'll see!
Trung Nguyen Son
13-Aug-14 3:15am
View
check it out: http://www.wikihow.com/Disable-Popup-Blockers
Trung Nguyen Son
13-Aug-14 3:09am
View
Your popup maybe blocked by the browser.
It works fine in my environment.
Check it!
Trung Nguyen Son
13-Aug-14 2:59am
View
Just updated your code. Pls check!
Trung Nguyen Son
12-Aug-14 5:03am
View
Great news!
Happy coding!
Trung Nguyen Son
12-Aug-14 4:01am
View
Try this:
if((bool)check.Cells["IsChecked"].FormattedValue)
....
Trung Nguyen Son
12-Aug-14 2:05am
View
Nice to hear that!
Happy coding!
Trung Nguyen Son
11-Aug-14 23:57pm
View
I don't think it may the cause, plz post the whole code. I will look on it!
Trung Nguyen Son
11-Aug-14 23:55pm
View
The "If Not Page.IsPostBack" code block is executed when the page
is loaded for the first time.
This is used to set the initial values for controls in the page.
When the page loads for a postback, you don't want to initialise the controls as you want them to get their values from the data that the user posted.
P/s: I think you should read more on web model!
Trung Nguyen Son
11-Aug-14 23:05pm
View
just wrap it in:
If Not Page.IsPostback Then
'bla bla
End If
or in C#:
if (!Page.IsPostBack)
{
//bla bla
}
Trung Nguyen Son
11-Aug-14 22:06pm
View
The "if condition" is in the page load event, right? Or in the button click event?
Trung Nguyen Son
11-Aug-14 21:57pm
View
I think it's just your logic problem. Plz double check it!
Trung Nguyen Son
11-Aug-14 21:51pm
View
It looks like C#. Hehee
Your code in vb.net here: request.querystring("rid").Equals("6")
Trung Nguyen Son
11-Aug-14 13:57pm
View
Yes, I meant you loop through all rows, check if the checkbox column is selected, then get variables like:
var name = row.Cells[1].Value;
....
Brs,
--
Trung Nguyen Son
11-Aug-14 13:33pm
View
I think it's far from what you asked for! :)
Trung Nguyen Son
11-Aug-14 13:25pm
View
Sure, using the above code. Just get the cell values of row inside the if statement (remove rowCount++;)
Trung Nguyen Son
11-Aug-14 12:25pm
View
Use the code below:
row.Cells[columnNumber].Value
or
row.Cells["ColumnName"].Value
Trung Nguyen Son
11-Aug-14 12:01pm
View
You're welcome!
Pls mark this question as answered if it works for you!
Happy coding!
Trung Nguyen Son
11-Aug-14 11:34am
View
It's up to your design: where you put the checkbox column.
In this case, the colCheck is the first one.
DataGridViewCheckBoxCell cell = row.Cells[0] as DataGridViewCheckBoxCell;
Trung Nguyen Son
11-Aug-14 9:11am
View
There may be some missunderstandings!
I think you should post your full code (including aspx file and code behind) anh make clear the requirement. Then I will give it a try!
I find it not quite difficult to solve your problem!
Trung Nguyen Son
11-Aug-14 7:26am
View
You just cannot do this!
Trung Nguyen Son
11-Aug-14 7:09am
View
Please check out the solution 4.
I've made it success!
Trung Nguyen Son
11-Aug-14 6:57am
View
I've cleared all other answers, which are not close enough to your question.
Check this below solution out!
Trung Nguyen Son
11-Aug-14 6:49am
View
I've built myselft an example, below is the answer.
Trung Nguyen Son
11-Aug-14 6:15am
View
please add <script src="//code.jquery.com/jquery-1.10.2.js"></script> in head tag (before any $ query)
Put <script> custom code at the bottom (above body tag).
Trung Nguyen Son
11-Aug-14 5:55am
View
Sorry, use: $('#<%# ComboBox1.ClientID %>') instead of: $('#<%= ComboBox1.ClientID %>')
Trung Nguyen Son
11-Aug-14 5:48am
View
Check the answer below!
Enjoy coding!
Trung Nguyen Son
11-Aug-14 5:19am
View
Thank you Nirav for correct the code! : )
Trung Nguyen Son
11-Aug-14 5:15am
View
It does work! please post your code, I will fix it for you! : )
Trung Nguyen Son
11-Aug-14 4:36am
View
Check this below post!
Trung Nguyen Son
11-Aug-14 4:05am
View
I've updated my solution, pls check!
Trung Nguyen Son
11-Aug-14 1:58am
View
Have you tried my solution, yet?
Show More