16,004,557 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 .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 Tom Marvolo Riddle (Top 200 by date)
Tom Marvolo Riddle
7-May-14 2:42am
View
Sure +5!
Tom Marvolo Riddle
7-May-14 2:41am
View
+5!
Tom Marvolo Riddle
6-May-14 6:49am
View
What's the question?
Tom Marvolo Riddle
5-May-14 13:39pm
View
sorry i didn't get it quite clearly
Tom Marvolo Riddle
5-May-14 13:38pm
View
Hi dinesh,Ask the helpdesk.They can assist you to get out of this
Tom Marvolo Riddle
5-May-14 13:35pm
View
sorry for the late reply. you can't work with payment gateway in localhost
Tom Marvolo Riddle
30-Apr-14 6:27am
View
My intention is to improve the solution.That's all
Cheers :)
Tom Marvolo Riddle
30-Apr-14 6:19am
View
So what's the point of your solution?. You suggest OP to use scriptmanager but he has it already.
Tom Marvolo Riddle
30-Apr-14 6:07am
View
Hi bluesathish,without the scriptmanager you cannot run a page with updatepanel.It will throw a run time error.
OP already have a scriptmanager .The problem is,instead of partial rendering, the page is loading fully during postback .Hope you understand.
Cheers :)
Tom Marvolo Riddle
30-Apr-14 5:09am
View
Thank you
Volynsky Alex
.
Tom Marvolo Riddle
30-Apr-14 3:47am
View
oh sorry dinesh(i just notice that).You cannot check payment gateway with localhost
Tom Marvolo Riddle
30-Apr-14 2:21am
View
Please explain bit more
Tom Marvolo Riddle
30-Apr-14 1:50am
View
If returning value is Text then you cannot convert it into integer
Tom Marvolo Riddle
30-Apr-14 1:28am
View
Check the result return from query.
Check the selected value in selected index changed event(Text As well as Value)
Tom Marvolo Riddle
30-Apr-14 1:24am
View
Are you getting the same error again?
Tom Marvolo Riddle
30-Apr-14 1:18am
View
Try this:
ds = il.FetchDataById(2, Convert.ToInt32(DDLAieee.SelectedItem.Value));
Tom Marvolo Riddle
29-Apr-14 7:20am
View
Try some other browser
Tom Marvolo Riddle
29-Apr-14 7:20am
View
Then you are clearing session somewhere in the application
Tom Marvolo Riddle
29-Apr-14 7:01am
View
Sorry.Not at all clear.Explain bit more
Tom Marvolo Riddle
28-Apr-14 8:11am
View
Hi Rahul,please do not reply/Edit to Spam
Tom Marvolo Riddle
28-Apr-14 7:30am
View
Hawk eye +5 !
Tom Marvolo Riddle
28-Apr-14 2:07am
View
post your code
Tom Marvolo Riddle
25-Apr-14 9:21am
View
Oh yes.!Definitely going to try this.Thanks a ton thatraja!
Tom Marvolo Riddle
25-Apr-14 9:15am
View
yes i totally agree with that(Even i'm not satisfied with my answer). I tried to alter the column without dropping the column.But it ain't work for me.I don't know what's wrong with the syntax(or me).Looking for some good answers.
Thank you for sharing your thoughts. :)
Tom Marvolo Riddle
25-Apr-14 9:12am
View
Thanks you very much for the response thatraja!
Tom Marvolo Riddle
25-Apr-14 9:08am
View
I tried this way.But it shows the same error .Even the
http://www.w3schools.com/sql/sql_default.asp
[
^
]
shows the same syntax.But it's not working!. Any reasons?
Tom Marvolo Riddle
25-Apr-14 9:03am
View
You're welcome!
Tom Marvolo Riddle
25-Apr-14 8:48am
View
Hi do onething drop column FILETYPE and try this:
ALTER TABLE K2FILELOG
ADD FILETYPE int NOT NULL DEFAULT(0)
Tom Marvolo Riddle
25-Apr-14 8:45am
View
Hi,I did the same thing which you wrote above.Still it shows the error.FYI i'm using SQL Server 2008 r2 am i missing something?
Tom Marvolo Riddle
25-Apr-14 8:30am
View
do you want to alter column or table?
Tom Marvolo Riddle
25-Apr-14 2:54am
View
solution updated.Try it.In Either way 'Null' value will be stored in Sql column
Tom Marvolo Riddle
25-Apr-14 2:52am
View
another option updated(quite simple too).Try it
Tom Marvolo Riddle
25-Apr-14 2:48am
View
or try like this:<br>
<br>
if (ddltrees.SelectedItem.Text == "Select")<br>
{<br>
insert query without selected value---------don't pass dropdownlist selected value here<br>
}<br>
else<br>
{<br>
<br>
insert query with selected value ------pass dropdownlist selected value<br>
}
Tom Marvolo Riddle
25-Apr-14 2:46am
View
what exception you're getting?
Tom Marvolo Riddle
25-Apr-14 2:15am
View
solution updated.If you're not sending anything(selected item) the default Null value will be stored in Sql.
Try it & let me know
Tom Marvolo Riddle
25-Apr-14 2:08am
View
oh i'm sorry .I get it wrong.Please wait i'll update soon
Tom Marvolo Riddle
25-Apr-14 1:52am
View
solution posted .Try it
Tom Marvolo Riddle
25-Apr-14 1:29am
View
Use dropdownlist.selecteditem.text to get the selected value.
Tom Marvolo Riddle
24-Apr-14 6:55am
View
where you want to show the image?In gridview?datalist?
How can we help with that?What's the problem of showing the code?
Tom Marvolo Riddle
24-Apr-14 6:37am
View
post your code
Tom Marvolo Riddle
24-Apr-14 4:52am
View
Try: private void GetInvoice()
Tom Marvolo Riddle
24-Apr-14 3:55am
View
Not Supported means?I didn't get it.Getting any errors?
Tom Marvolo Riddle
24-Apr-14 2:44am
View
You're welcome
Tom Marvolo Riddle
24-Apr-14 2:15am
View
Explain the question clearly.What's the issue?what do you want to achieve?
Tom Marvolo Riddle
24-Apr-14 2:12am
View
Try this:
if (ddlState.SelectedItem.Text != "Select State" && ddlCity.SelectedItem.Text != "Select City" && FileUpload1.PostedFile.ContentLength != 0)
Tom Marvolo Riddle
24-Apr-14 1:55am
View
post it as a separate question with code tag and with error you are getting
Tom Marvolo Riddle
23-Apr-14 0:49am
View
Thanks for the info Bhagyesh; .OP wants to call particular query in a Stored procedure(It is clear that he/she knows how to call a SP)
I hope OP knows how to handle connection.That's why i left it.
Tom Marvolo Riddle
22-Apr-14 2:50am
View
what ?storing the mobile no in Bigint?. Use nvarchar datatype
Tom Marvolo Riddle
22-Apr-14 2:36am
View
Hi siva,the link which you posted redirect to the same question
Tom Marvolo Riddle
21-Apr-14 8:31am
View
Thank you thatraja !
Tom Marvolo Riddle
21-Apr-14 4:58am
View
i guess your browser popup blocker is enabled.set allow popup =true.
I tried at my end it's working
Tom Marvolo Riddle
21-Apr-14 1:31am
View
Answer updated.Try it
Tom Marvolo Riddle
21-Apr-14 1:26am
View
Something went wrong with Site.please wait i will update the answer soon
Tom Marvolo Riddle
21-Apr-14 1:17am
View
Any errors?
Tom Marvolo Riddle
19-Apr-14 9:24am
View
post your code
Tom Marvolo Riddle
19-Apr-14 7:01am
View
i am using visual studio 2008 too no problem here.Do you have bin(ajax controltoolkit) in your project?
Tom Marvolo Riddle
19-Apr-14 6:57am
View
Drag a toolscript manager before accordion from ajax toolkit
Tom Marvolo Riddle
19-Apr-14 6:47am
View
I will speak to you in some time
---My Pleasure :)
Tom Marvolo Riddle
19-Apr-14 6:40am
View
This is also working for me.Do onething create a new form and paste the code(which is in Question)with Toolscriptmanager
From this:<asp:accordion runat="server" ID="Accon1" selectedindex="0" HeaderSelectedCssClass="accordionHeaderSelected" HeaderCssClass="accordionHeader" contentcssclass="accordionContent"
AutoSize="None"
FadeTransitions="true"
TransitionDuration="250"
FramesPerSecond="40"
RequireOpenedPane="false"
>
to this
accordion end
Drag any ajax control to the form which create a reference file at the top.Then remove the control only not reference.
and run it.Definitely it should run.
Tom Marvolo Riddle
19-Apr-14 6:10am
View
OT - Around 38 c here.I have no other go. :(
Tom Marvolo Riddle
19-Apr-14 6:02am
View
OT- Nope.I don't have holiday in saturdays.
Tom Marvolo Riddle
19-Apr-14 6:00am
View
Use improve question to edit and update the info
Tom Marvolo Riddle
19-Apr-14 5:57am
View
i guess so :)
Tom Marvolo Riddle
19-Apr-14 5:45am
View
Add this at top of aspx page :
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
Tom Marvolo Riddle
19-Apr-14 5:43am
View
I checked it at my end it's working!
Tom Marvolo Riddle
19-Apr-14 5:12am
View
any errors?
Tom Marvolo Riddle
19-Apr-14 3:55am
View
I guess you forgot to Upload the
AjaxControlToolkit.dll
in server.
Tom Marvolo Riddle
18-Apr-14 5:15am
View
Then use all Textbox textchanged events to check
Create a method for checking and call it in all textchanged events
Tom Marvolo Riddle
18-Apr-14 4:59am
View
It's not a problem.
for eg. let imagine. you have 10 textbox from textbox1 to textbox10.In the textbox10 check all the fields are filled or not.
It allows the user to fill textbox5 or textbox1 or anything except textbox10.When user fill the Textbox10 ,all the above fields should be filled
Tom Marvolo Riddle
17-Apr-14 6:58am
View
will you please explain bit more?
Tom Marvolo Riddle
17-Apr-14 4:00am
View
Oh i am sorry
- No worries
Thanks a lot, friend
- Always welcome
BTW ,click reply and comment.Then only the OP get notified. :)
Tom Marvolo Riddle
17-Apr-14 0:39am
View
Hi Rahul,please do not answer to very old question.Look at the question-It had been asked a year ago and it has solutions.
Cheers :)
Tom Marvolo Riddle
17-Apr-14 0:25am
View
try this:
ScriptManager.RegisterStartupScript(Me, Me.[GetType](), "script", "alert('Message')", True)
Tom Marvolo Riddle
17-Apr-14 0:19am
View
post your code
Tom Marvolo Riddle
17-Apr-14 0:19am
View
Dio you want to show? this (You have registered Successfully) after registration
Tom Marvolo Riddle
16-Apr-14 9:07am
View
Excellent answer my friend . I like the way you're explaining(not only this, other answers too)
keep it up.+5 ! :)
Tom Marvolo Riddle
16-Apr-14 8:19am
View
Have a look at this link:
http://www.dotnettips4u.com/2013/03/dynamically-creating-text-boxes-using-c.html
[
^
]
The above link shows how to create multiple textboxes according to the count.Similarly get the count and use loop to create n number of gridview. you have to do similar things and additionally you're creating boundfield.That's it
Tom Marvolo Riddle
16-Apr-14 8:09am
View
welcome sriram!.
Tom Marvolo Riddle
16-Apr-14 8:08am
View
Hi sriram,I didn't do this earlier but it is achievable.
I checked the stack overflow link which you posted.It's looking good
Link posted try it.
Tom Marvolo Riddle
16-Apr-14 2:33am
View
Thank you for accepting the answer :)
Tom Marvolo Riddle
16-Apr-14 2:26am
View
please don't post comment as a solution.Use "Have a question or comment" to comment.
Please delete the answer to avoid getting downvotes. :)
Tom Marvolo Riddle
16-Apr-14 2:06am
View
I used EBS earlier and i am much satisfied with their service.when i google about the best,
ccavenue
is suggested by many sites.
So it's upto you.If you face any issue in this, feel free to ask. Happy coding :)
Tom Marvolo Riddle
16-Apr-14 1:00am
View
we're ready to help you .will you please explain what you need more than this?
Tom Marvolo Riddle
15-Apr-14 8:43am
View
Have a look at my past answer:
How do I pass the value into the next page, and how do I use the value in the next page? I want to pass an name from the first page to the next.
[
^
]
Get the value before redirecting to another page and in the page load assign it(similar to query string)
Tom Marvolo Riddle
15-Apr-14 3:50am
View
put a breakpoint here: GridView2.DataSource = dt; and view it in Quickwatch
If dt has values then gridview must show the value(returning column name must match with gridview row name)
Tom Marvolo Riddle
15-Apr-14 2:51am
View
check whether the query is returning values or not
Tom Marvolo Riddle
15-Apr-14 2:30am
View
It won't work
Tom Marvolo Riddle
15-Apr-14 0:47am
View
convert the form into HTML file and send it
Tom Marvolo Riddle
12-Apr-14 3:06am
View
Thank you for accepting the answer.
Tom Marvolo Riddle
12-Apr-14 2:22am
View
will you please accept my answer?Thanx
Tom Marvolo Riddle
12-Apr-14 2:14am
View
single insert query for 100 tables?I don't think it is possible
Tom Marvolo Riddle
11-Apr-14 7:40am
View
clear the registry and try to reinstall it
Tom Marvolo Riddle
11-Apr-14 7:27am
View
Then go with Sql Express edition.
Tom Marvolo Riddle
11-Apr-14 5:22am
View
Try this;
DropDownList1.Items.Clear();
DropDownList1.Items.Insert(00, "Select");
DropDownList1.Items.Insert(01, yourvalue);
DropDownList1.SelectedIndex = 0;
I hope you are looking for these.try it
Tom Marvolo Riddle
11-Apr-14 5:11am
View
Not clear.Please explain more
Tom Marvolo Riddle
11-Apr-14 4:00am
View
You're welcome :)
Tom Marvolo Riddle
11-Apr-14 3:56am
View
Try this:
getStocksOnHand = int.Parse(dr[0].ToString());
Tom Marvolo Riddle
11-Apr-14 3:02am
View
Solution posted.Try it
Tom Marvolo Riddle
11-Apr-14 2:47am
View
Post your code
Tom Marvolo Riddle
10-Apr-14 5:18am
View
Thank you
Nirav Prabtani
Tom Marvolo Riddle
10-Apr-14 5:06am
View
yup press ctrl+ f5 and you can revote it
Tom Marvolo Riddle
9-Apr-14 6:04am
View
You're most welcome!
Tom Marvolo Riddle
9-Apr-14 5:46am
View
Like this asasdasd@gmail.com?
Tom Marvolo Riddle
9-Apr-14 5:06am
View
Do you want to check the emailid provided by user is exist or not?
Tom Marvolo Riddle
8-Apr-14 7:59am
View
FYI, If it is not a right solution then explain what you're looking for and get better answer from the experts.
not a right solution
won't help you much
Tom Marvolo Riddle
8-Apr-14 7:34am
View
please see my updated solution.The first link will help you to store videos in the folder
then by second link you can play the videos in web page
Tom Marvolo Riddle
5-Apr-14 9:15am
View
Good one +5!
Tom Marvolo Riddle
5-Apr-14 2:20am
View
What do you want to maintain?
Tom Marvolo Riddle
4-Apr-14 5:58am
View
post your code
Tom Marvolo Riddle
3-Apr-14 6:29am
View
you have to learn to think like a computer or teach him to think like a human...
. I like it. :)
Tom Marvolo Riddle
3-Apr-14 2:15am
View
Your code looks correct.
(
ImageUpload
.PostedFile.FileName);
Does the control id is correct?
Tom Marvolo Riddle
3-Apr-14 2:00am
View
Remove this line
FileName = Guid.NewGuid().ToString();
and try
Tom Marvolo Riddle
3-Apr-14 1:52am
View
You're welcome!
Tom Marvolo Riddle
2-Apr-14 9:10am
View
you can do like this in Markup page or
Get values in Dataset/Datatable and bind it with gridview.
See eg here:
http://www.aspdotnet-suresh.com/2011/02/how-to-inserteditupdate-and-delete-data.html
[
^
]
Tom Marvolo Riddle
2-Apr-14 8:51am
View
Buddy, its an easy task.we will try to help but we won't work for you.
Please see
Here
[
^
] you'll find the reason behind it.
I already posted here (get the selected value in session before redirecting to another page and after previous button get the session value and load it)
Use sessions.Try it
Thank you.Happy coding :)
Tom Marvolo Riddle
2-Apr-14 8:40am
View
Buddy, It's not allowed here.sharing emailid leads to spam.
Tom Marvolo Riddle
2-Apr-14 8:26am
View
Then this
i wanted to code previous button coding as like chrome browser back button
part has no connection with next part.Make the question clear as much as possible.
Both 1,2 solutions are totally irrelevant to your explained part.we gave solution to this
i wanted to code previous button coding as like chrome browser back button
let come to the current issue
Buddy get the selected value in session before redirecting to another page and after previous button get the session value and load it
Tom Marvolo Riddle
2-Apr-14 8:07am
View
I get confused with this: if user select a radio button and go to the next page but suddenly click the previous page all the checked show as it is as he/she has done . will you explain?
Tom Marvolo Riddle
2-Apr-14 8:06am
View
I get confused with this:
if user select a radio button and go to the next page but suddenly click the previous page all the checked show as it is as he/she has done . what does it mean?
will you explain?
Tom Marvolo Riddle
2-Apr-14 8:05am
View
Use improve question to Edit the original question to add details.
Tom Marvolo Riddle
2-Apr-14 8:04am
View
protected void Page_Load(object sender, EventArgs e)
{
Static String previousPage = Request.UrlReferrer.ToString();
}
button click event:
Response.Redirect(previousPage);
Tom Marvolo Riddle
2-Apr-14 7:52am
View
post your code here(in question).I'll check it and let you know
Tom Marvolo Riddle
2-Apr-14 7:30am
View
Not Working
------Not at all informative.Please don't just say not working.This is the working code i had used in many projects
Do one thing for me
In page 1: -------Redirect to page 2//Response.Redirect("page2.aspx");
In page 2:
1.In page load:
previousPage = Request.UrlReferrer.ToString();
Place a button in page2
in button click event post this:
Response.Redirect(previousPage);
Try it
Tom Marvolo Riddle
2-Apr-14 7:12am
View
Yes.Name it as Static String
Tom Marvolo Riddle
2-Apr-14 3:08am
View
Totally agree with that +5!
Tom Marvolo Riddle
2-Apr-14 2:47am
View
You're most welcome
Tom Marvolo Riddle
2-Apr-14 2:43am
View
"Not working" - elaborate or post table structures with example records
Tom Marvolo Riddle
2-Apr-14 2:31am
View
Try it & let me know
Tom Marvolo Riddle
2-Apr-14 2:29am
View
Try this:
select * from Emp_master as a inner join MBO_master as b on a.emp_no = b.emp_no inner join reporting_master as c on on a.emp_no = c.emp_no where a.EMP_ID=4000004 and b.MBORQ_ID =2 and c.sup_id =12121212
Tom Marvolo Riddle
2-Apr-14 1:50am
View
Cheers :)
Tom Marvolo Riddle
2-Apr-14 1:25am
View
welcome!. Did you get the result?
Tom Marvolo Riddle
2-Apr-14 0:23am
View
Hi niles,you're binding value to gridview right?.Then put a breakpoint in(dataset/datatable) and see values in Quickwatch
Tom Marvolo Riddle
2-Apr-14 0:10am
View
sorry for the late reply.yes,it's very easy to do with gridview.IF gridview is allowed to use ,then go with gridview
Tom Marvolo Riddle
1-Apr-14 9:28am
View
Click management studio copy the server name and paste it in datasource.just try it
Tom Marvolo Riddle
1-Apr-14 9:28am
View
Try it & let me know
Tom Marvolo Riddle
1-Apr-14 9:26am
View
I'm not sure but i guess the directory is the problem.
localhost:
51611
.
Run another page of same project and replace the same directory and try it
Tom Marvolo Riddle
1-Apr-14 8:23am
View
you're welcome
Tom Marvolo Riddle
1-Apr-14 7:59am
View
put a breakpoint in datasource and check whether it has values or not
Tom Marvolo Riddle
1-Apr-14 7:22am
View
Thanks for the links +5!
Tom Marvolo Riddle
1-Apr-14 7:12am
View
Getting any error?
Tom Marvolo Riddle
1-Apr-14 7:12am
View
Query string is correct.Check whether it has values or not
Tom Marvolo Riddle
1-Apr-14 2:44am
View
Please check again.I didn't find anything wrong
Tom Marvolo Riddle
1-Apr-14 2:33am
View
Try this:
while (reader.Read())
{
Var rolename = reader["Role_Name"].ToString();//Put a breakpoint here and check whether it has value or not
}
Tom Marvolo Riddle
1-Apr-14 2:20am
View
what's the error?
Tom Marvolo Riddle
31-Mar-14 6:10am
View
Thanks for the links +5!
Tom Marvolo Riddle
31-Mar-14 5:07am
View
:thumbsup:
Tom Marvolo Riddle
31-Mar-14 4:56am
View
(My vote of 3)Your query is totally wrong.
Insert statement have no where clause
Tom Marvolo Riddle
31-Mar-14 4:01am
View
You're Welcome!
Tom Marvolo Riddle
31-Mar-14 3:31am
View
:)
Tom Marvolo Riddle
31-Mar-14 3:30am
View
Thank you
Maciej Los
:)
Tom Marvolo Riddle
31-Mar-14 0:20am
View
sorry i didn't come across this error.so i don't have idea about this. :(
Tom Marvolo Riddle
28-Mar-14 3:15am
View
+5 !
Tom Marvolo Riddle
28-Mar-14 2:35am
View
Click this reply button to reply message
SqlCommand cmd = new SqlCommand();
create this before pageload
and change this
SqlCommand cmd = new SqlCommand("High To Low Query", con);
to
cmd = new SqlCommand("High To Low Query", con);
Tom Marvolo Riddle
28-Mar-14 2:28am
View
what's the error?always include the error
Tom Marvolo Riddle
28-Mar-14 1:54am
View
FYI.post comment in reply then only i get notification
Buddy again the logic is incorrect.Just change like this
protected void DropDownList1_SelectedIndexChanged1(object sender, EventArgs e)
{
BindPagingGrid();
}
private void BindPagingGrid()
{
if(DropDownList1.SelectedItem.Text == "High To Low")
{
SqlCommand cmd = new SqlCommand("High To Low Query", con);
}
else if//another condition
{
//another query
}
else if
{
//another query
}
SqlDataAdapter adap = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
adap.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
}
and in pageindexchanging call this BindPagingGrid();
Tom Marvolo Riddle
28-Mar-14 1:26am
View
Hi no worries,it's not an issue.Did u see my last comment yesterday?
The comment clearly shows that in selectedindexchanged event of dropdownlist according to the selected value gridview will be bind.
In paging bind the recent method().If you have any issues feel free to ask
I guess the answer is clear enough .Then it's upto you and cheers :)
Tom Marvolo Riddle
28-Mar-14 0:46am
View
You're welcome!
Tom Marvolo Riddle
28-Mar-14 0:32am
View
Buddy you post this solution here by mistake.Change it and post here
How Do I Compress Folder Using C#?
[
^
]
Tom Marvolo Riddle
28-Mar-14 0:24am
View
I had similar problems earlier.try this
Reset Ajax toolcontrol in Toolbox
Delete the bin folder and close visual studio
and recreate bin and add ajax control in toolbox
Tom Marvolo Riddle
28-Mar-14 0:20am
View
May i know what's the reason for rejecting the accepted answer?
Tom Marvolo Riddle
27-Mar-14 8:57am
View
A very good explanation.Thanks +5;
Tom Marvolo Riddle
27-Mar-14 7:13am
View
Now it's working :)
Tom Marvolo Riddle
27-Mar-14 7:08am
View
Hi Krunal Rohit,FYI the above link shows
Sorry, the page you requested is not available.
Tom Marvolo Riddle
27-Mar-14 6:07am
View
Buddy just change the way.I'll show the format .Just try.
protected void DropDownList1_SelectedIndexChanged1(object sender, EventArgs e)
{
IF(DropDownList1.SelectedItem.Text == "High To Low")
{
SqlCommand cmd = new SqlCommand("High To Low Query", con);
}
else if//another condition
{
//another query
}
else if//another condition
{
//another query
}
SqlDataAdapter adap = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
adap.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
}
Just try and let me know
Tom Marvolo Riddle
27-Mar-14 5:57am
View
I'm glad it helped and You're welcome!
Tom Marvolo Riddle
27-Mar-14 5:55am
View
Good one.
I tried to upvote but vote is not casting.Sorry for that :(
(issues resolved) +5!
Tom Marvolo Riddle
27-Mar-14 5:48am
View
protected void DropDownList1_SelectedIndexChanged1(object sender, EventArgs e)
{
BindGridView(); //Remove this and try
}
Try it and let me know
Tom Marvolo Riddle
27-Mar-14 5:45am
View
It won't work and nothing wrong with loaddata method.First understand the issue.In switchcase, you are getting the value in DataReader you should change that to Dataset/DataTable
Tom Marvolo Riddle
27-Mar-14 5:33am
View
Not clear.Improve the question
Tom Marvolo Riddle
27-Mar-14 5:30am
View
Try like this:
SqlCommand cmd = new SqlCommand("Your query", con);
SqlDataAdapter adap = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
adap.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
Tom Marvolo Riddle
27-Mar-14 5:26am
View
please wait...
Tom Marvolo Riddle
27-Mar-14 5:23am
View
Do you see the comments in the code block?. You are using DataReader
sdr
. Get the values in DataSet or DataTable and bind it with gridview
Tom Marvolo Riddle
26-Mar-14 8:53am
View
Read this:
http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx
[
^
]
Tom Marvolo Riddle
26-Mar-14 8:33am
View
welcome!
Tom Marvolo Riddle
26-Mar-14 6:21am
View
Buddy i'm not sure but i hope this
Link
[
^
] will help you to get out of this
Tom Marvolo Riddle
26-Mar-14 3:12am
View
Hi
Agustus Jackson
,sorry for the late reply.
you can get street details using
Geocoding API
.Use reverse Geocoding process to get street address from lat & long.
To get more info:
https://developers.google.com/maps/documentation/geocoding/
[
^
]
Google Maps in HTML, ASP.NET, PHP, JSP etc. with ease
[
^
]
Tom Marvolo Riddle
21-Mar-14 5:53am
View
It's correct :)
Tom Marvolo Riddle
21-Mar-14 4:56am
View
You're welcome
Tom Marvolo Riddle
21-Mar-14 3:35am
View
protected void btn_Post1_Click(object sender, EventArgs e)
{
if (ddlState.SelectedItem.Text != "Select State" && ddlCity.SelectedItem.Text != "Select City")
{
string s = @"~\productImage\" + FileUpload1.FileName; FileUpload1.PostedFile.SaveAs(Server.MapPath(s)); SqlConnection a = new SqlConnection(ConfigurationManager.ConnectionStrings["dbconnection"].ConnectionString); String cmd = "insert into Post(Image,Description,DateAdded,Price,Categories,CategoriesType,State,City,CategoriesName) values('" + s + "','" + TextBox1.Text + "','" + TextBox2.Text + "','" + TextBox3.Text + "','" + DropDownList1.Text + "','" + DropDownList2.Text + "','" + ddlState.SelectedItem.Text + "','" + ddlCity.SelectedItem.Text + "','" + DropDownList3.Text + "')"; SqlCommand b = new SqlCommand(cmd, a); a.Open(); b.ExecuteNonQuery(); a.Close(); Label1.Text = "upload successfully";
}
else
{
ScriptManager.RegisterStartupScript(this, this.GetType(), "script", "alert('Select State/City')", true);
}
}
}
Tom Marvolo Riddle
21-Mar-14 3:06am
View
will you please explain?.User must select the state and city when clicking submit button am i right?
Tom Marvolo Riddle
21-Mar-14 2:59am
View
do you want validation for dropdownlist?
Tom Marvolo Riddle
21-Mar-14 0:15am
View
Afaik
PIVOT
is the only way to achieve this.Just refer the link and customize it
Tom Marvolo Riddle
20-Mar-14 23:58pm
View
what-have-you-tried?
[
^
]
Tom Marvolo Riddle
20-Mar-14 3:17am
View
welcome brother!
Tom Marvolo Riddle
20-Mar-14 2:59am
View
Dude,without seeing the code it's impossible to find what's wrong .The comment section doesn't show the code correctly so post it as a separate question with relevant code snippet.
Tom Marvolo Riddle
20-Mar-14 2:48am
View
sorry dude, i didn't get it.will you explain bit more?
Tom Marvolo Riddle
20-Mar-14 2:33am
View
I tried at my end it's working
Tom Marvolo Riddle
20-Mar-14 2:32am
View
hi buddy i found a simple solution. Include enabled ="false".try this:
<asp:ModalPopupExtender ID="ModalPopupExtender2" runat="server" Enabled="false" PopupControlID="PanelMonthly" TargetControlID="ddlfeegroup">
and in.cs
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
if (DropDownList1.SelectedItem.Text == "Monthly")
{
ModalPopupExtender2.Enabled = true;
ModalPopupExtender2.Show();//popup show
}
else
{
ModalPopupExtender2.Enabled = false;
ModalPopupExtender2.Hide();
}
}
on close button event again make ModalPopupExtender2.Enabled = false; or onclienclick of close button disable it
Tom Marvolo Riddle
20-Mar-14 2:23am
View
Please wait... i'll check it & let you know
Tom Marvolo Riddle
20-Mar-14 2:16am
View
Does it not working?
Tom Marvolo Riddle
20-Mar-14 2:14am
View
Please wait... i'll check it & let you know
Tom Marvolo Riddle
19-Mar-14 6:42am
View
Place all the gridview in same column for eg:
<tr>
<td valign="top">
//here gridview
</td>
</tr>
Tom Marvolo Riddle
19-Mar-14 6:26am
View
You're welcome
Tom Marvolo Riddle
19-Mar-14 3:03am
View
Have you tried anything?If so,then please post the code.we will try to fix the errors.
Tom Marvolo Riddle
19-Mar-14 1:54am
View
which one is not firing?
it keeps on inserting Select each time when the button is clicked
-
Try this
:
DDLContainer.Items.Clear();
DDLCountryLoading.Items.Clear();
DDLCountryDestination.Items.Clear();
DDLContainer.Items.Insert(00, "Select");
DDLCountryLoading.Items.Insert(00, "Select");
DDLCountryDestination.Items.Insert(00, "Select");
DDLContainer.SelectedIndex = 0;
DDLCountryLoading.SelectedIndex = 0;
DDLCountryDestination.SelectedIndex = 0;
ImageMode.ImageUrl = "~/ShowImageMode.ashx?Mode=A";
Tom Marvolo Riddle
19-Mar-14 0:28am
View
place this code inside reset button click event and make sure the inserted values are not clear.
Put breakpoint and check it
Tom Marvolo Riddle
18-Mar-14 7:50am
View
post your html markup
Tom Marvolo Riddle
18-Mar-14 4:00am
View
In which line?
Tom Marvolo Riddle
17-Mar-14 2:23am
View
You're right +5;
Tom Marvolo Riddle
15-Mar-14 7:28am
View
Reason for my vote of 5 \n Good tip and keep up the good work
Show More