SQL Network Interfaces, error: 26 - Error Locating Server/Instance
Specified for MDF file
i have added database file(.mdf) in my application using visual studio
inbuilt functionality. database is in App_Data folder. it is running fine.
but when i publish it and upload it to server it gives this error.
A network-related or instance-specific error occurred while establishing a
connection to SQL Server. The server was not found or was not accessible.
Verify that the instance name is correct and that SQL Server is configured
to allow remote connections. (provider: SQL Network Interfaces, error: 26
- Error Locating Server/Instance Specified)
i visited similar situation but confused. i don't know which version and
edition of sql server is running at server. i upload project using
filezila .My connection string is as follow in we web.config
<add name="ConnectionString" connectionString="Data
Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated
Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
please describe process step by step is possible.
Thanks in advance.
Monday, 2 September 2013
How to detect responsive breakpoints of Twitter Bootstrap 3 using JavaScript?
How to detect responsive breakpoints of Twitter Bootstrap 3 using JavaScript?
Currently, Twitter Bootstrap 3 have the following responsive breakpoints:
768px, 992px and 1200px, representing small, medium and large devices
respectively.
How can I detect these breakpoints using JavaScript?
I would like to listen with JavaScript for all related events triggered
when the screen change. And to be able to detect if the screen is for
small, medium or large devices.
Is there something already done? What are your suggestions?
Currently, Twitter Bootstrap 3 have the following responsive breakpoints:
768px, 992px and 1200px, representing small, medium and large devices
respectively.
How can I detect these breakpoints using JavaScript?
I would like to listen with JavaScript for all related events triggered
when the screen change. And to be able to detect if the screen is for
small, medium or large devices.
Is there something already done? What are your suggestions?
How can I convert my tables to divs
How can I convert my tables to divs
Well, I hope that it is possible to convert the and related tags to . I am
using SimpleHTMLDomParser and it is not possible to go for another parser
in this stage. Here's what I have tried:
$html=preg_replace('/<table[^>]*>/ism', '',$html);
$html=preg_replace('/<\/table>/ism', '<br/>',$html);
$html=preg_replace('/<(tr|td|th)[^>]*>/ism', '',$html);
$html=preg_replace('/<\/(tr|td|th)[^>]*>/ism', '<br/>',$html);
To strip out the tables, but now I need to convert all the
"<table>","<tr>","<td>","<th>" to (nested) "<div>" tags (the table changes
to a div, its internal tags to nested divs).
How to do that? Thanks in advance.
Well, I hope that it is possible to convert the and related tags to . I am
using SimpleHTMLDomParser and it is not possible to go for another parser
in this stage. Here's what I have tried:
$html=preg_replace('/<table[^>]*>/ism', '',$html);
$html=preg_replace('/<\/table>/ism', '<br/>',$html);
$html=preg_replace('/<(tr|td|th)[^>]*>/ism', '',$html);
$html=preg_replace('/<\/(tr|td|th)[^>]*>/ism', '<br/>',$html);
To strip out the tables, but now I need to convert all the
"<table>","<tr>","<td>","<th>" to (nested) "<div>" tags (the table changes
to a div, its internal tags to nested divs).
How to do that? Thanks in advance.
change xpath code to get correct info php curl
change xpath code to get correct info php curl
okay so i have a script that use the following source code
<h4>
<label id="ct0_l00_PageContainer_MyContainer_sym" for="symbol">
%
</label>59</h4>
my xpath code is
$dom = new DOMDocument();
@$dom->loadHTML($html);
$xpath = new DOMXPath($dom);
$value =
$xpath->query('//label[@id="ct0_l00_PageContainer_MyContainer_sym"]/following-sibling::text()')->item(0)->nodeValue;
this query worked fine but after changing a few bits it no longer works i
have the new source code wich is below
<div id="ctl0_PageContainer_Container_divSummary">
<div class="blueheaderbar">
<h2>
Summary</h2>
</div>
<div class="usesummary">
<div class="ccbody">
<ul>
<li class="greybox">
<div class="boxOutlineW">
<span class="topLeft bg">
<!--for IE6-->
</span><span class="topRight bg">
<!--for IE6-->
</span><span class="bottomLeft bg">
<!--for IE6-->
</span><span class="bottomRight bg">
<!--for IE6-->
</span>
<div class="content">
<div class="pointbox">
<h3>
last 2 years</h3>
<div class="boxOutlineG
infoBoxwhite">
<span class="topLeft bg">
<!--for IE6-->
</span><span
class="topRight bg">
<!--for IE6-->
</span><span
class="bottomLeft bg">
<!--for IE6-->
</span><span
class="bottomRight bg">
<!--for IE6-->
</span>
<div class="content">
<h4>
98%</h4>
</div>
</div>
</div>
</div>
</div>
</li>
<li class="greybox">
<div class="boxOutlineW">
<span class="topLeft bg">
<!--for IE6-->
</span><span class="topRight bg">
<!--for IE6-->
</span><span class="bottomLeft bg">
<!--for IE6-->
</span><span class="bottomRight bg">
<!--for IE6-->
</span>
<div class="content">
<div class="pointsbox">
<h3>
You have used</h3>
<div class="boxOutlineG
infoBoxwhite">
<span class="topLeft bg">
<!--for IE6-->
</span><span
class="topRight bg">
<!--for IE6-->
</span><span
class="bottomLeft bg">
<!--for IE6-->
</span><span
class="bottomRight bg">
<!--for IE6-->
</span>
<div class="content">
<h4>
91%</h4>
</div>
</div>
</div>
</div>
</div>
</li>
<li class="greybox">
<div class="boxOutlineW">
<span class="topLeft bg">
<!--for IE6-->
</span><span class="topRight bg">
<!--for IE6-->
</span><span class="bottomLeft bg">
<!--for IE6-->
</span><span class="bottomRight bg">
<!--for IE6-->
</span>
<div class="content">
<div class="pointsbox">
<h3>
You still have </h3>
<div class="boxOutlineG
infoBoxwhite">
<span class="topLeft bg">
<!--for IE6-->
</span><span
class="topRight bg">
<!--for IE6-->
</span><span
class="bottomLeft bg">
<!--for IE6-->
</span><span
class="bottomRight bg">
<!--for IE6-->
</span>
<div class="content">
<h4>
7%</h4>
</div>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
if any one could help me i need to write a xpath for this part of the source
You still have </h3>
<div class="boxOutlineG
infoBoxwhite">
<span class="topLeft bg">
<!--for IE6-->
</span><span
class="topRight bg">
<!--for IE6-->
</span><span
class="bottomLeft bg">
<!--for IE6-->
</span><span
class="bottomRight bg">
<!--for IE6-->
</span>
<div class="content">
<h4>
7%</h4>
can anyone help me change this so it gets the correct value of 7%
okay so i have a script that use the following source code
<h4>
<label id="ct0_l00_PageContainer_MyContainer_sym" for="symbol">
%
</label>59</h4>
my xpath code is
$dom = new DOMDocument();
@$dom->loadHTML($html);
$xpath = new DOMXPath($dom);
$value =
$xpath->query('//label[@id="ct0_l00_PageContainer_MyContainer_sym"]/following-sibling::text()')->item(0)->nodeValue;
this query worked fine but after changing a few bits it no longer works i
have the new source code wich is below
<div id="ctl0_PageContainer_Container_divSummary">
<div class="blueheaderbar">
<h2>
Summary</h2>
</div>
<div class="usesummary">
<div class="ccbody">
<ul>
<li class="greybox">
<div class="boxOutlineW">
<span class="topLeft bg">
<!--for IE6-->
</span><span class="topRight bg">
<!--for IE6-->
</span><span class="bottomLeft bg">
<!--for IE6-->
</span><span class="bottomRight bg">
<!--for IE6-->
</span>
<div class="content">
<div class="pointbox">
<h3>
last 2 years</h3>
<div class="boxOutlineG
infoBoxwhite">
<span class="topLeft bg">
<!--for IE6-->
</span><span
class="topRight bg">
<!--for IE6-->
</span><span
class="bottomLeft bg">
<!--for IE6-->
</span><span
class="bottomRight bg">
<!--for IE6-->
</span>
<div class="content">
<h4>
98%</h4>
</div>
</div>
</div>
</div>
</div>
</li>
<li class="greybox">
<div class="boxOutlineW">
<span class="topLeft bg">
<!--for IE6-->
</span><span class="topRight bg">
<!--for IE6-->
</span><span class="bottomLeft bg">
<!--for IE6-->
</span><span class="bottomRight bg">
<!--for IE6-->
</span>
<div class="content">
<div class="pointsbox">
<h3>
You have used</h3>
<div class="boxOutlineG
infoBoxwhite">
<span class="topLeft bg">
<!--for IE6-->
</span><span
class="topRight bg">
<!--for IE6-->
</span><span
class="bottomLeft bg">
<!--for IE6-->
</span><span
class="bottomRight bg">
<!--for IE6-->
</span>
<div class="content">
<h4>
91%</h4>
</div>
</div>
</div>
</div>
</div>
</li>
<li class="greybox">
<div class="boxOutlineW">
<span class="topLeft bg">
<!--for IE6-->
</span><span class="topRight bg">
<!--for IE6-->
</span><span class="bottomLeft bg">
<!--for IE6-->
</span><span class="bottomRight bg">
<!--for IE6-->
</span>
<div class="content">
<div class="pointsbox">
<h3>
You still have </h3>
<div class="boxOutlineG
infoBoxwhite">
<span class="topLeft bg">
<!--for IE6-->
</span><span
class="topRight bg">
<!--for IE6-->
</span><span
class="bottomLeft bg">
<!--for IE6-->
</span><span
class="bottomRight bg">
<!--for IE6-->
</span>
<div class="content">
<h4>
7%</h4>
</div>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
if any one could help me i need to write a xpath for this part of the source
You still have </h3>
<div class="boxOutlineG
infoBoxwhite">
<span class="topLeft bg">
<!--for IE6-->
</span><span
class="topRight bg">
<!--for IE6-->
</span><span
class="bottomLeft bg">
<!--for IE6-->
</span><span
class="bottomRight bg">
<!--for IE6-->
</span>
<div class="content">
<h4>
7%</h4>
can anyone help me change this so it gets the correct value of 7%
Sunday, 1 September 2013
toolstripbutton error in vb.net
toolstripbutton error in vb.net
I have a toolstripbutton that contains this code:
Dim total, tXS, tS, tM, tL, tXL As Integer
For i = 0 To dvJOBranch.Rows.Count - 1
tXS += dvJOBranch.Rows(i).Cells("XS").Value
tS += dvJOBranch.Rows(i).Cells("S").Value
tM += dvJOBranch.Rows(i).Cells("M").Value
tL += dvJOBranch.Rows(i).Cells("L").Value
tXL += dvJOBranch.Rows(i).Cells("XL").Value
Next
total = tXS + tS + tM + tL + tXL
MsgBox(total)
Its only works once, like for example, if my datagridview cell contains
all zeros, the total is zero, and then when I input numbers in the first
row of the columns(for example I input 5), the total is zero again.
But if I put this code in a button, it works fine.
Thank you.
I have a toolstripbutton that contains this code:
Dim total, tXS, tS, tM, tL, tXL As Integer
For i = 0 To dvJOBranch.Rows.Count - 1
tXS += dvJOBranch.Rows(i).Cells("XS").Value
tS += dvJOBranch.Rows(i).Cells("S").Value
tM += dvJOBranch.Rows(i).Cells("M").Value
tL += dvJOBranch.Rows(i).Cells("L").Value
tXL += dvJOBranch.Rows(i).Cells("XL").Value
Next
total = tXS + tS + tM + tL + tXL
MsgBox(total)
Its only works once, like for example, if my datagridview cell contains
all zeros, the total is zero, and then when I input numbers in the first
row of the columns(for example I input 5), the total is zero again.
But if I put this code in a button, it works fine.
Thank you.
TheBat archive file (tbk) format
TheBat archive file (tbk) format
I'd like to write a function to read archived emails from TheBat mail
client archive file (.tbk). However, I can't find any specification of the
format.
If anyone has this format description or digged it themselves, I'd be
grateful.
I'd like to write a function to read archived emails from TheBat mail
client archive file (.tbk). However, I can't find any specification of the
format.
If anyone has this format description or digged it themselves, I'd be
grateful.
Retain PHP form information across pages
Retain PHP form information across pages
I am trying to solve this problem:
Basically, a user fills in a HTML form then submits it. They are then
redirected to another page where they fill in another form. Both forms are
finally captured by PHP using $_POST. How is it possible to retain the
information from the first form across the second form so both are
submitted?
I am trying to solve this problem:
Basically, a user fills in a HTML form then submits it. They are then
redirected to another page where they fill in another form. Both forms are
finally captured by PHP using $_POST. How is it possible to retain the
information from the first form across the second form so both are
submitted?
Subscribe to:
Posts (Atom)