15,895,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 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 AZAD CHOUHAN (Top 13 by date)
AZAD CHOUHAN
30-Aug-14 7:34am
View
I want to know from where i start?
AZAD CHOUHAN
22-Aug-14 3:42am
View
but what if my process go more then 100 ms ?? I have no any idea how much it time will take?
AZAD CHOUHAN
9-May-14 9:04am
View
<script type="text/javascript">
$(document).ready(function () {
setupAutoComplete();
var counter = 2;
$("#addButton").click(function () {
if (counter > 5) {
alert("Limit Exceeds");
return false;
}
var newTextBoxDiv = $(document.createElement('div'))
.attr("id", 'TextBoxDiv' + counter);
// newTextBoxDiv.after().html('<label>Textbox #' + counter + ' : </label>' +
// '<input type="text" name="textbox' + counter +
// '" id="textbox' + counter + '" value="" class="auto">');
newTextBoxDiv.after().html('<div class="fields-left"><label> Leaving from</label><input type="text" name="textbox' + counter + '" id="textbox' + counter + '" class="auto"/> </div><div class="fields-right"> <label> Going to</label> <input type="text" name="textbox' + counter + '" id="textbox' + counter + 1 + '" class="auto"/> </div>');
newTextBoxDiv.appendTo("#TextBoxesGroup");
setupAutoComplete();
counter++;
});
$("#removeButton").click(function () {
if (counter == 1) {
alert("No more textbox to remove");
return false;
}
counter--;
$("#TextBoxDiv" + counter).remove();
});
});
var setupAutoComplete= function SearchText2() {
$('.auto').autocomplete({
source: function (request, response) {
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "Home.aspx/GetAutoCompleteData",
data: "{'code':'" + document.getElementById("#textbox2").value + "'}",
dataType: "json",
success: function (data) {
response(data.d);
},
error: function (result) {
alert("Error");
}
});
}
});
}
</script>
I update my code to this now i am getting this error
TypeError: document.getElementById(...) is null
I dnt know why its show me empty ?
AZAD CHOUHAN
9-May-14 8:46am
View
but it is for mvc not for simple asp.net
AZAD CHOUHAN
21-Jun-13 2:42am
View
Hey now one more problem have to solve Now it is sorting succesfully now i wanna to get only top 5 records from xml
AZAD CHOUHAN
21-Jun-13 2:33am
View
this thing work for me :)
String File = Server.MapPath("~/Data/BlogContent.xml");
DataSet ds = new DataSet();
// FileStream fsread = new FileStream(File, FileMode.Open);
ds.ReadXml(File);
DataView dv = new DataView(ds.Tables[0]);
DataTable dt = dv.Table;
dv.Sort = dt.Columns["id"].ColumnName;
dv.Sort += " Asc";
// ds.Tables[0].DefaultView.Sort= "id desc";
Repeater1.DataSource = dv;
Repeater1.DataBind();
AZAD CHOUHAN
21-Jun-13 2:31am
View
thanks its work now :)
AZAD CHOUHAN
21-Jun-13 1:42am
View
yess sir asc and desc is not sorting my data :(
AZAD CHOUHAN
21-Jun-13 1:29am
View
AZAD CHOUHAN - 2 mins ago
not working i use this String File = Server.MapPath("~/Data/BlogContent.xml"); DataSet ds = new DataSet(); ds.ReadXml(File); ds.Tables[0].DefaultView.Sort= "id asc"; Repeater1.DataSource = ds; Repeater1.DataBind();
AZAD CHOUHAN
21-Jun-13 1:26am
View
Deleted
not working i use this
String File = Server.MapPath("~/Data/BlogContent.xml");
DataSet ds = new DataSet();
ds.ReadXml(File);
ds.Tables[0].DefaultView.Sort= "id asc";
Repeater1.DataSource = ds;
Repeater1.DataBind();
AZAD CHOUHAN
21-Jun-13 1:18am
View
i wanna to sort in asc order and desc order how can i do that?
AZAD CHOUHAN
15-Jun-13 2:18am
View
please provide full description what you actually want?
AZAD CHOUHAN
15-Jun-13 2:18am
View
okkkkkkkhhhhhhhhhh okkhhhhhhhhh
Show More