15,886,518 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 Siddhesh Patankar (Top 22 by date)
Siddhesh Patankar
13-Jul-13 1:45am
View
Just check the logic the SQl query will check if the username password pair is present or not... if present it will return rows else no. then you can compare the types. I guess if that doesnt work you will have to debug the code to find out what results you are getting. First put a break point on DataReader to check if the query is giving out any output or not
Siddhesh Patankar
12-Jul-13 4:06am
View
Does the data source you have related with the Gridview has a Column with Heading Course?? First Check that, as you have to specify the exact column name in this case.
What are you using DataTable or DataSet to populate the GridView?? Judging by the error I am guessing DataTable
Siddhesh Patankar
10-Jul-13 8:25am
View
Just check I have updated the answer
Siddhesh Patankar
10-Jul-13 6:36am
View
Replace Input tag with a Link Button
<asp:LinkButton ID="btnDeleterepNotes" runat="server" CommandType="Del">Delete </asp:LinkButton >
Raise an event of repeater OnRowCommand you can do that by going to the design view clicking on the repater control and clicking on the Lighting type button on the top of properties window.
There you will find a list of controls for the repeater. Click in the Double click on the Onrowcommand and you will be redirected to the code page
Here Inside that event write following code
if(e.CommandType == "Del")
{
SqlConnection conn = new SqlConnection();
conn.ConnectionString= [Your Connection String];
conn.Open();
SqlCommand cmd = new SqlCommand(conn);
cmd.CommandType= CommandType.Text;
cmd.CommandText = [SQL DELETE STATEMENT HERE];
cmd.ExcecuteNonQuery();
conn.Close();
Response.Redirect("[Your Page]");
}
Actually there are many ways to do but this is the basic one. I dont mean to be rude but you basic are not clear. :)
Siddhesh Patankar
10-Jul-13 4:53am
View
Can you post a new question with the code you have used both .aspx page and code page. I'll have no idea what you want unless I see your code. Considering this question has been solved by you.
Siddhesh Patankar
10-Jul-13 4:43am
View
because you have only deleted the element and not the comment... You will have to delete the comment also from database or if you want to keep history of the comment add a bit field to the database as isActive whose value will become false when deleted. And populate the comments using isActive=true in the where clause of you SQL
Siddhesh Patankar
10-Jul-13 3:12am
View
Please tell us what have you tried...
Siddhesh Patankar
9-Jul-13 3:04am
View
Can you please add your .aspx page or the gridview from that page using Improve Question. I need to see the design to suggest an answer
Siddhesh Patankar
9-Jul-13 2:34am
View
while debugging is it entering the event.. try putting a breakpoint and check if it is entering the event... I will answer based on that
Siddhesh Patankar
5-Jul-13 5:33am
View
and please delete the line in your code where you have provided the credentials
Siddhesh Patankar
5-Jul-13 5:32am
View
The code needs to be entered in the ResetPassword.aspx form. The Logic will be simple when user clicks the link using the code I have given you, you can check if the link has expired or not.
Put master 2 div tags in the ResetPassowrd.aspx.
e.g.
<div ID="Valid" runat="server">
--Put your valid data here
</div>
<div ID="Expired" runat="server">
Put Expired Message here
</Div>
The modifcation to my solution in code behind(write in Page_lOad Event)
DateTime dtCreate= [Get Date from DB];
DateTime dtNow = DateTime.Now;
DateTime dtExp = dtCreate.AddDays(1);
if(dtNow > dtExp)
{
Expired.Visible=true;
Valid.Visible=false;
}
else
{
Expired.Visible=false;
Valid.Visible=true;
}
Siddhesh Patankar
5-Jul-13 5:01am
View
Please dont call me Sir :)
Siddhesh Patankar
5-Jul-13 4:52am
View
What are you storing in the time field of DB Expiration Time or Creation tome
Siddhesh Patankar
2-Jul-13 7:50am
View
Deleted
Try this <asp:LinkButton ID="Linkbutton1" runat="server"><img runat="server" ID="Image2">
Means Put the Image Tag inside link button tag
Siddhesh Patankar
2-Jul-13 7:44am
View
try this <asp:LinkButton ID="Linkbutton1" runat="server"><img runat="server" ID="Image2"></asp:LinkButton>
Means Put the Image Tag inside link button tag
Siddhesh Patankar
2-Jul-13 3:54am
View
Please tell the datatype you are using to in database to save save mobile no?? Is it varchar or bigint
Siddhesh Patankar
14-Dec-12 1:31am
View
No not happening.... the problem is when we enter the edit mode in even rows its rowstate is normal so it doesnot enter the condition block so the values remain as it is.
Siddhesh Patankar
13-Dec-12 6:55am
View
I dont want to add a new value... I want to set a selected value from the original list of list items present in the dropdown. Means the value which is stored in the DB for that user must be shown as default selected value in the dropdown. Means if a person is a programmer it must show programmer not sales.
Siddhesh Patankar
13-Dec-12 6:52am
View
Sorry... but theres no cellclick event in the grid view event. I am using VS2010 and asp.net 4.0 framework
Siddhesh Patankar
6-Dec-12 4:40am
View
u didnt get my question i guess....
actually the data is not getting updated in database.....
Lets say the user clicks on some designation...
when i click on OK it shows blank entry and same gets updated in database...
after debugging i found every value was passing correctly in all the fields...
Siddhesh Patankar
30-Mar-12 1:02am
View
Is there no other way as in providing my user ID and password by code itself and signing out after the information is displayed????
Siddhesh Patankar
8-Feb-12 10:06am
View
Outlook doesnt work at all... If i click on the submit button in the E-mail it asks for a browser and when i select the browser it shows the homepage... Even i thought it was impossible at first... but it worked in gmail so i was hopeful it might work.... Actually i thinks its a completely new concept sending dynamic forms in mail
Show More