How to generate page numbers like the below using javascript/jquery?
If the 5 th page is selected i have to show 3,4 and 6,7 and also 1,last page with prev,next...
Any suggestion....
Hey guys, trying to optimize this query to solve a duplicate user issue:
SELECT userid, 'ismaster' AS name, 'false' AS propvalue FROM user
WHERE userid NOT IN (SELECT userid FROM userprop WHERE name = 'ismaster');
The problem is that the select after the NOT IN is 120.000 records and it's taking forever.
Any suggestion?
I am using asp.net pagemethods with jquery.... How to get the value of a session variable inside static method in c#...
protected void Page_Load(object sender, EventArgs e)
{
Session["UserName"] = "Pandiya";
}
[WebMethod]
public static string GetName()
{
string s = Session["UserName"].ToString();
return s;
}
when i compile this i get the error An object reference is required for the non-static field, method, or property 'System.Web.UI.Page.Session.get'
Any suggestion or any alternative...
Hi all, I've tried to create simple facebook app with iFrame,, but I always get nested iFrame on every I click link on my application, I already tried a solution from site http://railsrant.com/2009/10/14/creating-a-facebook-iframe-app-using-ruby-on-rails-facebooker/
it's work on Firefox and Chrome, but doesn't work at IE
Any idea or suggestion for this?
Thanks
Consider these jquery statements...
$(document).ready(function() {
getRecordspage(0, itemsPerPage);
$(".pager").pagination(maxNumberOfElementsHere, {
//my def
});
});
I get the value for maxNumberOfElementsHere from getRecordspage function... How to pass that value from getRecordspage function to the next one $(".pager").pagination(maxNumberOfElementsHere.... Any suggestion...
Hi,
I have a WCF service and without changing any code on the client side, is there a way that I can know the detail information of the caller, such as the MachineName, and ApplicationName?
Basically, I cannot change the client code to pass those pieces of information over.
I tried to use System.Web.HttpContext on the server side to track this information, but HttpContext.Current is NULL. I guess that is not the proper usage of it.
Any suggestion?
Thanks
Sarah
In the iPhone OS4 SDK, does anyone have a suggestion for how I would implement a repeating local notification that ends on a particular date?
Looking at the API documentation, there doesn't appear to be a built-in property of UILocalNotification to allow you to set an end date on a repeat.
Any suggestions would be much appreciated.
Thank you!
Belong to this article Jquery Partial View
What should i do when i want to submit the value fill from user
and sent it to the ActionResult controller that return the partial view
-- View Code that call the controller (from article)
<script language="JavaScript" type="text/javascript">
$('#centerbody').load('/Custom/CustomAction', function(html) {
$('#centerbody')[0].value = html;
});
</script>
-- Controller Action with no parameter (from article)
public ActionResult CustomAction()
{
return View("_CustomParialView");
}
Thanks for your suggestion
hi all,
all i need to do is,
when i launch my app,contacts of my iphone should come up.
exaclty same as we see on contact.
any suggestion,how can achieve it.
regards
shishir
Hi everyone,
I will be Master student and I look for a topic in software engineering for my thesis , I want a topic which is less programming and more analysis. I mean a topic without programming because I'm not professional in programming. I'm thinking in UML tools but I really don't have specific topic.
any suggestion
please any one help me
thanks in advance
After running a bash fork bomb which made my webserver down, I think I should be more careful even not under root.I thought it would be totally fine while I'm not under root.So I ignored the warning and ran the bash fork bomb which is :() { :|:& }; :
.(Please don't run it if u don't understand this code cuz it will make you system down).And I think I need a list of common ways those could cause a sever shutting down unexpectly even not under root.
Any suggestion would be appreciated.
Regards
`
Hi,
We are trying to support Java enviroment on our embedded platform (700MHZ MIPS74K, 128-256M memory).After reading this article and googling a bit, I come up with the shorted list:
Sun Java SE for embedded
Kaffe
Jbed
Perc
HP Chai VM
PhoneME
I was quite new to Java and its Runtime enviroment. Your suggestion is greatly appreciated.
I've decided to take the suggestion from Robert Harvey on this site and build an application using ASP.Net MVC.
When I went to Bing for a brief overview, I saw there was an MVC2.
What is the difference and should I care?
Hello.
I have an application that sometimes causes exceptions. And I need to restart it if it crashed. But the problem is, that I have Windows 7 here and when application crashes, Windows shows me nice dialog box with a suggestion to close the application. But the application itself is still running until I click "Close". How to get rid of this Window and make application terminate immediately without any dialog boxes?
I have a RESX resource file that I can retrieve the values out of using the strongly typed properties and assign to values in my Silverlight 3 app. However at runtime I need to generate the lookup key based on some values to avoid a ton of if/switch statements. I'm trying to use the ResourceManager, but it doesn't like .resx files.
Searched far and wide... is this just not possible in SL3? Does anyone have another suggestion?
Are there any good alternatives for Visio/PowerPoint for drawing architectural diagrams. Both Visio and PowerPoint are annoying to use even for some of the simplest tasks. wondering if someone out there has a better suggestion.
Hi,
I'm new in Image Proccessing.
I have an image and I want to parsing Text blocks and picture blocks.
How can I do?
I don't use OCR components. I need algorithm or sample or suggestion.
i have $date variable 2009-04-29 which is Y-m-d
anybody can give idea how to extract into $d, $m, $y using simplest method as possible?
regex is preferable.
any more suggestion with simple method will be chosen. :)
I am using json data and iterating it through jquery and displaying my results...
Using var jsonObj = JSON.parse(HfJsonValue); works in firefox but not in IE6....
HfjsonValue is a json string which is returned from my aspx code behind page... SO i dont use ajax... Any suggestion to get my json parsed better and cross browser one...
Hello All,
I am creating a string containing HTML tags and some data and storing it in 2 diff formats
( eng and Jp) and finally saving complete stirng using streamwriter in a file as HTML.
Output written in English is perfect but JP output is not coming as expected ?
Issue: I need to display proper JP char in the output, as of now thay are not appearing as expected..any suggestion ?
Thanks in advance...
Not sure but could this b b/c of encoding supported by string/stringbuilder ?
I have texts that most of the time fit in a div, but sometimes it doesn't fit. There is no way to determine how many characters/words/paragraphs fit in the div, so I can't cut it off that way.
The div had a fixed height and width, so can we do something with that? Or do you have any suggestion how to get everything in the div, the correct way?
Hey guys. I am just a beginner in eclipse rcp I'm feeling it hard to understand the concepts. Infact I struggling to create a button, somebody pls give a good suggestion as to how to start with rcp.
I would like to know what are the certificates available for programming, like
Zend for PHP
SUN Certification for java
what are the others?
Javascript ?
C++ ?
Python ?
etc...
Please give me some suggestion for other available certifications.
Hello,
I'm working in a course's project to predict the velocity and position of the solar system planets (and other objects). It will be really cool if I can visualize the predicted objects data, if it's possible generating 3D images, if in video that's amazing.
Do you know any library that lets me to use this data to generate an image or video? (I don't care in which language)
Data:
- simulation step (time line step for a video)
- positions of the objects
- radius and/or colours of the objects
Thanks in advance, any suggestion is welcome.