15,895,142 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 dhage.prashant01 (Top 200 by date)
dhage.prashant01
12-Aug-15 10:23am
View
I have done the same, used 'forEach' loop.
dhage.prashant01
12-Aug-15 4:18am
View
I have updated the question.
dhage.prashant01
12-Aug-15 4:01am
View
Sorry it is an autocomplete feature.
dhage.prashant01
3-Feb-15 1:14am
View
Sorry, I have updated the comment.
dhage.prashant01
2-Feb-15 23:01pm
View
In short, I want to run data annotation validation on Blur not on KeyUp of the control.
Any way to do it?
dhage.prashant01
27-Jan-15 22:46pm
View
TQ, surely will try what you said and revert back :)
dhage.prashant01
8-Jan-15 5:44am
View
It worked, TQ :)
Now the problem is value can be 0000000000.00
How can we handle below
0.0 or 1.0 - Valid
01.0 - Invalid
dhage.prashant01
8-Jan-15 5:30am
View
My requirement is
1234567890123456 - valid
12345678901234567- invalid
1.123456789 - valid
1.1234567890 - invalid
12345678901234567.1 - invalid
dhage.prashant01
8-Jan-15 5:26am
View
My requirement is value can be int or decimal.
If I remove '?', then the it invalidates the int value.
dhage.prashant01
6-Jan-15 2:58am
View
TQ Kornfeld Eliyahu Peter, I got the solution :)
dhage.prashant01
6-Jan-15 2:23am
View
When I tried to debug the code, it is where from following line in submit action
$('#btnUpload').attr('disabled', 'disabled');
It goes at following code in jQuery file and gives error
jQuery.event.triggered = type;
try {
elem[ type ]();
} catch ( e ) {
// IE<9 dies on focus/blur to hidden element (#1486,#12518)
// only reproducible on winXP IE8 native, not IE9 in IE8 mode
}
dhage.prashant01
27-Nov-14 23:57pm
View
I would say, get the complete data on client at one go and bind that data to jQuery autocomplete textbox, rather than hitting the service for each character entered by the user.
dhage.prashant01
11-Nov-14 4:36am
View
Yes, CollectionGroupEntity is service entity while CollectionGroupViewModel is MVC model.
In short, I want to create single mapper function which can map objects in both way.
dhage.prashant01
10-Nov-14 7:25am
View
But i have model EditPaymentMethod, just need to add new properties depending on BPay.
Using:
dynamic configObject = new ExpandoObject();
There is no need for me to create EditPaymentMethod
Correct me if I'm wrong.
dhage.prashant01
30-Oct-14 6:43am
View
still no solution
dhage.prashant01
30-Oct-14 6:08am
View
still alert is not displayed.
I think '@' is razor syntax, because of which the alert is not working.
any idea?
dhage.prashant01
30-Oct-14 5:59am
View
I can see the result in the strHTML, but alert is not working
dhage.prashant01
28-Oct-14 5:13am
View
fadeOut is not solution, it makes table to be hidden.
dhage.prashant01
21-Oct-14 8:08am
View
I have created the constructor in child class
public class EditCollectionGroupViewModel : CollectionGroupViewModel
{
public SelectlistView ProcessingCenterList { get; set; }
public EditCollectionGroupViewModel(CollectionGroupViewModel model)
{
this.TenantID = model.TenantID;
this.Market = model.Market;
this.GroupName = model.GroupName;
this.GTS = model.GTS;
this.ProcessingCenter = model.ProcessingCenter;
this.ProcessingCenterList = null;
}
}
An this is how I passed the parent object to the constructor
var model = GetCollectionGroupViewList().Where(x => x.TenantID == tenantID).Select(x => new EditCollectionGroupViewModel(x)).Single();
dhage.prashant01
21-Oct-14 8:07am
View
I tried the same..!!
Bingo..
dhage.prashant01
14-Oct-14 7:50am
View
Actually I don't want to create model now.
I have to just create UI using MVC helper classes.
dhage.prashant01
14-Oct-14 7:26am
View
It cannot find market in the item
dhage.prashant01
10-Sep-14 10:23am
View
What was I trying to know
From view I'm calling WCF service using jquery, as per my understanding WCF does not have data annotation.
So when we receive the data from the wcf service, how we can attach data annotation to the data received from the service and validate the same?
dhage.prashant01
17-Jul-14 0:37am
View
Ya my question has the solution in it.
Sorry flocks :P
dhage.prashant01
4-Jul-14 0:58am
View
I was bit confused on this
If I say .k-tooltip-content > .toolTipList:nth-child(2), why it considers the hr as second child?
dhage.prashant01
12-Jun-14 0:20am
View
We are using MVVM pattern using typescript and kendo bindings..
So in our view we are populating viewmodel and sending it to the common function which takes the element to bind, viewmodel.
following is my template code
<script id="AvailableKpiTilesTemplate" type="text/html">
<div><span class="treeview-title" data-bind="text: GetString('Summary_Panel_Available_Metrics')"></span> </div>
<div id ="available-tile-tree-view" data-template="treeTemplate" data-role="treeview" data-bind="source: Tiles" ></div>
</script>
<script id="treeTemplate" type="text/x-kendo-template">
# if (item.Selected) { #
<div class='tree-view-item-unselect tree-view-item-select'> #= item.DisplayName #<span class='add-tile'></span></div>
# } else { #
<div class='tree-view-item-unselect'> #= item.DisplayName #
</div>
# } #
</script>
If you see my if part, if item.selected == true then you cant select the node.
I have to make change, I don't want to display the node itself.
If I remove the if part, it works fine but when treeview is created it generates <ul></ul> list and nodes which are generated u have blank <li></li>, so the UI get wrong behavior.
In sort, I want to avoid generation of the <li></li>.
any idea?
dhage.prashant01
21-May-14 8:36am
View
TQ it has worked
dhage.prashant01
21-May-14 5:00am
View
When I try to debug the code, it give me error saying cannot find Url in
this.KpiTilesBobMetadata.Url()
dhage.prashant01
28-Apr-14 1:51am
View
I have been through this links.
I want to know how knockout bindings are written in typescript.
Any idea?
dhage.prashant01
14-Feb-14 1:38am
View
Yes
dhage.prashant01
18-Nov-13 4:27am
View
CSS for above:
.divLogo1{width:10%;}
.divSetting1{width:10%;text-align:right;}
.projName1{width:75%;color:Black;display:inline-block;margin:0 auto;}
.displayBlock{display:block;}
.heightTenPerc{height:10%;}
.floatRight{float: right;}
.floatLeft{float: left;}
.divHalf{width: 49%;}
.borderRed{border:1px solid red;}
.horizontalCenter{text-align:center;}
dhage.prashant01
13-Nov-13 4:53am
View
TQ Sampath, for your time.. :)
dhage.prashant01
13-Nov-13 4:04am
View
TQ Tadit for taking out problem into picture.
I have made following change in my code
$('#ddlConvention option:first').attr("selected", true);
$('#ddlConvention').siblings('.ui-btn-inner').find('.ui-btn-text').find('span').text($('#ddlConvention option:selected').text());
Instead of
$('#ddlConvention option:first').attr("selected", true).change();
dhage.prashant01
13-Nov-13 2:20am
View
Actually I'm using Jquery Mobile, so if I want to select the first index of the dropdown I need set and call change event as below
$('#ddlConvention option:first').attr("selected", true).change();
Any idea how I can achive this without calling change event??
dhage.prashant01
13-Nov-13 2:17am
View
TQ..
Inside the bind function, I'm setting the dropdown and calling the change event.
//BIND CONVENTION
$('#ddlConvention').empty();
$.each(data.obj.lstConvention, function (i, obj) {
var option = '<option value = "' + obj.ConventionId + '">' + obj.ConventionName + '</option>';
$('#ddlConvention').append(option);
$('#ddlConvention option:first').attr("selected", true).change();
});
dhage.prashant01
12-Nov-13 23:54pm
View
bindControls(userData) only contains ajax call which fetch the data from WebApi, but when I bind bindControls(userData) fo onchange event of dropdown it goes in loop.
Any idea whats going wrong??
dhage.prashant01
12-Nov-13 23:52pm
View
When I call bindControls(userData) instead of alert it goes in loop.
Above code is not working..
dhage.prashant01
12-Nov-13 7:43am
View
I have checked the Fiddler, the request goes in loop.
But I'm only trying to bind the event to the controls which will call the bindControl method.
Only for dropdown it is goin in loop.
Any idea?
dhage.prashant01
11-Nov-13 7:26am
View
Thanks Prasad..!!
dhage.prashant01
27-Sep-13 5:50am
View
Yes it working. Actually I was just checking to optimise the query. But both IN and EXISTS Query Cost is 100%
dhage.prashant01
27-Sep-13 5:46am
View
How does it actually works??For every account in RMT_RiskAssessmentPlan it checks if ti closed or not.If it is not closed then that account is returned else it is skiped.Correct me if I'm wrong..
dhage.prashant01
27-Sep-13 5:31am
View
I have update my question.
Not exists gives me 0 record and if i use exists it gives me closed as well as open account
dhage.prashant01
27-Aug-13 5:53am
View
Thanks sir for your time..!!
[b]Learned something new :) [/b]
dhage.prashant01
27-Aug-13 5:25am
View
Then why .click() event was not getting fire??
dhage.prashant01
27-Aug-13 5:13am
View
One more query..??
I have written code inside $(doucument).ready.(), .click() event should work in that case.
Because even if it is dynamically created
, events are binded only after all elements are loaded.
Correct me if I'm wrong..
dhage.prashant01
27-Aug-13 4:49am
View
Reasons:
1. jQuery attempts to retrieve the elements specified by the selector before calling the .live() method, which may be time-consuming on large documents.
2. Chaining methods is not supported. For example, $("a").find(".offsite, .external").live( ... ); is not valid and does not work as expected.
3. Since all .live() events are attached at the document element, events take the longest and slowest possible path before they are handled.
dhage.prashant01
27-Aug-13 3:24am
View
I got the reason why it is deprecated
So in short, .click() does not work for dynamically created elements.
In such case you need to use .on or .delegate() depending on the version of jquery, to bind the events to the elements which is present or which will be created in the future.
Correct me if I'm wrong..
Thanks..!!
dhage.prashant01
27-Aug-13 3:11am
View
Your solution did not work, but I modified the same as bellow
$(document).on('click', '#DataTable tfoot a', function (e) {
alert('hi');
e.preventDefault();
}
and it is working fine.
.live() too was working fine, then why use of .live() is not recommended??
dhage.prashant01
27-Aug-13 3:00am
View
I have changes the Jquery version to jquery-1.7.2.js
I tried to use .delegate as well .on as per your solution, but they are not working.
But when i tried live, it is working fine.
why .delegate and .on not working??
dhage.prashant01
26-Aug-13 8:29am
View
.live() is working fine
why i need to use live() and what was problem with .click() in version jquery-1.4.4.js??
if possible please provide comments, that will help me to learn more..
Thanks
dhage.prashant01
10-Jul-13 7:02am
View
even if i put alert('hi');
it is not geting displayed.
function is not getting bind to each fropdown in the table.
any idea
dhage.prashant01
18-Jun-13 5:37am
View
I want to write my own code.
Any idea or any logic you can provide?
dhage.prashant01
14-May-13 7:11am
View
Your code work fine.
But as per Solution 2, i need to use input tag to find the control
$(this).closest('td').find('input').val(1);
dhage.prashant01
14-May-13 2:34am
View
I have use siblings, to get the label of that row in which the link is clicked
dhage.prashant01
10-May-13 7:13am
View
i jst wana know, using
where convert(datetime,@MRFM_FrDt,103) <= isnull(MPD.MPD_CurrReqdByDateRM, MM.MRFM_ReqdByDate)
in query wont affect the performance?
dhage.prashant01
9-May-13 7:02am
View
Thanks :)
dhage.prashant01
9-May-13 6:55am
View
as per my knowledge following works fine
ISNULL(@RRPTDemandStatus, mpd.MPD_DemandStatus)
In my case i had records which null values for the MPD_DemandStatus column, so in my condition records with null value was missing.
But when i added following
(MPD.MPD_DemandStatus = @RRPTDemandStatus OR @RRPTDemandStatus is null)
it worked perfectly
@RRPTDemandStatus is null
Fetched all records with null value
But my concern is what below condition does?
@RRPTDemandStatus is null
dhage.prashant01
9-May-13 6:45am
View
(MPD.MPD_DemandStatus = @RRPTDemandStatus OR @RRPTDemandStatus is null) worked for me
btw what does below condition mean?
@RRPTDemandStatus is null
dhage.prashant01
9-May-13 6:39am
View
right outer join is wrong logic
dhage.prashant01
9-May-13 6:35am
View
This works fine, but when i put and MPD.MPD_MRFStatusID = 5 (open state) in where clause
it gives me all records including null but MPD_MRFStatusID = 5 does not work
dhage.prashant01
10-Apr-13 1:10am
View
I want to do in sum other way, any other technique?
dhage.prashant01
9-Apr-13 1:17am
View
One way i know is through Jquery
loop through each tr and create CSV and send to action at controller side??
Any other way to do the same??
dhage.prashant01
15-Mar-13 8:13am
View
If I try
<select id="ddlProduct" data-bind="options: ProductName"></select>
and my data contains in following format
[{"ProductID":1,"ProductName":Monitor},......]
I gives error:
Microsoft JScript runtime error: Unable to parse bindings.
Message: [object Error];
Bindings value: options: ProductName
Any Idea, where I'm goin wrong??
dhage.prashant01
14-Mar-13 1:16am
View
I tried but did not get ans for my all question.
I was looking for expertise suggestion and i got it below and hope this post helps other new developers like me to learn more.
Cheers :)
dhage.prashant01
28-Feb-13 6:04am
View
I tired using TempData and its working.
When I tried following it gives error
ViewBag.Msg = "Invalid User";
return View("Login");
what is difference between ViewData,ViewBag,TempData??
dhage.prashant01
22-Feb-13 4:30am
View
I want to set divDetails height based on height of dgDetails
So below code is perfect
var height = $('#dgDetails').height();
height will be then assigned to the div
dhage.prashant01
21-Feb-13 5:13am
View
Even pasting the code at the end of page
the value is still null
Should i try the code in render event of the page?
dhage.prashant01
31-Oct-12 3:06am
View
I want to find employee with both role A and B
SELECT * FROM EMP WHERE ROLE LIKE 'A' OR ROLE LIKE 'B'
will get records for employee whose role is either A or B, which is not my requirment
dhage.prashant01
31-Oct-12 3:04am
View
Table has many columns
But i cut down to short as per my need :)
For the purpose of understanding
dhage.prashant01
16-Oct-12 2:59am
View
Any link for reference?
dhage.prashant01
16-Oct-12 2:59am
View
I have 100 tables, it will be tedious task
Any automation??
dhage.prashant01
16-Oct-12 2:47am
View
I want to move the as it is table from one DB to another, including all constraints
Even i want to change the name of table, it should be prefix with RR_TableName
Any idea how to do it??
dhage.prashant01
4-Oct-12 2:50am
View
Actually the frames are not visible when I run an application
dhage.prashant01
11-Sep-12 2:25am
View
I have written jquery method in wf_PrjEstDetails.aspx page
$(document).ready(function () {
var qs = window.location.toString(); //.split("?")[1];
//qs = qs.replace("id=", "");
alert(qs);
// return qs;
});
It gives some URL with encrypted parameters, is this reason in code behind it is not able to find id in QueryString??
Any idea??
dhage.prashant01
11-Sep-12 2:23am
View
This is my JavaScript Method:
function openWinSPV(strPath, object,objname)
{var selectedText = window.parent.frames(0).window.document.getElementById('ddlAccount').selectedIndex;
var drpacc = window.parent.frames(0).window.document.getElementById('ddlAccount').options[selectedText].text;
if(drpacc.indexOf("Select")!=-1)
{
alert('Please select an account!!!');
return false;
}
selectedText = window.parent.frames(0).window.document.getElementById('ddlContract').selectedIndex;
var drpcontract = window.parent.frames(0).window.document.getElementById('ddlContract').options[selectedText].text;
if(drpcontract=="" ||drpcontract.indexOf("Select")!=-1)
{
alert('Please select the Contract!!!');
return false;
}
selectedText = window.parent.frames(0).window.document.getElementById('ddlAccount').selectedIndex;
//var arg= window.parent.frames(0).window.document.getElementById('ddlAccount').value;
var arg= window.parent.frames(0).window.document.getElementById('ddlAccount').value;
//alert(arg);
strPath+="&id1="+ arg;
arg= window.parent.frames(0).window.document.getElementById('ddlContract').value;
//alert(arg);
strPath+="&id2="+ arg;
//if(window.parent.frames(0).window.document.getElementById('hdGrpCtr').value>0)
if(window.parent.frames(0).window.document.getElementById('lblGrName')!= null)
{ arg= window.parent.frames(0).window.document.getElementById('ddlGroup').value;
//alert(arg);
strPath+="&id3="+ arg;
}
else
strPath+="&id3=0";
arg=window.parent.frames(0).window.document.getElementById('ddlEstimate').value;
strPath+="&id4="+ arg;
strPath = strPath + "&random='" + Math.random() + "'"; //Added for call ID - 94483 to avoid caching of pages
alert(strPath);
window.parent.frames(2).document.location.href = strPath;
// var newWindow=window.open(strPath,object);
// newWindow.focus();
}
dhage.prashant01
9-Sep-12 23:22pm
View
I appreciate your work friend
But i don't want to change the entire code, actually this page has 3 frames which in turn call three different pages.
I tried with actual code, but it seems .NET 4.0 don't support frames.
So was thinking to work around with frames.
Any more suggestion??
dhage.prashant01
6-Sep-12 6:45am
View
This is how i bind
private void BindVerticalApplicationMenu()
{
if (string.IsNullOrEmpty(this.VerticalSiteMapProvider))
{
if (string.IsNullOrEmpty(ConfigurationManager.AppSettings["SiteMapProvider"]))
{
VerticalSiteMapDataSource.Provider = SiteMap.Providers["SiteMapProvider2"]; //Use default application menu.
}
else
{
VerticalSiteMapDataSource.Provider = SiteMap.Providers[ConfigurationManager.AppSettings["SiteMapProvider"].ToString()];
}
}
else
VerticalSiteMapDataSource.Provider = SiteMap.Providers[this.VerticalSiteMapProvider];
VerticalSiteMapDataSource.ShowStartingNode = false;
tvMenu.DataSourceID = "VerticalSiteMapDataSource";
tvMenu.DataBind();
for (int i = 0; i < tvMenu.Nodes.Count; i++)
{
if (tvMenu.Nodes[i].ChildNodes.Count > 0)
{
for (int j = 0; j < tvMenu.Nodes[i].ChildNodes.Count; j++)
{
tvMenu.Nodes[i].ChildNodes[j].ImageUrl = "~/commonproject/images/navbullet.gif";
}
}
}
}
But if i change content of site map it loads. But above mentioned sitemap is not getting loaded. Is there any XML syntax error?
dhage.prashant01
5-Sep-12 1:05am
View
I have tried below code and works perfect for me :)
And thanks for your solution too, surely will try to work on it :)
dhage.prashant01
5-Sep-12 0:29am
View
I can solve this issue by using IF ELSE condition and repeating the same code.
But i want to handle in same query.
Any solution??
dhage.prashant01
4-Sep-12 7:35am
View
Yes if else will do, it will repeat my entire code twice. which i want to avoid.
dhage.prashant01
4-Sep-12 7:34am
View
Your solution is similar to
A.VCID = ISNULL(@VCID,A.VCID)
dhage.prashant01
4-Sep-12 7:32am
View
my condition is when @VCID = NULL then condition in where clause should get fire else it should not. Your solution don't work
dhage.prashant01
4-Sep-12 7:11am
View
Condition:
When @VCID is not null then only the condition in the where clause should execute else it should not
any idea how to do it??
dhage.prashant01
4-Sep-12 7:07am
View
yes it is inside procedure.
dhage.prashant01
28-Aug-12 2:09am
View
i have handled the same in backend, its working fine.
dhage.prashant01
28-Aug-12 2:09am
View
i have handled the same in backend, its working fine.
dhage.prashant01
27-Aug-12 7:23am
View
Still same issue
if i replace some other date field in
FORMAT(CDate(Fields!LastActivityDate.Value),"dd-MM-yyyy")
It works fine, but referring same field gives error.
Any idea, y so??
dhage.prashant01
27-Aug-12 6:56am
View
Still its giving the same error.. :(
dhage.prashant01
27-Aug-12 6:00am
View
I have returned data in comma separated string format and in jquery I split it and using loop i bind it to the dropdown
hope it helps you out =)
dhage.prashant01
20-Jun-12 7:31am
View
problem is that i have two function
1. fillVC (i hide div)
2. showDIV (i display div)
I call this method as given question
Problem: div get visible and hidden in few seconds on button click
Any idea how to do it??
dhage.prashant01
20-Jun-12 7:18am
View
problem is that
i have two function
1. fillVC (i hide div)
2. showDIV (i display div)
I call this method as given question
Problem: div get visible and hidden in few seconds on button click
dhage.prashant01
20-Jun-12 3:26am
View
Instead of filling the grid on ddlVC selectedIndex change event, I'm doing on button press event and its working fine.
But surely I'vl go through your solution =)
thanks buddy
dhage.prashant01
20-Jun-12 2:03am
View
Actually I'm dynamically filling dropdown using JQuery.
So the ASP.NET is not aware of dynamically added items to the dropdown.
When i try to get value of dropdown using .selectedvalue, it gives empty string.
Request.Form[ddlVC.UniqueID], solved my problem. it holds the value of selected index.
dhage.prashant01
8-Jun-12 1:00am
View
Export Data from DataSet to Excel
has incomplete code.
how to do it??
dhage.prashant01
5-Jun-12 4:54am
View
check out my new issue in below link
http://www.codeproject.com/Questions/397388/HTMLEditorExtender-inside-Ajax-Accordion
dhage.prashant01
5-Jun-12 3:20am
View
hey now itz working fine
div gets toggle, but another new problem
The text box within the toggle div appears straight vertical line =(
Since i have used
HtmlEditorExtender
Any idea how to resolve it??
dhage.prashant01
5-Jun-12 3:09am
View
Still same error =(
my code works fine in simple aspx page but gives error when used using master page
what can be the issue?
dhage.prashant01
5-Jun-12 3:00am
View
here is my viewsource code
<div>
<div style="border:1px solid Black;background-color:#D3DEEF;height:25px;">
Comments:
</div>
<div id="divComments" style="text-align:center;border:1px solid Black;height:100px;border-top-style:none;padding-bottom:15px;display:none;">
<textarea name="ctl00$cphPage$txtComments" rows="2" cols="20" id="cphPage_txtComments" class="ms-authoringcontrols" style="border-color:#7F9DB9;border-width:1px;border-style:solid;height:80px;width:80%;">
</textarea>
<input type="hidden" name="ctl00$cphPage$HtmlEditorExtender1_ClientState" id="cphPage_HtmlEditorExtender1_ClientState" />
</div>
</div>
dhage.prashant01
5-Jun-12 2:52am
View
I'm using IE8 browser
dhage.prashant01
5-Jun-12 2:50am
View
Best option
But in our project they don't use JQuery =(
I want to do it using javascript.
actually i was trying something in below link
asdasd
[
]
For alternate i preferred to use div.
any idea what i can do now??
dhage.prashant01
5-Jun-12 2:41am
View
It is div tag, this is HTML control. So there cannot be change in the control id.
I have pasted my code above.
dhage.prashant01
4-Jun-12 1:07am
View
Great done
Btw when i double click the event, it automatically gets bind to the button.
Dont know what went wrong.
Now its working fine =)
thnks
dhage.prashant01
1-Jun-12 5:00am
View
no idea
can you give some idea about it?
dhage.prashant01
1-Jun-12 4:03am
View
I tired
Its working fine but the output goes this way when i click enter
* asd
*
<- here is where cursor goes
i want cursor next to *
any idea?
dhage.prashant01
23-May-12 5:06am
View
Actually the table inside the HeaderDiv is automatically generated using javascript.
dhage.prashant01
23-May-12 4:49am
View
Everything working fine, only
var objchkbox = document.getElementById("HeaderDiv").getElementsByTagName("input");
does not detect checkbox
dhage.prashant01
23-May-12 4:44am
View
Yes in codebehind
Function is getting called, only first loop is not executing.
dhage.prashant01
15-May-12 7:45am
View
No its varchar field, it wont give the order in which the records are added to the table
dhage.prashant01
15-May-12 7:31am
View
It has
OppID(varchar),
ContractGrpCode(varchar),
CGVCID(int)
sorting on this columns, does not give the required result
Do I require to add a column to the table to hold record number??
But I want to avoid adding column
any other solution?
dhage.prashant01
15-May-12 7:21am
View
CGN does not have primary key Records are duplicated In simple , I want to show the data in grid with the latest record at the top followed by next least latest and so on.
dhage.prashant01
15-May-12 7:21am
View
sorry for that =)
dhage.prashant01
15-May-12 7:20am
View
CGN does not have primary key
Records are duplicated
In simple , I want to show the data in grid with the latest record at the top followed by next least latest and so on.
dhage.prashant01
15-May-12 7:05am
View
Oo sorry for that =)
Have habit of writing sql queries in caps
Hence I will do take care of it.
Nice to know, someone knows me..!! =)
dhage.prashant01
2-May-12 0:45am
View
No
dhage.prashant01
2-May-12 0:45am
View
In our project jquery is not used, so any other better option.
dhage.prashant01
2-May-12 0:44am
View
Its in aspx page
dhage.prashant01
12-Mar-12 11:49am
View
ok so how can i display .loginHolder when mouse hover on .caption
Any idea??
dhage.prashant01
8-Feb-12 1:03am
View
i want to know do I need to create account for every user and set its username and password?
dhage.prashant01
8-Feb-12 0:45am
View
lolz..
dhage.prashant01
12-Jan-12 5:35am
View
This only gives how it is implemented
I want to know, why we need polymorphism??
dhage.prashant01
12-Jan-12 5:32am
View
Can we use it when you need a class that could be used in different
ways. For instance try creating a 'Person' interface and then implement that
interface in a class called 'Man' - implement another class the 'Person'
interface and call this class 'Women' - Now both the 'Man' & 'Women' Classes
derive there members from the Person interface. The 'Man' is a 'Person' and
the 'Women' is a person. If we had created just two classes called 'Man' and
'Women' then they would have no connection and would also use most of the
same member names, even with the same logic
dhage.prashant01
26-Dec-11 4:02am
View
is it gridview completly loaded before its child control?
dhage.prashant01
9-Aug-11 2:36am
View
I don't think it will resolve this issue
dhage.prashant01
5-Aug-11 7:16am
View
thanks, resloved
dhage.prashant01
4-Aug-11 8:11am
View
One more, when I insert each part of string I want to get the record id in another array list.
Because later this id+clientid I will save in other table
dhage.prashant01
4-Aug-11 8:06am
View
Well thanks
That was I looking for
dhage.prashant01
4-Aug-11 8:01am
View
Dim arr As String()
it means you have declared array of string if I'm not wrong?
dhage.prashant01
4-Aug-11 7:50am
View
Ok I'm doing code in VB.NET
tell me, user enters a,b,c,d in text box, how can I insert a b c d separately into database
dhage.prashant01
4-Aug-11 7:44am
View
You did not get my point.
when you declare array, to need to mention its size.
but in my case, i don't have idea about size in advance.
User can input any text in comma separated format and each part of string I wan to save into database
dhage.prashant01
4-Aug-11 7:39am
View
Problem is I don't know the size of array in advance
for example I have string a,b,c,d
I want to save it in array as u said
but how can i determine the size?
dhage.prashant01
4-Aug-11 7:24am
View
I want it to take in array list, so that later it helps me to save each element of array into the database
Any idea, how can I do it?
dhage.prashant01
4-Aug-11 7:24am
View
I want it to take in array list, so that later it helps me to save each element of array into the database
Any idea, how can I do it?
dhage.prashant01
26-Jul-11 9:07am
View
No other option, I did in page load only
but if done in pageload, the fresh data will be available only when page is refreshed.
If I put on link, the fresh data is available on link click.
dhage.prashant01
26-Jul-11 9:01am
View
NoAs said, it is being open on linkbutton click (lnkQC)
dhage.prashant01
26-Jul-11 8:53am
View
this way i wont be able to sort n page
dhage.prashant01
26-Jul-11 8:33am
View
Yes I'm displaying it in Table format, I paste my code
<asp:Repeater ID="rptQC" runat="server"> <HeaderTemplate> <table border="1"> <tr> <td>
Client</td><td>
Category</td> <td>
Brand</td>
<td>
Comment</td>
</tr>
</HeaderTemplate>
<itemtemplate>
<tr>
<td><%#DataBinder.Eval(Container.DataItem, "clientname")%></td>
<td><%#DataBinder.Eval(Container.DataItem, "brandcategoryname")%></td> <td><%#DataBinder.Eval(Container.DataItem, "brandname")%></td> <td><%#DataBinder.Eval(Container.DataItem, "comment")%></td>
</tr>
<footertemplate> </table>
dhage.prashant01
26-Jul-11 7:09am
View
Yes your right.
how can we do this?
dhage.prashant01
26-Jul-11 6:41am
View
Let me tell you, why I'm using linkbutton
On click of link button, modal popup opens
I think your right. How come can we overcome it?
I cant remove href="#dialog", but any other way I can fill my repeater?
Now I'm trying to fill repeater when the link is clicked, if I fill in pageload the repeater wont have updated records until the page is refreshed.
dhage.prashant01
26-Jul-11 6:24am
View
Yet it does not get fire.
What can be the issue
dhage.prashant01
26-Jul-11 6:05am
View
No worry, I have replaced HyperLink with LinkButton, now the problem is LinkButton click event is not getting fired.
I tried following:
<asp:LinkButton runat="server" id="lnkQC" href="#dialog" name="modal" OnClick="lnkQC_Click">View
Protected Sub lnkQC_Click(ByVal sender As Object, ByVal e As EventArgs) Handles lnkQC.Click
fillRepeater()
End Sub
dhage.prashant01
26-Jul-11 5:53am
View
but how can i call fillRepeater function using JQuery?
Why do function to be declare SHARED to be called from client side?
dhage.prashant01
26-Jul-11 5:46am
View
Deleted
Yes.
Such live example makes OOPS concept clear.
dhage.prashant01
26-Jul-11 5:22am
View
As per my knowledge, static function can only refer static members.
So due to this there must be error.
I'm not sure.
dhage.prashant01
25-Jul-11 7:40am
View
Hello that's my parameter and I'm generating dynamic query
You cant pass parameter that way
According to our suggestion i got following result
WHERE Q.clientid IN ( + @CLIENTID + )
I tried
@SQL = @SQL + ' WHERE Q.clientid IN (' + CAST(@CLIENTID AS VARCHAR) + ')'
and its working fine
dhage.prashant01
14-Jul-11 7:33am
View
Thanks
But use of viewstate affects grids mode?
dhage.prashant01
14-Jul-11 7:10am
View
Because in that event I'm filling the dropdowns
I'm trying cascading dropdown in grid
dhage.prashant01
14-Jul-11 6:15am
View
I have pasted my rowdatabound event code
tell me where is wrong
dhage.prashant01
13-Jul-11 7:34am
View
I got the issue
I did not put <webmethod()> _
Can u tell me, how I set the value of dropdown based on the value of the cell
any idea?
dhage.prashant01
11-Jul-11 8:32am
View
coz i have 2 dropdown with same id
1. which is outside grid
2. present inside the grid
How can i use the function to fill the dropdown present inside the grid?
Any idea?
dhage.prashant01
8-Jul-11 4:51am
View
Sorry, but I did not get you
dhage.prashant01
8-Jul-11 1:48am
View
Basically, I want to put animation after delete so that the user can see the row has been deleted
dhage.prashant01
8-Jul-11 1:44am
View
Sure, tell me
Now I have deleted the record, I want to hide the row from grid
how can I pass the row number to the function?
dhage.prashant01
8-Jul-11 1:16am
View
Hey thanks, it worked
but any specific reason why we have to declare method static?
dhage.prashant01
7-Jul-11 9:06am
View
Thanks Partha
lnkDelete.Attributes.Add("onclick", "return funDelete(" & intID & ");
worked for me.
But i have some other issue, I'm trying to call webservice method passing this argument to delete record.
But the function is not getting called and gives error
dhage.prashant01
7-Jul-11 8:55am
View
I tried:
lnkDelete.Attributes.Add("onclick", "return funDelete(" + intID + ");")
It gives error:
Conversion from string "return funDelete(" to type 'Double' is not valid.
how can we pass parameter?
dhage.prashant01
7-Jul-11 8:47am
View
In RowDataBound I'm trying
lnkDelete.Attributes.Add("onclick", "return funDelete();")
I think, i have to pass command-argument in funDelete()
Right?
dhage.prashant01
7-Jul-11 8:35am
View
Yes now I have put my JS code.
dhage.prashant01
7-Jul-11 8:28am
View
It gives error:
Overload resolution failed because no accessible 'Write' can be called with these arguments
Any idea?
dhage.prashant01
7-Jul-11 8:26am
View
It gives me error:
Overload resolution failed because no accessible 'Write' can be called with these arguments.
Any idea, what does it mean?
dhage.prashant01
7-Jul-11 7:50am
View
I made use of Jquery
var id = $('#hfID').val();
But it gives error saying: undefined
Any idea, what is going wrong?
dhage.prashant01
2-Jul-11 2:01am
View
Json library?
I have made use of json through, ajax with jquery
so why ned of library?
dhage.prashant01
2-Jul-11 1:59am
View
how to address it?
document.getElementById('hfID').value;
it gives me error saying: document.getElementById('hfID').value is null
dhage.prashant01
30-Jun-11 7:31am
View
In read only mode, the checkbox are disable. When user clicks on edit, user can then change the status of check box.
How can i achieve this?
dhage.prashant01
29-Jun-11 0:17am
View
I have done most of the things, my problem is when I update the grid does not go back to read only mode even after setting
editindex = -1
calling bind function
dhage.prashant01
28-Jun-11 7:36am
View
Is this issue because I'm using dropdown in Edit Templete?
Or
I'm making use of custom control to edit, rather than commandfield?
dhage.prashant01
28-Jun-11 6:50am
View
Nice example, but when I update record the grid does not change back to read only mode.
Is it because we are using custom control to edit, rather than using BoundField ?
dhage.prashant01
28-Jun-11 6:12am
View
So using custom control, I can change from read only mode to edit mode but other way not happening.
I used following link as reference
http://www.codeproject.com/KB/webforms/editable_gridview_control.aspx
dhage.prashant01
28-Jun-11 5:49am
View
Deleted
Is this issue because I'm using dropdown in Edit Templete?
dhage.prashant01
27-Jun-11 9:23am
View
Deleted
I used this as refrence
In RowDataBound, i used following condition
If e.Row.RowType = DataControlRowType.DataRow Then
If (e.Row.RowState AndAlso DataControlRowState.Edit) > 0 Then
End If
End If
But the condition is never satisfied.
May i know why?
dhage.prashant01
27-Jun-11 6:32am
View
How can I set DropDown value to selected column value?
any idea?
dhage.prashant01
27-Jun-11 3:27am
View
Is it that table cannot be added to div tag?
So it is giving XML parser error?
dhage.prashant01
27-Jun-11 3:26am
View
Even after using p(paragraph) tag, it gives the XML parser error [:(]
dhage.prashant01
24-Jun-11 8:12am
View
Still same error
dhage.prashant01
24-Jun-11 7:50am
View
Now i removed the table, I have made use of panel.
Basic concept is, when I click on edit link in grid, the panel is displayed for updation process.
Soon I remove panel, page is displayed.
Not able to understand, how does this panel effects.
dhage.prashant01
24-Jun-11 7:18am
View
Helpless. . .
is it due to Master Page?
dhage.prashant01
24-Jun-11 6:39am
View
Its working for me, but problem is when I add table to div it gives XML parser error.
Any idea or solution?
dhage.prashant01
24-Jun-11 6:09am
View
Thanks for the same, but any solution?
dhage.prashant01
24-Jun-11 5:19am
View
I got where is the error, in javascript function
$('#divEdit').sidetoggle(fast);
It says, object expected, any other way to toggle div?
dhage.prashant01
24-Jun-11 5:06am
View
Where my code is going wrong, any idea?
dhage.prashant01
24-Jun-11 5:06am
View
Even I tried assigning function to HREF in RowDataBound event, still it not working. Any idea?
dhage.prashant01
21-Jun-11 3:36am
View
JQuery plugin do work on MAC?
dhage.prashant01
17-Jun-11 8:09am
View
Refer this link for something extra
http://msdn.microsoft.com/hi-in/magazine/cc163751(en-us).aspx
dhage.prashant01
17-Jun-11 7:54am
View
But I have gone through many site, people use collection rather than dataset. Any specify reason?
dhage.prashant01
15-Jun-11 5:14am
View
Can I write the condition into two separate joins on the table?
dhage.prashant01
15-Jun-11 4:56am
View
How can i do it separately in join?
dhage.prashant01
15-Jun-11 3:31am
View
Thanks for your reply
Actually what you said is right, I have taken an extra parameter @IARTWRKTYP whose value depend on @ARTWRKTYP.
I was not able to update value of @IARTWRKTYP in SSRS.
I have solved the problem by using case statement in SQL Query, which reduced the use of @IARTWRKTYP parameter.
But surely will like to know, how to set value of one parameter based on value of other parameter in SSRS
dhage.prashant01
8-Jun-11 3:51am
View
Yes after 4 days of research, well also came to know what actually JSON is and why it is used.
Nice Experience...
dhage.prashant01
8-Jun-11 3:14am
View
In loop alert this.jobno, it gives undefined
dhage.prashant01
8-Jun-11 3:00am
View
JSON.parse(msg);
Is not working, because when i alert the output of JSON.parse(msg);
it gives output [object Object]
dhage.prashant01
8-Jun-11 2:44am
View
I'm getting output
{"":[{"jobno":210330,"commenttext":"FILE DOWNLOAD START BUT ITS TAKE MORE TIME.\r\nPLEASE CHECK ATTACH SNAP."},{"jobno":210330,"commenttext":"pfa project form"},{"jobno":210482,"commenttext":"in the translation sheet attached. please take text from the sheet name \"Day cream SPF15\". in this sheet take option 2 text . the conservative copy. which is marked in yellow."},{"jobno":210502,"commenttext":"Create cld for all four AP,KA,KE ,TN"},{"jobno":210518,"commenttext":"Create cld for all four AP,KA,KE ,TN"}]}
can i use it like this to get value?
for (var i = 0; i <= msg.length - 1; i++) {
row = '<tr>';
row += '<td>' + msg[i].jobno + '</td>';
row += '<td>' + msg[i].commenttext + '</td>';
row += '</tr>';
table += row;
}
I tried it gives undefined in table values
dhage.prashant01
8-Jun-11 2:14am
View
Check out this link, i have used this in webservice to return data
http://usmanshabbir.blogspot.com/2010/10/simplest-way-to-use-jquery-datatable-in.html
dhage.prashant01
8-Jun-11 1:55am
View
What he is trying to do in CreateTableView function, is what I'm getting from my webservice. String in format <tr><td>data</td></tr>
This string I want to append to div and i have use this function for it
function Bind(msg) { alert("Hello"); alert(msg); var table = "<table id=tblResult border='1' style='width:100%;'><thead> <tr><th>JobNo</th> <th>Comment</th> </thead> <tbody>"; table += msg; table += '</tbody></table>'; $('#details').html(table); }
Problem is while appending, actual data is not visible. What visible is [object Object] on screen
dhage.prashant01
8-Jun-11 1:39am
View
Yes done, do i need to use eval() to serialize string return from webserivce?
dhage.prashant01
8-Jun-11 1:32am
View
Connection Info??
dhage.prashant01
8-Jun-11 1:26am
View
Deleted
now what i get in response is string data
so how can i append string to div in table format
I tried one
function Bind(msg) {
alert("Hello");
alert(msg);
var table = "<table id=tblResult border='1' style='width:100%;'><thead> <tr><th>JobNo</th> <th>Comment</th> </thead> <tbody>";
table += msg;
table += '</tbody></table>';
$('#details').html(table);
}
dhage.prashant01
8-Jun-11 1:23am
View
I paste my entire code here, that will give brief understanding
Code for aspx.cs
public static string getWIPComments()
{
DataTable objDT = new DataTable();
//objDT.TableName = "mydt";
try
{
StringBuilder strQuery = new StringBuilder();
strQuery.Append("select jobno,commenttext from tbl_workinprogress_comments where jobno in ( ");
strQuery.Append(" select jobno from tbl_planning P ");
strQuery.Append(" inner join tbl_mechanicalbrief on tbl_mechanicalbrief.mechanicalid= P.mechanicalid ");
strQuery.Append(" where statusid in (10)) ");
SqlConnection objCon = new SqlConnection("server=xxxx;Initial Catalog=xxxx;User ID=xx;Password=xxxx;pooling='true'; Max Pool Size=200;Connect Timeout=2000000;enlist=false;");
SqlCommand objCmd = new SqlCommand();
objCmd.CommandText = strQuery.ToString();
objCmd.CommandType = CommandType.Text;
objCmd.Connection = objCon;
objCon.Open();
SqlDataAdapter objDA = new SqlDataAdapter("", objCon);
objDA.SelectCommand = objCmd;
objDA.Fill(objDT);
}
catch(Exception e) { }
//return ToJson(objDT);
return ToString(objDT);
}
private static string ToString(DataTable table)
{
StringBuilder sb = new StringBuilder();
if (table != null)
{
if (table.Rows.Count > 0)
{
foreach (DataRow dr in table.Rows)
{
sb.Append("<tr><td>");
sb.Append((dr["jobno"]));
sb.Append("</td><td>");
sb.Append((dr["commenttext"]));
sb.Append("</td></tr>");
}
}
}
return sb.ToString();
}
Code for aspx page
$(document).ready(function() {
try {
$('#imgComment').click(function() {
$('#msg').slideToggle("fast", "");
try {
$.ajax({
type: "Post",
url: "WIPCommentsNotification.aspx/getWIPComments",
data: "{}",
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function(data) {
try {
// alert(data);
// alert("Begin");
// var result1 = eval(data);
// alert(result1);
// var myObject = eval(result1);
// Bind(myObject);
// alert("End");
alert("Begin");
var myObject = eval('(' + data + ')');
Bind(myObject);
alert("End");
//Bind(myObject);
}
catch (e) {
alert("Error!!");
}
},
error: function(event, request, settings) {
alert(msg);
}
});
}
catch (e) {
alert("Error");
}
})
dhage.prashant01
8-Jun-11 0:33am
View
Output is [object Object]
Let me tell you,
I'm getting string from webservice which I get in response.
String is of format
foreach (DataRow dr in table.Rows)
{
sb.Append("<tr><td>");
sb.Append((dr["jobno"]));
sb.Append("</td><td>");
sb.Append((dr["commenttext"]));
sb.Append("</td></tr>");
}
Everything Working Fine, the result is not getting displayed.
What I get output is [object Object]
Is response not getting formated by eval()??
dhage.prashant01
7-Jun-11 9:08am
View
Its giving error, its not even alert Step 1
dhage.prashant01
6-Jun-11 7:06am
View
I'm trying to run code
I'm getting error: [object HTMLDivElement]
What is it?
dhage.prashant01
6-Jun-11 5:13am
View
I tried following, but gives an error. Any idea where I'm going wrong?
<script type="text/javascript">
$(document).ready(function() {
$('#imgComment').click(function() {
$('#msg').slideToggle("fast", "");
$.ajax({
type: "Post",
url: "WIPCommentsNotification.aspx/getWIPComments",
data: "{}",
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function(data) {
if (data != 'null') {
//response = eval('(' + data + ')');
//$(outputDT(data.mydt)).appendTo($('#modalbody'));
$('#body').append(outputDT(data.mydt));
}
},
error: function(event, request, settings) {
alert(msg);
}
});
})
$('#closebutton').click(function() {
$('#msg').fadeOut('slow');
})
});
function outputDT(dataTable) {
var headers = [];
var rows = [];
headers.push("<tr>");
for (var name in dataTable[0]) {
headers.push("<td>
"+name+"
</td>");
}
headers.push("</tr>");
for (var row in dataTable) {
rows.push("<tr>");
for (var value in dataTable[row]) {
rows.push("<td>");
rows.push(dataTable[row][value]);
rows.push("</td>");
}
rows.push("</tr>");
}
var top = "<table border='1'>";
var bottom = "</table>";
return top + headers.join("") + rows.join("") + bottom;
}
</script>
Show More