16,019,619 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 Visual Basic questions
View Javascript questions
View .NET 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 Madhukar Krishna (Top 19 by date)
Madhukar Krishna
12-Mar-19 1:52am
View
Try this
function preventBack() { window.history.forward(); }
setTimeout("preventBack()", 0);
window.onunload = function () { null };
Madhukar Krishna
12-Mar-19 1:48am
View
Please post your code
Madhukar Krishna
4-Oct-18 13:36pm
View
Great Sitecore! You are a genius. Thank you so much! This works for me!
Madhukar Krishna
4-Oct-18 9:09am
View
Hi F-ES Sitecore. I have the following code and I want it to stop for the first of first type of control which is empty:
//Repeater
var isValid = true;
$("#Rpt1").find("input[type=text]").each(function () {
if ($.trim($(this).val()) == '') {
alert("At least one textbox is empty");
$(this).focus(); // focus the element
isValid = false;
return false;
}
})
$("#Rpt1").find(".Select1").each(function () {
if ($.trim($(this).val()) == '0') {
alert("select a value");
$(this).focus(); // focus the element
isValid = false;
return false;
}
})
$("#Rpt1").find("input[type=file]").each(function () {
if ($.trim($(this).val()) == '') {
alert("select a file");
$(this).focus(); // focus the element
isValid = false;
return false;
}
})
return isValid;
How to do it? I will be thankful if you answer this!!!
Madhukar Krishna
1-Oct-18 6:11am
View
Deleted
Thanks a ton F_ES Sitecore. That did the trick for me. Thank you very much
Madhukar Krishna
1-Oct-18 5:04am
View
Hi there,
Thank you dear.Perfect solution. Can You give me the code for stopping at first textbox which is empty.
Madhukar Krishna
30-Dec-16 9:05am
View
I have already tried that. When I set AutoPostBack = "false" for ddl2 it works fine. But I require Autopostback="true" for ddl2
Madhukar Krishna
30-Oct-16 11:17am
View
Thanks for the answer. I already know what you have said. I know exceptions are costly and slow up the website, but I was experimenting with exception handling at different levels like try-catch(that works), page level in Page_Error method( that doesn't work) and I am yet to try application level in Application_Error method in Global.asax file.
The request.response works in all levels. But is there any way that I can get ClientScript.RegisterStartupScript in page_error method? Please any help will be appreciated.
Madhukar Krishna
30-Oct-16 11:17am
View
Deleted
Thanks for the answer. I already know what you have said. I know exceptions are costly and slow up the website, but I was experimenting with exception handling at different levels like try-catch(that works), page level in Page_Error method( that doesn't work) and I am yet to try application level in Application_Error method in Global.asax file.
The request.response works in all levels. But is there any way that I can get ClientScript.RegisterStartupScript in page_error method? Please any help will be appreciated.
Madhukar Krishna
10-Oct-14 2:27am
View
Please do not write answers if you don't know one . Please try to emulate the problem on your computer and only then answer. Please don't write whatever you want. This is a standard question answer site and not for nincompoops
Madhukar Krishna
10-Oct-14 1:56am
View
Thank you for your answer. But I was looking for gridview style edit, update delete for datagridview, which I read an article somewhere is not possibale for datagridview.
Madhukar Krishna
20-Aug-14 1:42am
View
Thanks Rashid! This solved my problem. Kudos for your solution
Madhukar Krishna
2-Jul-14 13:39pm
View
But the same website I created in VS 2010 is working fine. It goes to login page when I hit the back button of the browser-which goes to "/content/Default.aspx". Why is that it is working fine in
Visual Studio 2010 and not working in Visual Studion 2008
Madhukar Krishna
2-Jul-14 13:34pm
View
authentication mode is "Forms"
Madhukar Krishna
2-Jul-14 13:06pm
View
Attention : This is only happening in VS2008 and not happening in VS2010
Madhukar Krishna
10-May-14 9:57am
View
good suggestion! But could you give me the code please! How to do that?
Madhukar Krishna
6-May-14 5:53am
View
yes update
Madhukar Krishna
6-May-14 1:10am
View
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Media.Animation; // for storyboard
namespace animfromcodebehindWpfApplication1
{
///
/// Interaction logic for MainWindow.xaml
///
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void button1_Click(object sender, RoutedEventArgs e)
{
AnimateRectangle();
}
public void AnimateRectangle()
{
Storyboard rectrotate = (Storyboard)FindResource("Storyboard1");
rectrotate.Begin();
}
}
}
Madhukar Krishna
16-Mar-14 0:28am
View
That doesn't answer my question! Somebody suggested to use "break" but that isn't a solution.Please help.Somebody suggest why this simple code is not working.
Show More