I have a datagrid, each row contains 4 checkboxes columns and 2 text columns (customer type and customer name).
I need to use javascript to do some validation on the checkboxes.
The validation is when a checkbox is checked, then base on the customer type of that row, and go through all the rows...
ok, finally got some progress. I can remote desktop to another computer using the ip address, but I can't use the machine name. It seem it is a DNS issue. I did ipconfig /flushdns, but that doesn't help.
Any other though??
Thanks.
I think it's dynamic. I am using cable modem and the network connection details show the default gateway is 192.168.2.1; DNS serve also 192.168.2.1; also there are lease obtained and expires dates.
I try pc name and ip address(192.168.x.x), both don't work. But I can ping them with both pc name or ip address. There is one thing I don't know why is when I ping another machine using the pc name, it doesn't show the internal ip address (192.168.x.x), it show something 209.86.x.x. It only...
I am getting this error message, "The client could not connect to the remote computer", when I try to remote desktop to another computer within my home network. The thing is it was working about a month ago, and I didn't remote desktop for a while, then now it doesn't work. I tempory disabled...
i have a customer object which has custID, custName, custAddress and I need to bind the customer collection to a datagrid. But I only want to show the custName, custAddress and a template column with a radio button for each item.
So when the form postback, how do i find out which custID...
can someone give me some guideline about when to add objects to either session, HTTPContext.Items, or Cookies?
What is the best practice on that?
Thanks in advance !
Vincent
thanks adamroof.
your post make me think about my code again. It turns out the grid is ok; I was doing something stupid.
I used the selectedIndex and retrieved the data from the underlaying datatable, not the selectedItem.
What a catch!!
i have a datagrid which allows paging, I am able to click on next page, and rebind the data and show up the next continue rows on next page.
But the problem is the rows are also selectable, when I click a select on a row, the selected row is actually the 1st page's row. Do I need to implement...
this is the dataSource code:
<asp:SqlDataSource ID="sqldsMainProducerStatement" runat="server" ConnectionString="<%$ ConnectionStrings:OleDBConnectionString %>"
OnSelected="sqldsMainProducerStatement_Selected" OnSelecting="SqlDataSource2_Selecting"
ProviderName="<%$...
the situtation is that if I only call 1 stored procedured within the sqldatasource is fine, but if I try to call two SP within the datasource, it gives me a hard time.
actually, i can't.
The connection is OleDB, and if I use SQLParameter, it will give me the following:
"The OleDbParameterCollection only accepts non-null OleDbParameter type objects, not SqlParameter objects. "
oh, sorry, the dealerCode is assigned.
protected void SqlDataSource1_Selecting(object sender, SqlDataSourceSelectingEventArgs e) {
string dealerCode ="12345";
e.Command.Parameters.Add(new OleDbParameter("@dealer", dealerCode));
}
But the problem doesn't resolve.
any thoughts??
I need to create a sqldatasource which connect to SQL Server 7 using OLEDbDataSource. The select involves two stored procedures and each procedure takes a parameter.
My question is how do I pass in the two parameters to the stored procedures correctly?
I tried to add the following ...
If I have a gridview, can I bind two fields into one field like below:
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" Text='Customer is <%#Eval("CustID") %><%#Eval("CustName") %>'>
</asp:LinkButton>
</ItemTemplate>
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.