|
hi to all
i have a serious problem in vs 2012 when i want to working with vs 2012 i face every with this error
Microsoft visual studio 2012 has encountered a problem and needs to close
vs show me this error and restart itself automatically
any one can help me
thanks in advanced
|
|
|
|
|
Don't post the same question in multiple forums.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hi,
I have a column of type decimal(18,0)?
What it can store?
|
|
|
|
|
The Decimal Data type can store exactly that, a decimal value.
Within your example the 18 means, the number of digits that can be stored and the 0 us the number of digits that can be stored to the right of the decimal point.
See http://www.w3schools.com/sql/sql_datatypes.asp[^]
Thanks,
|
|
|
|
|
In MySQL DB....
decimal(4,2) allows entering only a total of 4 digits. As you see in decimal(4,2), it means you can enter a total of 4 digits... out of which two digits are ment for keeping after the decimal point.
So, if you enter 100.0 in MySQL database, it will show an error like "Out of Range Value for column".
So, you can enter in this range only .... 00.00 to 99.99
|
|
|
|
|
I am attempting to write to a file using the following command, but I keep getting the
error: 'Argument 'SourceArray' cannot be converted to type 'String' '
For Each row As DataRow In dtErrors.Rows
writer.WriteLine(Join(row.ItemArray, ","))
Next
any idea why?
|
|
|
|
|
One of the values in the row.ItemArray isn't supported by VB's string conversion helper. If you're using .NET 4.0, try using the Join method from the String class[^] instead:
writer.WriteLine(String.Join(",", row.ItemArray));
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
getting error below after using sw.WriteLine(Join(row.ItemArray, ","))
Option Strict On disallows implicit conversions from '1-dimensional array of Object' to '1-dimensional array of String'
|
|
|
|
|
Did you try using the String.Join method?
writer.WriteLine(String.Join(",", row.ItemArray))
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
yes.here is my code
sw.WriteLine(String.Join(",", CType(row.ItemArray, String())))
ERROR:
"Unable to cast object of type 'System.Object[]' to type 'System.String[]'."
try this:
sw.WriteLine(Join(row.ItemArray, "|"))
ERROR:
"Argument 'SourceArray' cannot be converted to type 'String'."
row.ItemArray.Lenght=80
|
|
|
|
|
byka wrote: yes.here is my code
sw.WriteLine(String.Join(",", CType(row.ItemArray, String())))
Why have you added a CType call? In .NET 4.0, there is an overload of String.Join which takes an Object() array.
sw.WriteLine(String.Join(",", row.ItemArray))
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
because when I am not using CType I am getting this;
Option Strict On disallows implicit conversions from '1-dimensional array of Object' to '1-dimensional array of String'
|
|
|
|
|
So you're not using .NET 4.0?
Try this instead:
For Each row As DataRow In dtErrors.Rows
For i As Integer = 0 To row.ItemArray.Length - 1
If i <> 0 Then writer.Write(","c)
writer.Write(row.ItemArray(i))
Next
writer.WriteLine()
Next
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
|
The "Option Strict On disallows implicit conversions from '1-dimensional array of Object' to '1-dimensional array of String'" error suggests that you're not.
Try a different overload[^]:
sw.WriteLine(String.Join(",", row.ItemArray.AsEnumerable()))
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
error: 'AsEnumerable' is not a member of 'System.Array'
|
|
|
|
|
Add Imports System.Linq at the top of your code file, and make sure you project references the System.Core assembly.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I am using RadAsyncUpload which is defined like this
<telerik:RadAsyncUpload ID="FileUpload1" runat="server" Skin="Forest" Width="272px">
</telerik:RadAsyncUpload>
and i have a asp.net button defined like this
<asp:Button ID="btnUpload" Width="180px" Height="30px" runat="server" Text="Upload"
onclick="btnUpload_Click" />
Now it works and it uploads the file , but now i want to have a Progress Bar , so like other controls i did the following
<telerik:AjaxSetting AjaxControlID="btnUpload">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="btnUpload" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
<telerik:AjaxUpdatedControl ControlID="FileUpload1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
<telerik:AjaxUpdatedControl ControlID="lblMessage" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
</telerik:RadAjaxLoadingPanel>
if i add this Ajax code , my Upload does not work , it give me the Following Error
Uncaught TypeError: Cannot read property 'id' of undefined
and chrome gives more info like
Uncaught TypeError: Cannot read property 'id' of undefined Telerik.Web.UI.WebResource.axd:2889
Telerik.Web.UI.RadAjaxControl._initializeRequest Telerik.Web.UI.WebResource.axd:2889
H.z.callBaseMethod Telerik.Web.UI.WebResource.axd:3
Telerik.Web.UI.RadAjaxManager._initializeRequest Telerik.Web.UI.WebResource.axd:3463
(anonymous function) Telerik.Web.UI.WebResource.axd:3
(anonymous function) Telerik.Web.UI.WebResource.axd:3
H.w.raiseEvent Telerik.Web.UI.WebResource.axd:3
e._onFormSubmit Telerik.Web.UI.WebResource.axd:9
e._doPostBack Telerik.Web.UI.WebResource.axd:9
(anonymous function) Telerik.Web.UI.WebResource.axd:3
onclick
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa[at]dotnetfunda.com
http://www.Dotnetfunda.com
|
|
|
|
|
Hi
i am making a portal just like an ecommerce site having search panel at the left of the page i.e. in Master page and on the basis of selection of check boxes i want to populate result set on the content page i.e. to the right.
Now the problem is that i want to achieve it using json. Can anybody help me how to populate the child page using Json taking filter parameters from master page.
I am able to call a web service on checkbox click on the master page and have the result but how to display it in child page.
Thanks in Advance
Rohit
|
|
|
|
|
You can always access the controls of Child Page from Master Page .
So, just access that and put your data to those Child Controls .
If you want to do it from Code Behind, then this is very easy - Refer - How to access asp.net content page controls from master page [^].
If you want to do it in javaScript/jQuery , then just check what is the rendered html of those child controls in browser so that you can find their ids or else you can use ControlID.ClientID to select that control and then assign value to it.
Let me know it will help you or not.
|
|
|
|
|
am using jquery pop up window in my project...
in this am displaying grid am do paging for this if i click the paging feature that pop will hiding... againe i have to click the pop up.. hiw can i stay back that pop up please give me sugition for this...
/* popup_box DIV-Styles*/
#popup_box
{
display: none; /* Hide the DIV */
position: fixed;
_position: absolute; /* hack for internet explorer 6 */
height: 430px;
width: 470px;
background: #FFFFFF;
left: 350px;
top: 190px;
z-index: 100; /* Layering ( on-top of others), if you have lots of layers: I just maximized, you can change it yourself */
margin-left: 15px; /* additional features, can be omitted */
border: 2px solid #6DA351;
padding: 15px;
font-size: 15px;
-moz-box-shadow: 0 0 5px #3669A9;
-webkit-box-shadow: 0 0 5px #3669A9;
box-shadow: 0 0 5px #6DA351;
}
#popup_box1
{
display: none; /* Hide the DIV */
position: fixed;
_position: absolute; /* hack for internet explorer 6 */
height: 430px;
width: 470px;
background: #FFFFFF;
left: 350px;
top: 190px;
z-index: 100; /* Layering ( on-top of others), if you have lots of layers: I just maximized, you can change it yourself */
margin-left: 15px; /* additional features, can be omitted */
border: 2px solid #3669A9;
padding: 15px;
font-size: 15px;
-moz-box-shadow: 0 0 5px #6DA351;
-webkit-box-shadow: 0 0 5px #6DA351;
box-shadow: 0 0 5px #6DA351;
}
#container
{
background: #d2d2d2; /*Sample*/
width: 100%;
height: 100%;
}
a
{
cursor: pointer;
text-decoration: none;
}
/* This is for the positioning of the Close Link */
#popupBoxClose
{
font-size: 17px;
line-height: 15px;
right: 5px;
top: 5px;
position: absolute;
color: #6fa5e2;
font-weight: 500;
}
#popupBoxClose1
{
font-size: 17px;
line-height: 15px;
right: 5px;
top: 5px;
position: absolute;
color: #6fa5e2;
font-weight: 500;
}
.popup_box .x
{
font-size: 17px;
line-height: 15px;
right: 5px;
top: 5px;
position: absolute;
color: #6fa5e2;
font-weight: 500;
}
.popup_box .x:hover
{
cursor: pointer;
}
<script type="text/javascript">
$(document).ready(function () {
$('#Moredetails').click(function () {
//alert("haiiii");
// When site loaded, load the Popupbox First
loadPopupBox();
$('#popupBoxClose1').click(function () {
unloadPopupBox();
});
$('#container').click(function () {
unloadPopupBox();
});
function unloadPopupBox() { // TO Unload the Popupbox
$('#popup_box1').fadeOut("slow");
$("#container").css({ // this is just for style
"opacity": "1"
});
}
function loadPopupBox() { // To Load the Popupbox
$('#popup_box1').fadeIn("slow");
$("#container").css({ // this is just for style
"opacity": "0.3"
});
}
});
});
</script>
code like this
|
|
|
|
|
Popup is hiding because the page is refreshing when you page the grid, you can use a Update Panel so that the grid do a Async PostBack without refreshing the entire page.
|
|
|
|
|
Hi all guru,
I got stuck with this problem for quite a long time. I searched through Internet and official web site of Ajax toolkit but getting no luck. Does anyone has luck getting it to work?
Error is: ModalPopupExtender.OnShowing that does not exist or cannot be set.
<ajax:ModalPopupExtender ID="mpePopup" runat="server"
TargetControlID="btnPopupTargetControl"
PopupControlID="pnlPopup"
OkControlID="btnPopupOKControl"
PopupDragHandleControlID="divPopup"
BackgroundCssClass="modalBackground"
DropShadow="true"
RepositionMode="RepositionOnWindowResizeAndScroll"
>
<Animations>
<OnShowing>
<FadeIn Duration=".5" Fps="30" />
</OnShowing>
<OnShown>
<FadeIn Duration=".5" Fps="30" />
</OnShown>
<OnHiding>
<FadeOut Duration=".5" Fps="30" />
</OnHiding>
<OnHidden>
<FadeOut Duration=".5" Fps="30" />
</OnHidden>
</Animations>
</ajax:ModalPopupExtender>
I'd appreciate any help.
Thank you.
|
|
|
|
|
Hello Experrts,
I need to get the logged in domain\username from my website.
The function I use is :
System.Security.Principal.WindowsIdentity.GetCurrent().Name;
But it returns :
NT AUTHORITY\IUSR
My web config settings are:
<identity impersonate="true"/>
<authentication mode="Windows" />
<authorization>
<allow users ="*" />
</authorization>
I googled for answers and it is suggested that if the content in webconfig file should be as shown above but it is not helping me.
Am I missing some setting here.
Please help me.
Thanks,
Raesa
|
|
|
|
|
Try HttpContext.Current.User.Identity.Name instead.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|