I use navigator.device.exitApp(); to close my html5 app. It clears local storage. But i want to retain local storage in app exit. What can i do?
Thankx in advance

Yes i googled for it. The most seemingly good solution was remove all data from app data and reinstalling the older version. But chrome doesnt provide an stand alone installer.All installers i could find downloads the latest version and installs. I was looking for some work round to install an older version.

Actually i have an website which only run in chrome 20.XX . I m going to re engineer it. But i want to run it first and see.

I want to install an older version on chrome in windows 8. But when i install an older version it automatically update it to the new version at first launch. How to stop this and install an older version of chrome.
Thankx in advance.

I have this ajax request.

                type: 'Post',
                dataType: 'json',
                contentType: "application/json; charset=utf-8",
                url: 'https://********/***/*******.asmx/Login',
                data: "{ userID: '" + userName + "', pwd: '" + password + "' }",
                success: successCallBack,
                error: failureCallBack

Problems is this works fine in older chrome browser. Eg. 20.XX.XX
But it does not work on new chrome browser. Eg. 31.0.1650.57 m

When i remove dataType: 'json',
contentType: "application/json; charset=utf-8", lines in chrome 31.XX browser gives me response as a plain text.
Please help me to figure out how to resolve this issue.

i.e. The web service works fine

It turned out that the solution stated here not work at all. Then i tried this solution. http://blog.carbonfive.com/2011/05/04/automated-ad-hoc-builds-using-xcode-4/

What we have to do is include this program as a build step in to teamcity. Of cource after replacing the variables as per our requirement. In previous attempt I was trying to create an ant script. It didnt work. This one works.

Move calling web services part to config file

I m working with teamcity. I want to build an ipa using the code in the repo. i used the code in http://yiannisoftware.wordpress.com/2009/09/27/how-to-build-ipa/

But it only gives the ipa file without the content.
Please give suggestions. Either to correct this code or a way to create ant script to build the ipa.

Thank you in advance.

I am using

StingBuilder.append("Address : {0}, {1}, {2}  {3} \n",

Problem is if Street1 or street2 is null String builder returns

, ,code,city. 

I want to remove those commas(,) as well. how can i do that?

Thank you in advance.

I have two web services added to the project. One is real web service. Other one is test webservice. i have used them to set some parameters.

eg: WS.OrderDescription 

I want to change this WS and WS-test interchagebly. For that i want to add this two into config and access what ever i want (WS or WS-test) by chaging the value in config. How to add this webservice references to config and access in code.

If I ask it another way..Can I inlcude 2 edmx files in the same project. I tried that but there are conflicts. Neither i can change the database structures nor other solution rather than accessing two databases in the same project. so what is the way?

Can I get data from two databases (in same database server) to a c# project. How to include two edmx files? Or is there another way?

Thank you in advance

I m using mvc4. I have urls like http://<mydomain>/<contoller0>/<action1> , http://<mydomain>/<contoller0>/<action2>,...
I want to show to the user only as http://<mydomain>/<contoller0>/{somepage} for all the actions in that particular controller.
How to impliment this in RouteConfig? I dont want to mess any requests to other controllers. Just want to do it for a specific controller and its actions.
How can I do it.

Currently my RoutConfig.cs look lik this.(It s the default)


                name: "DefaultApi",
                routeTemplate: "api/{controller}/{id}",
                defaults: new { id = RouteParameter.Optional }

                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }

Thankx for the reply. How can i implement somrthing similar to wait in tql inoder to delay and action in terms of days.?

CAn i use 'waitfor' in t sql in sql server 2012 to wait in terms of days?
eg. Wait three says after an event to do something else?

Thankx in advance

I am using sqlserver 2012. i want to convert nvarchar value from a table in to an integer. How can i do it? i am using it in a stored procedure. and nvarchar value only contains numbers.
What i want to do is to multiple that nvarchar value and assign it to int variable.. When i tried it Following error comes

Select @temp = @nvarcharvalue * 2

I also tried.

 Select @temp = CAST(@nvarcharvalue as int)* 2

Following error is shown.

The conversion of the nvarchar value '20130429044221' overflowed an int column.

How can it be done?
Thanks in advance

I am tryn to create an email flow where sending some emails would be done base on a time line

I have windows 7 and SQL Server 2012 installed locally. I just want to simulate. simply as open two windows and run query which they would behave as two concurrent users.

Thank you for the reply. I need the help on How to get two sessions in the database. I am working in my PC. I have insatalled SQLServer 2012 and management studio. I need to access a database as two different users to do this. How can i do it with my PC? or can i do it afterall?

I learnt that i need "two terminal sessions" and execute sql statements. How can I get that?

I have an assignment where i should demonstrate concurrency controls.In order to do that i should work with two sessions in the same database in ms sql server. How can i do that.

What is the procedure can be used in MS-SQL server 2012 in order to create a workflow as in dynamics CRM?
Is there a way. Or what is the alternative?

Thnakx in advance.

It is just between different currencies and one "base" currency. As you metioned it is like
EUR <> USD, GBP <> USD, YEN <> USD .
Can that be implemented in hash table?

But it is a requirement. Is there a way to do this. Please help.

I am tryn a currency converter using hash table. What is the technique to use to enble covert both ways. Ex: Dollers to Euro and Euro to Dollers .

I can understand how to do it one way using currency as the hashKey and rate as Hashvalue. (I hope that is the correct way?).

How to do this. Please help. Thankx in advance.

Thankx inserted table helped.

I have a trigger on insert

    CREATE TRIGGER [dbo].[InsertNewCustomersAsGroupMembers]
    ON  [CustomerBase].[dbo].[Cutomers]


        -- Insert statements for trigger here
        DECLARE @inserterdCustomerID uniqueidentifier
        UPDATE [CustomerBase].[dbo].[GroupMembers]


I want to get the values of the inserted record at [CustomerBase].[dbo].[customers] into the trigger inorder to update [CustomerBase].[dbo].[GroupMembers] table. How can i get them?

thank you in advance

I use Mvc 4 with razor. I have a View that in back end creates a database entry in Action method. Problem is when i refresh the page (Press F5) the back end method calls again and create duplicate of the database entry. How to stop this?

 public ActionResult SummaryPage()
    bool createdatabaseEntry = NotifyCreateDatabaseEntry();

   if (createdatabaseEntry)
        // pop up success massage
        // pop up error massage

     return View();

 public bool createdatabaseEntry : this method connect to the db

Please help
thank you in advance

quote is a mistake happened when copying code. Sorry for that

this is my partialview

<div class="body_txt width_640" style="margin-top: 20px; display: inline-block; float: left;">
        <table style=" width:640px; border:0;"  cellspacing="0" cellpadding="0" class="table_shop01 body_txt">

                    <th style=" width:60%; text-align: left;">Selected Items</th>
                    <th style=" width:40%; text-align: left; border-right:2px solid #759C12;">Unit Price</th>

                @foreach (var item in Model.ListOfProducts)
                    string k = @item.PriceListItemID.ToString();
                        <td style="text-align: left; border-left:1px solid #759C12;">@item.ProductName</td>

                        <td style="text-align: left;">@item.Price.ToString() @item.CurrencySymbol</td>

                        <td style="text-align:left;">@item.TotalPrice @item.CurrencySymbol</td>*@
                        <td style="text-align: left; border-bottom:0;border-right:0;border-top:0; width:auto;">
                        <button type="button" class="btn_delete_2" id="@k" name="RemoveID" value="@item.PriceListItemID" style="display:none;"></button>


                    <th id="total" colspan="1" style="text-align:left; border-right:2px;">Grand Total </th>


here s how i am calling the partial view ..

 <div id="PartialView"></div>

   $(document).ready(function() {
        $('#PartialView').load('/contoller/_PartialView') ;


Thank you.
Appreciate your kindly help.

p.s - this works fine in firefox and chrome only IE give the problem.

<div id="div">"partial view"</div>

does not work (does not load the partial view) in IE9
It works perfrectly on firefox and chrome

What is the solution?
thanks in advance

Thanks for the reply. In management studio if i try as a new query this works fine even with the "order by desc" applied. But when i put

declare IDList cursor for (SELECT ID FROM [dbo].[News] WHERE PublishFromDate BETWEEN cast(@fromDate  as datetime) AND cast(@toDate as datetime) order by PublishFromDate desc)

into the cursor it exectutes successfully but no results are given.