16,007,610 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 ShortProgrammer (Top 69 by date)
ShortProgrammer
12-Dec-14 9:09am
View
try to implement two posible solution , if you want in Javascript or Jquery .. implement any one from both.
ShortProgrammer
12-Dec-14 9:06am
View
On button click just call this funcion .
$("#addButton").click(function () {
var selectedVal = $('#myDivResultSelect').val();
$('ul').append('<li>'+selectedVal+'</li>')
});
jQuery
var list = $("#selectList");
$.each(items, function(index, item) {
list.append(new Option(item.text, item.value));
});
pure javascript
var list = document.getElementById("selectList");
for(var i in items) {
list.add(new Option(items[i].text, items[i].value));
}
ShortProgrammer
12-Dec-14 8:52am
View
Yeah,wait i let me fix your code ,,
ShortProgrammer
12-Dec-14 7:41am
View
let me know if you can use Jquery .
ShortProgrammer
12-Dec-14 7:40am
View
if you want, you can use Jquery also ??its not issue to use J query??? i can give you solution in both Jquery and javascript but in jquery its would be more easy .
ShortProgrammer
12-Dec-14 7:38am
View
i understand your problem ,,the problem is in your code.. can you send me your code complete of drop down? send me complete code but those line of code send which are related to Dropdown item add.
ShortProgrammer
12-Dec-14 7:35am
View
Can you tell me, are you using Javascript code in asp.net ???
ShortProgrammer
12-Dec-14 7:11am
View
while you adding new item ,before add you make condition and check if its have item or not..if have then clear its. and after clear recall your method which add the item..
you got its??
ShortProgrammer
12-Dec-14 7:09am
View
var length = select.options.length;
if(length>0)
{
for (i = 0; i < length; i++)
{
select.options[i] = null;
}
}
else{ your code for add item again.}
for (var k = 0; k < array.length; k++) {
var option = document.createElement("option");
option.text = array[k];
option.value = array[k];
myDiv.appendChild(option);
}
ShortProgrammer
12-Dec-14 6:46am
View
Please check question Again.
ShortProgrammer
12-Dec-14 6:26am
View
yeah but i still can't see "Hi" on my Client Side. ,as i am sending "hey" from Server..
ShortProgrammer
11-Dec-14 7:32am
View
Most of peoples here just give the solution in theory of Wikipedia.. the best way to give solution in pragmatically . one program line is equal to 100 page of theory, you know LOL.. and i think mostly programmer feel easy to understand quickly by code rather than theory .
ShortProgrammer
11-Dec-14 7:28am
View
if i want server also could send little text that connected client,then what should i have to do ??
ShortProgrammer
11-Dec-14 7:27am
View
thank you
ShortProgrammer
27-Dec-13 13:42pm
View
i update but still problem same :( >>>
ShortProgrammer
27-Dec-13 11:49am
View
Mhmm which Validation ???? As you can understand this problem is due to Jquery files .
ShortProgrammer
27-Dec-13 11:40am
View
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:64264/EMR-Tariq-22112013/user/user/js/selectDropDown.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:64264/EMR-Tariq-22112013/css/jquery.ui.resizable.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:64264/EMR-Tariq-22112013/css/jquery.ui.accordion.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:64264/EMR-Tariq-22112013/css/jquery.ui.autocomplete.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:64264/EMR-Tariq-22112013/css/jquery.ui.button.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:64264/EMR-Tariq-22112013/css/jquery.ui.slider.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:64264/EMR-Tariq-22112013/css/jquery.ui.dialog.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:64264/EMR-Tariq-22112013/css/jquery.ui.tabs.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:64264/EMR-Tariq-22112013/css/jquery.ui.progressbar.css
=======> Extension [version: 201] loading... VM2425:18
@sendReport... VM2425:135
browser: chrome VM2425:93
full aff2: cDCIxbu VM2425:109
browser: chrome VM2425:93
full aff2: cDCIxbu VM2425:109
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:64264/EMR-Tariq-22112013/user/Khan
event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
Uncaught ReferenceError: init is not defined doctor-patient.aspx?PatientID=667:250
Uncaught TypeError: Object #<Object> has no method 'mask'
Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: The state information is invalid for this page and might be corrupted.
ShortProgrammer
27-Dec-13 11:40am
View
i try this, i found this error .
Uncaught TypeError: Object #<Object> has no method 'mask'
Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: The state information is invalid for this page and might be corrupted.
ShortProgrammer
27-Dec-13 11:17am
View
I've try Already Conditional and Put trigger in Update panel also .I also i've reload jquery Function some ,By this code. Sys.Application.add_load(reloadValidation);
Sys.Application.add_load(reloadreloadDropDown);
.Still i'm getting problem
ShortProgrammer
27-Dec-13 11:12am
View
If you want use Teamvier or skype secreen share for fully understand Problem i can give it to you .
ShortProgrammer
27-Dec-13 11:08am
View
<asp:scriptmanager id="ScriptManager1" runat="server" >
<asp:UpdatePanel ID="UpdatePanelMain" runat="server" UpdateMode="Always" ScriptMode="Auto" >
<contenttemplate>
ShortProgrammer
27-Dec-13 11:07am
View
Update Mode i set always. i try diferent, Auto also ..
ShortProgrammer
27-Dec-13 11:07am
View
protected void BtnSInsurance_Click(object sender, EventArgs e)
{updating query code here ...........}
markup code
<asp:button ID="BtnPrimaryInsuranceUpdate" OnClick="BtnPInsurance_Click" runat="server" ClientIDMode="Static" text="Update" />
ShortProgrammer
27-Dec-13 11:02am
View
I'm just updating Record ,nothing else. In button i've Updating query only.As first time button click event fire but after not..but all this problem after i put Update panel in application, If i remove update panel then page work fine. but if i not remove update panel then i get this problem,, hope you will understand little :)
ShortProgrammer
27-Dec-13 10:51am
View
Markup Code??? Please Try to understand Question fully. Because it not problem in my code i think , Maybe due to Update panel .Jquery this problem, Please read my question again.Ive update my question now.
ShortProgrammer
7-Nov-13 6:27am
View
i read but i've about 10 big files of Jquery ,so how to fix
ShortProgrammer
6-Nov-13 8:51am
View
oh i'm doing everything Okay , its problem due to Update panel , if i use update panel then jquery files not work if i not use updatepanle then everything is work good.
ShortProgrammer
27-Oct-13 5:15am
View
but there is still other problem
ShortProgrammer
25-Oct-13 8:16am
View
Thanks you ,My skype id tariq.php10
ShortProgrammer
25-Oct-13 8:14am
View
I'm using <asp:ScriptManager ID="ScriptManager1" runat="server">
ShortProgrammer
25-Oct-13 8:13am
View
Are you're tottaly right that this issue due returning back from page_load . I was also thinking soo. I'd like to show you my code and application ,maybe you point out where i'm doing wrong or how can i fix this issue .
ShortProgrammer
25-Oct-13 8:10am
View
Well Would you like We skype and share secreen Please. Its will be Easy to help.
ShortProgrammer
25-Oct-13 8:06am
View
When i don't use update panel Then CSS work properly and everything work ..
I can't Understand how to fix its ,But Javascript Code i donot like write .Can you give other trick please ??
ShortProgrammer
25-Oct-13 7:40am
View
Becaus i've every where this problem ,I've put my Gridview in update panel .When i select on row of grid and its show record on above fields . so here also my DDL css not work when i selet row of gridview :(
ShortProgrammer
25-Oct-13 7:38am
View
With I don't want use Java script everywhere :( ,In my application so many time i need disable and enable process .so C# cose is easy for thats, Please give me other idea,Can you tell me that due to update panel This issue can be ???
ShortProgrammer
25-Oct-13 6:57am
View
Yeah i know Sorry For that
ShortProgrammer
24-Oct-13 12:00pm
View
I'm sorry i've Autopost Back true , Well i give you my code ddl line,
<p>
<label>
Insurance Provider</label>
<asp:DropDownList ID="DrpInsuranceProvider" CssClass="DropDownSlide" AutoPostBack="true" OnSelectedIndexChanged="DrpInsuranceProvider_SelectedIndexChanged" runat="server">
</p>
And aspx.cs code C# on event here
protected void DrpInsuranceProvider_SelectedIndexChanged(object sender, EventArgs e)
{
if (DrpInsuranceProvider.SelectedItem.Text != "Choose One")
{
txtothers.Enabled = false;
}
}
ShortProgrammer
24-Oct-13 11:44am
View
Between i think you're not good programmer to solve Problem LOL ,Please Don't mind
ShortProgrammer
24-Oct-13 11:40am
View
WEll YOu know what was my problem tital?? this one
{ Ajax Calender Overlaping over Jquery Dropdownlips in Asp.net c#}
So jQuery controls use css, it is a visual problem it can ususally be solved by css. Read this about css ZIndex:
http://css-discuss.incutio.com/wiki/Overlapping_And_ZIndex
So just set Z-index =4 then my problem Solve LOL .
ShortProgrammer
24-Oct-13 11:34am
View
I've search in google already about its i could not find my problem solution ..
ShortProgrammer
24-Oct-13 11:21am
View
LOL i'm really can't understand why are you asking about Calender code.As my Calender working properly and there is no problem in Calender haha ,Problem is Dropdownlist
ShortProgrammer
23-Oct-13 6:54am
View
I can't understand what you're talking about,, did you saw image i've upload and put a link with my question?? you can see calender too in image,calender is working .... the problem is other
ShortProgrammer
23-Oct-13 6:53am
View
This is Calender is inMicrosoft asp.net controll >>
ShortProgrammer
22-Oct-13 14:12pm
View
i really using this calender ,,, and in this way useing as i give you code..
ShortProgrammer
22-Oct-13 14:12pm
View
i really using this calender ,,, and in this way useing as i give you code..
ShortProgrammer
22-Oct-13 14:11pm
View
link of what ??
ShortProgrammer
22-Oct-13 12:23pm
View
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %> add this assembly
then with textbox this
<ajaxToolkit:CalendarExtender CssClass="red" runat="server" ID="calExtender1"
PopupPosition="BottomRight" PopupButtonID="dob"
TargetControlID="dob">
ShortProgrammer
22-Oct-13 12:21pm
View
Calender code is this AJax
ShortProgrammer
22-Oct-13 11:42am
View
Yes you're right ,,, i really don't like Jquery ,,,,C# is best LOL .
Actually i'm working on site which is old and i'm just changing some thing,so this reason Jquery ........
ShortProgrammer
22-Oct-13 11:39am
View
haha world :D i just using button1.Enabled=true;
ShortProgrammer
22-Oct-13 10:50am
View
I don't know if its problem due to Upldate panel on this part .i've put one update panel for all fields and buttons .
ShortProgrammer
22-Oct-13 10:48am
View
if you want know about Jquery code . please open this link .
http://www.codeproject.com/Questions/672326/Jquery-CSS-not-working-on-DDL-when-Click-Disabled
I've put my some part of code.
ShortProgrammer
22-Oct-13 10:44am
View
LOL ofcourse yes i've added,if not why its work when page load?? only not work when i click on button for enabled fields.
look i've added every thing,just some i show you :P.
<head runat="server">
<title>CUBE EMR-MS</title>
<link href="css/StyleSheet.css" rel="stylesheet" type="text/css" />
<link href="Script/red.css" rel="stylesheet" type="text/css" />
<link href="Script/black.css" rel="stylesheet" type="text/css" />
<link href="Script/orange.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.5.1.js"></script>
<script type="text/javascript" src="js/jquery-min.js"></script>
<script type="text/javascript" src="js/cookie.js"></script>
<script src="js/validation.js" type="text/javascript"></script>
<!--<script type="text/javascript" src="js/jquery-1.2.3.pack.js"></script>-->
<!-- Forms -->
<link href="css/StyleSheetDataGrid.css" rel="stylesheet" type="text/css" />
<script src="js/sliding.form.js" type="text/javascript"></script>
<script src="js/selectDropDown.js" type="text/javascript"></script>
<script src="user/js/selectDropDown.js" type="text/javascript"></script>
ShortProgrammer
22-Oct-13 10:41am
View
Deleted
hope now you understand what i mean LOL
ShortProgrammer
22-Oct-13 10:41am
View
(document).ready(function(){
// The select element to be replaced:
$('select.DropDownSlide').each(function(i){
var select = $(this);
var selectBoxContainer = $('<div>', {
width : select.outerWidth(),
className : 'tzSelect',
html : '<div class="selectBox"></div>'
});
var dropDown = $('<ul>',{className:'dropDown'});
var selectBox = selectBoxContainer.find('.selectBox');
// Looping though the options of the original select element
select.find('option').each(function(i){
var option = $(this);
if(i == select.attr('selectedIndex')){ selectBox.html(option.text()); }
if(option.data('skip')){ return true; }
var li = $('<li>',{ html: option.text() });
li.click(function(){
$('li').removeClass('dropSelected');
$(this).addClass('dropSelected');
selectBox.html(option.text());
dropDown.trigger('hide');
select.val(option.val());
return false;
});
dropDown.append(li);
$('li:first').addClass('selected');
});
selectBoxContainer.append(dropDown.hide());
select.hide().after(selectBoxContainer);
// Binding custom show and hide events on the dropDown:
dropDown.bind('show',function(){
if(dropDown.is(':animated')){
return false;
}
selectBox.addClass('expanded');
dropDown.slideDown();
}).bind('hide',function(){
if(dropDown.is(':animated')){
return false;
}
selectBox.removeClass('expanded');
dropDown.slideUp();
}).bind('toggle',function(){
if(selectBox.hasClass('expanded')){
dropDown.trigger('hide');
}
else dropDown.trigger('show');
});
selectBox.click(function(){
dropDown.trigger('toggle');
return false;
});
$(document).click(function(){
dropDown.trigger('hide');
});
});
});
ShortProgrammer
22-Oct-13 10:37am
View
I mean CSS +Jquery class ,i called this call in DLL .take look this code.
<asp:DropDownList ID="DDLAdName" CssClass="DropDownSlide" runat="server">
ShortProgrammer
22-Oct-13 10:33am
View
AND HTML CODE This .
<asp:UpdatePanel ID="UpdatePanel7" runat="server">
<contenttemplate>
<p class="btnmargin" style="padding-bottom:50px">
<label>
</label>
<asp:Button ID="NOKbtnAdd" runat="server" Text="Add" onclick="NOKbtnAdd_Click" />
<asp:Button ID="NOKbtnSave" runat="server" Text="Save" onclick="NOKbtnSave_Click"/>
<asp:Button ID="NOKbtnUpdate" runat="server" Text="Update"
onclick="NOKbtnUpdate_Click" />
<asp:Button ID="NOKbtnDelete" runat="server" Text="Delete"
onclick="NOKbtnDelete_Click" />
</p>
ShortProgrammer
22-Oct-13 10:31am
View
Simply calling A method .
protected void rdbhaveinsurance_selectIndexchanged(object sender, EventArgs e)
{
EnabledInsuranceFields();
}
// Method is here
public void EnabledInsuranceFields()
{
DrpInsuranceProvider.Enabled = true;
DrpInsuranceProvider.Enabled = true;
PExpDate.Enabled = true;
txtothers.Enabled = true;
PInsPlan.Enabled = true;
}
ShortProgrammer
22-Oct-13 10:30am
View
Deleted
Simply calling A method .
protected void rdbhaveinsurance_selectIndexchanged(object sender, EventArgs e)
{
EnabledInsuranceFields();
}
// Method is here
public void EnabledInsuranceFields()
{
DrpInsuranceProvider.Enabled = true;
DrpInsuranceProvider.Enabled = true;
PExpDate.Enabled = true;
txtothers.Enabled = true;
PInsPlan.Enabled = true;
}
ShortProgrammer
22-Oct-13 10:21am
View
http://www.flickr.com/photos/106258593@N02/
ShortProgrammer
22-Oct-13 10:18am
View
Please look image name (withoutclickEnabledMehtodbutton) .
when i click on button for enabled fields then look image name (afterclickbutton),
Look at DropDownlist ,its without CSS ,why CSS disapear ???
ShortProgrammer
22-Oct-13 10:06am
View
I'd like to share other problem too ,I've two button in the same page as you saw pic.
One button click even i call method which Enabled all fields ,textboxs,Dll, and on load Page i'm calling method which Disabled All fields. ,so when page load every thing work good , After page load When i click on button for Enabled Fields ,its Enabled all fields but DLL jquery not work . DDL drop down in simple style without jquery class and css . , Please help
ShortProgrammer
22-Oct-13 9:50am
View
Thanks you So much ,yes its work for me ,
ShortProgrammer
22-Oct-13 9:49am
View
Oh thanks yes you was right i set zIndex =4.now its better than before
ShortProgrammer
22-Oct-13 9:35am
View
I try its still same ,
ShortProgrammer
22-Oct-13 9:32am
View
I try this ,its doesnot work,its still same
ShortProgrammer
22-Oct-13 9:14am
View
CSS Issue ,,I do'nt think its Css Issue Because as you can see other textbox ,on other texbox its work good. ,only overlap jquery DDL.If i remove Jquery class from DLL then its work good too LOL .But problem creat with Jquery,
ShortProgrammer
21-Jul-13 12:57pm
View
OH I am sorry i not understand this,If i change this then where user will put his Email address ??? maybe User Email id i take in body behind code from textbox??
I'm still confuse in "From" And "To" Part . in "form part which Id i'll put ??? my company Id?" and in "To" Part which i'll put ?/ in both same ??? here i confuse haha LOL
Thanks
ShortProgrammer
15-Jul-13 3:17am
View
Server Error in '/' Application. Server does not support secure connections.
Show More