In ASP 1.1, I have a dropdownlist with, say, 30 list items defined.
When the dropdown is invoked, only the first 11 list items are displayed, the other 19 items you need to scroll down to select. Is there a way to configure the dropdown so that all 30 list items appear once you press the...
I'm developing a few reports with the Crystal Reports version shipped with Visual Studio 2003. For some reason, when I do a print preview on my report output, it continually shows Page 1 of 2, with Page 2 completely blank, indicating that Page 1 is extending down beyond the page limit. This is...
I'm new to sql server and I simply need to get data out of a sql server table into XML format using FOR XML AUTO, ELEMENTS.
When I use the query analyzer or enterprise manager, the XML appears as a stream, for example:
<Customers><CID>100</CID><CO>Name</CO></Customers><Customers><CID>...
Hi,
Does anyone know if there's a utility or something in VS that will take an existing html file without any CSS and class ID references at all, and generator all the CSS needed?
I have a page that's been in development and I've added style properties to each control individual to see how it...
I have an html button control that I want to hide based on a certain value.
When my page first loads, the display is set to none. Then I do:
if (str == "NO") {
document.getElementById('gob').style.display = "none"; }
else {
document.getElementById('gob').style.display = "block"; }
The...
I have a rangevalidator on a textbox control that is firing correctly for me. I get my error text to display.
What I'd like to do is click on a 'clear field' button that will clear out all textbox entries on the page, and also the error text from the rangevalidator.
How do I clear the...
I have a datagrid with a column that holds my button columns: update, edit and cancel. I'm able to get them to work, no problem.
My problem is, for some reason, when I click any of the 3 linkbuttons, the page momentarily shows a blank rectangle (only for a split second, seems to be a <div> or...
Is it possible to call a javascript function in an html control (thru onclick, for example) and passing as a parameter to the javascript a server control dropdownlist value?
My html control:
<INPUT id="btnDone" onclick="hidedivddl();" type="button" value="Done">
The value I want to pass is a...
Is it possible to call a javascript function in an html control (thru onclick, for example) and passing as a parameter to the javascript a server control dropdownlist value?
My html control:
<INPUT id="btnDone" onclick="hidedivddl();" type="button" value="Done">
The value I want to pass is a...
I have the following script that is called in a checkbox control in a datagrid (did a attributes.add in the onitemdatabound event to 'assign' it to the checkbox).
Here's the javascript:
function colorRow(e)
{
if (!e) e = window.event;
var srcEl = e.target || e.srcElement;
var curElement =...
I have a datagrid w/several controls, one of which is a dropdownlist. I can databind the list, select one and save, no problem.
My problem is: When the page loads for the first time, I'd like my dropdownlists to default to the value saved for that particular column for each record shown in...
I have a datagrid w/several controls, one of which is a dropdownlist. I can databind the list, select one and save, no problem.
My problem is: When the page loads for the first time, I'd like my dropdownlists to default to the value saved for that particular column for each record shown in...
If a row of data in a dataset has a lot of columns the row displaying the
data in a datagrid will run way off the screen. What I'd like to do is
display a row of data over two datagrid rows so the user doesn't have to
scroll horizontally. Essentially, I want to wrap a datagrid row (not text in...
If a row of data in a dataset has a lot of columns the row displaying the
data in a datagrid will run way off the screen. What I'd like to do is
display a row of data over two datagrid rows so the user doesn't have to
scroll horizontally. Essentially, I want to wrap a datagrid row (not text in...
I have a client-side button that I want to call a
javascript function via onclick.
All I need to do is reset a dropdownlist back to the first
record in the list.
Tried: document.forms['myform'].elements['mydropdownlist'].selectedIndex = 0;
and tried...
I need to query a sql server table, and if the query returns no rows, then submit a second query.
The only column returns is a binary value, datatype of ntext.
Dim conn As String = "my connection string"
Dim cnn As New SqlConnection(conn)
Dim cmd As New SqlCommand("select binary_col from t1...
Hi,
I would like to have 5 datagrids on the same page in such a way that they are all placed exactly in the same position on the page. Clicking a tab button would display the first datagrid, a second tab button the second datagrid, etc. (ie., show only one datagrid at a time)
How can you...
Hi,
I have 2 pages. On the first page, I've created and filled a dataset. Now I need to go to a different page to display the contents of the dataset. I can't seem to get the dataset to bind to a datagrid on the 2nd page. (the grid is blank). Tried session variable, didn't work. Seems...
Hi, I have a very simple asp.net web form page with 3 textboxes and a submit button. When I open this page, there is no cursor appearing in any of the 3 textboxes. When I open the page in a browser, I can manually mouse-click into any of the textboxes, and then the cursor appears (but not...
Hi, I'm very new to ASP.net. I'm attempting to write a simple web page that connects to sql server to insert a new row after getting a value entered in a textbox field. The problem is, I keep getting the error: "Object reference not set to an instance of an object.", and it points to a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.