I ahev a GridView filled with ASP.NET Texboxes which I create on Grid_DataBind event. we have a functionality where user can change value in a textbox and then revert changes. Revert goes into DB and gets all the old values and reloads the grid, re-creating all the textboxes.
The problem: when...
Hi, I am using an array to that represent a table in memory:
col1 col2 col3 col4
5 5 10
15 18 23
The app does not know the sie of the array on each execution so I set it to a large size, liek 1000 by 1000(1000 rows thousand columns). Of course it is inneficient as my...
Hi, I have a function that does some calc and returns a decimal which i try to put into a datarow. so:
decimal myvar= SomeCalc(..);
//lets assume myvar=0.9 after calculation
//update the output row in place with value
newOutputRow["column"]= myvar;
But then when I do...
Hi,
how can I declare a dynami multidimensional array? I have this right now for 2-dim array
protected CellProperties[,] CellValuesContainer = new CellProperties[500,500];
and this for one-dim array
protected RowProperties[] RowValuesContainer = new RowProperties[100];
Obviously I need...
Hi, I have a class that inherits from another class, which in turn inherits from a base class. So there are 3 classes. So the second class overides base implementation and the third class overrides some of second class' implementations.
So the problem is as follows: third class calls a method...
Hi, I have an input box(asp.net textbox). When user makes a change to the value I need to save the old value forst. What event can I hook up to the box to get the old value? Also how can I get the value that was there before update
Thanks
Hi, I am creating a DataTable on the fly(basically converting html table to datatable). I need a way to assign unique ID's to each cell in DataRow. I dont see datacell object to which I can assign Id's. what is the way to do it?
//create rows
foreach (TableRow SourceTableRow in...
Hi, I have a page that uses asp.net Table (<asp:Table>) to display data. In code it loops through dataset and creates the table. It also appends JS attributes while it does it.
I need to use DataGrid instead now. Creating Datatable instead of generating table is not hard, but we cant add...
Hi, I have radio button group with 2 buttons, Yes and No. Few things:
1) How do I attach JS event to fire when user clicks Yes
2) In JS code, how can I check the value of the radio button group, basically if Yes or No is selected?
I am using ASP.NET radio button group, but here is the HTML...
Hi, I have radio button group with 2 buttons, Yes and No. Few things:
1) How do I attach JS event to fire when user clicks Yes
2) In JS code, how can I check the value of the radio button group, basically if Yes or No is selected?
Thanks!!!
Hi, I have a DIV (image) that, when clicked, expands and inside that div user will see a menu (other divs).
Now I want to add functionality where when user clicks on any other part of the page while div is open, to close it so the menu closes.
I have a function to close the div. I also added...
Hi,
I have a page with links that upon a click execute remote scripting call (kind of liek ajax) and return a URL to the JS which then redirects the browser to that url.
Now the problem arrises when users do double clicks or click the link before the first click finishes processing.
What is...
Hi I need to create a date that is 21 days in the future and output it in this format: mm/dd/yyyy
I have this:
var d = new Date();
d.setDate(d.getDate() + 21);
var formattedDate = d.getMonth() + '/' + d.getDate() + '/' + d.getFullYear()
alert(formattedDate);
I get 3/2/2008 for...
I have asp.net checkbox that I hide. There is another control that I attached onclick function that is supposed to unhide the checkbox. All is well and it seems that the function finds the checkbox OK but it stays hidden. No JS error is reported. What is wrong? Here is control
<td><asp:checkbox...
I have a GridView where I use HyperlinkField. The thing is I need to encrypt the userID I put into the query string so I am trying to call code render Encrypt function to encrypt. But the problem is that Encrypt never gets executed. What is wrong:. Here is my code:
<asp:HyperLinkField...
Hi, I am trying to build a dynamic SQL query that does customer search. It accepts a bunch of parameters and dynamically creates select statement based on whether eaach parameter is null.
So say I have this
Create Procedure SearchCustomer
(
@CustomerName varchar(50),
@CustomerAddress...
Hi, I have an aspx form for a company information. In that form user should be able to add multiple users. So user info section should have Add button where a new User section will appear when the button is clicked.
So I basically need to show a new section for User Info each time they click Add...
Hi,
I am trying to use personalization, but in my code file Profile object does not have stronly typed properties I have defined in web.config.
Here is how I set up my web.config:
<profile defaultProvider="CustomProfileProvider">
<providers>
<add name="CustomProfileProvider"...
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.