In my .aspx page which derives from a master page I have a contact form which uses some validation, such as the RequiredFieldValidator and RegularExpressValidator.
At top of my page I have a link bar and whenver I am at contact.aspx I can't navigate to the other pages as if that I need to fill in the necessary data so that it satisfies the validator. How can I fix this?
Hi I have some controls on an asp.net modal which I show manually via code behind. Now I am trying to attach a selector on one of the controls inside pageLoad(), problem being is that the modal container is initially set to visible=false.
I tried checking for length but it still throws exception
if ($('#<%= myControl.ClientId %>').length > 0)
{
$('#<%= myControl.ClientID %>').click(function() {
// Do work
});
}
Compiler Error Message: CS0103: The name 'myControl' does not exist in the current context
We have link to some page (with html code), that page have one img, which attributes title and alt are equal.
Script must open link, grab the src attribute of img which title=alt, and throw the value into some variable.
How to do it?
Thanks.
I have many nodes and some of them are under the screen's edge. Tho treeview is scrollable, there is no vertical scrollbar on the right. How can i show it?
Hi
I have two user controls on one aspx page. UC1 has a grid which contains a link button column which user clicks. Based on the value of clicked cell, I need to show some data into UC2.
How do I pass data from UC1 to UC2?
How do I invoke a function of UC2 from UC1?
Please advise. Thanks
AJ
I'm looking for the way to get the direct link from mediafire. By default, when a user visits a download link, he will be presented with a download page where he has to wait for the download to be processed and then a link will appear.
I googled and found a VB.NET 2008 solution to this using WebBrowser WB
http://www.vbforums.com/showthread.php?t=556681
It works pretty well but I'm tired of pop-up windows and the loading speed. So, I wonder if there is a solution to this problem? (a non WB solution ^^)
Any help is greatly appreciated.
Anyone know of any controls that you can add to your application to allow the user to check out the content of an object? I'm thinking of something like QuickWatch in Visual Studio, just list all properties of an object and its values and allow the user to drill down. I started writing one using reflection but it turned out be a lot of work to handle different kind of collections. This functionality would be used for debugging purposes mostly and not by regular users.
I prefer WPF but Winforms would work as well.
Hi,
I have a ListBox which is bound to a list of objects. When the system initializes, the binding is done just fine, When i update the value in one of the fields on the ListBox, the item in the background updates as well, but when i update the value in the background it is not reflected in the ListBox.
Does anyone know why this is?
I have got the following code on master page:
<u1>
...............
............
.............
</u1>
<ul>
<li id="link1" runat="server"><a href="mytestfile.aspx">Test Files</a></li>
<li id="link2" runat="server"><a href="mylistitemtest.aspx">List Item Test</a></li>
<li id="link3" runat="server"><a href="Mytest2.aspx">Some Test</a></li>
</ul>
I am trying to access the link1 on the content page as:
var pageHandler = HttpContext.Current.CurrentHandler;
if (pageHandler is System.Web.UI.Page)
{
((System.Web.UI.Page)pageHandler).Master.FindControl("nav_link1").Visible = false;
}
but i am getting the error as:
"Object reference not set to instance of an object"
hi,
i have an requirment where i have a datagrid on mouse over of that row i need to display.
lets day that datagrid has column name, age, company name. now all these things should be shown in a modal pop up.
on mouse over of a row.
does any one know how to solve the issue. looking for an solution plz let me know
thanks in advance
prince
I have a DataFlow task with two OLE DB Source objects. This is the SQL I want to achieve using SSIS:
Insert into server2.db.dbo.[table2] (...)
Select col1, col2, col3 ...
from Server1.db.dbo.[table1] where [table1.col1] not in
(Select col5 from server2.db.dbo.[table2] Where ...)
I am pretty new to SSIS and not sure how to achieve this. I thought I could do this using the Data Flow task and populating the first source with the data from server1.db.dbo.table1 and the second source with server2.db.dbo.[table2] and then do the conditional check before inserting it into server2.db.dbo.[table2]. I am not sure how to do the conditional check though. Any help is appreciated.
I need a way to have a label (or something like it) print sideways. I would really like it to work at design time if at all possible.
Is there any controls / mechanisms that anyone knows of to do this? (Not .net controls please)
I am using a DataGrid and trying to do the following Databinding
<DataTemplate>
<Grid>
<Image>
<Image.Source>
<BitmapImage UriSource="{Binding Data.CustomImage}" CacheOption="OnLoad" />
</Image.Source>
</Image>
</Grid>
</DataTemplate>
CustomImage is of type BitmapImage. When I run I get the error:
Initialization of 'System.Windows.Media.Imaging.BitmapImage' threw an exception.
The thing is that these images are stored as resources in a different assembly so I can't just point to a location on disk
I need a way to have a label (or something like it) print sideways.
Sadly I am using Delphi 5. Is there any controls / mechanisms that anyone knows of to do this?
I'd like to be able to maintain the width of controls globally throughout my WPF application.
Previously in winforms world I'd override onload in a base form and iterate through all controls and containers and determine the type of controls and set the dimensions accordingly.
I guess I could do the same in WPF but is there any better way to do this?
Hi All. I tried with the following but it doesn't work
var txtlat=document.getElementById('TextBox1').value=GMap1.getCenter().lat();
var txtlong=document.getElementById('TextBox2').value=GMap1.getCenter().lng();
It gives a JavaScript error as "Object doesn't support this property or method".
How can i do this????
I really need help...
Thank you!
Hey there,
I have written a program that works well in C that converts non-readable ASCII to their character values. I would appreciate if a C master? would show me a better way of doing it that I have currently done, mainly this section:
if (isascii(ch)) {
switch (ch) {
case 0:
printControl("NUL");
break;
case 1:
printControl("SOH");
break;
.. etc (32 in total)
case default:
putchar(ch);
break;
}
}
Is it normal to make a switch that big? Or should I be using some other method (input from an ascii table?)
I have a button that is not triggering event in jQuery mobile. It was working but I had to remove the css. It was screwing up my all my ul lists. Any help would greatly appreciated
Here is the code for the button at the bottom of the form :
<div class="next">
<a class="btnNext">Next >></a>
</div>
Which is supposed to do this on a separate js file:
init: function(){
$('.btnNext').onclick(function(){
if ($('input[type=radio]:checked:visible').length == 0) {
return false;
}
$(this).parents('.questionContainer').fadeOut(500, function(){
Here is the css I removed:
a {
border: 1px solid #000;
padding: 2px 5px;
font-weight: bold;
font-size: 10px;
background: #FFF;
cursor: pointer;
}
a:hover {
background: none;
}
Hi All. I tried with the following but it doesn't work
var txtlat=document.getElementById('TextBox1').value=GMap1.getCenter().lat();
var txtlong=document.getElementById('TextBox2').value=GMap1.getCenter().lng();
It gives a java script error as "Object Doesn't support this property or method".
How can i do this????
I really need help...
Thank you!
Hi.
I need to create a class Toolbar : Windows.Worm.UserControl (Framework 2.0) and to place it into HTML page. This page must work in IE6+.
I found some examples and created my toolbar, but IE doesn't want to display it.
Site with examples:
http://feishunji.blog.51cto.com/237830/45990
Please, help to solve this problem.
How to play the flash movie always from the beginning ?
Any way to rewind movie ?
I have use rewind() method for that but it didn't work.
Any help is welcomed....