Ji I have a situation in the data layer that requires an update stored proc to be executed against db many times in a loop liek this:
for (int c= 0; c< users.People.Rows.Count; c++)
{ DBCommandWrapper cw = _db.GetStoredProc("dbo.AddPersonToPeople");
database.ExecuteNonQuery(cw);}...
When I am debugging an app in one of the parts, the VS does not let me step into a method. The method seems to be a part of the current solution(not another dll). What could be causig this?
thanks
Hi,
I am binding DataGrid to a dataview from a DataTable retrieved from Cache. When cache is empty and dataset is retrieved for the first time from DB everything is fine and the datagrid shows.
Now when I get the dataset from cache and bind it to datagrid, grid show up empty! I iterated through...
Hi,
I have a page with JS that reacts to button down event and attaches events to a user control. It works fine for all users except one user's machine where when button pressed when conrol is selected, nothing is being put into control. He has to hit button again.
Not to get deep into code...
Has anyone ever worked in developing trading-related apps with C#. How hard/exciting is this? Any opinions on if this is a good industry to jump in?
thanks
thanks, I will try that. But can you explain why I it shoudl be doen that way instead of the way I did it? The scope of Catalog variable is class-level. Whats wrong with first assigning a dataset from session to class level variable and then doing CategoryDataGrid.DataSource =...
Thats not true, if Catalog==null, I do this:
if (Catalog==null)
{
//get from database
Catalog = ZoyaModaDP.LoadCatalog();
Session["Catalog"] = Catalog;//repopulate session
}
I do that in PageLoad event.
private void Page_Load(object sender, System.EventArgs e)
{
//get category data from Session state
Catalog = (DataSet)Session["Catalog"];
if (Catalog==null)
{
//get from database
Catalog = ZoyaModaDP.LoadCatalog();
Session["Catalog"] =...
Hi, I have a datagrid and on update command I try to set its SelecyedItemIndex to whatever user chose and re-bind datagrid. The problem is that after the page loads, data grid does nto show up! What could be the problem? Here is some code:
public void Edit(object sender...
How can I capture SelectedIndex of the datagrid when user clicks html image("media/i_edit.gif") that is contained in datagrid? In my datagrid I have:
<asp:TemplateField ItemStyle-CssClass="edit" HeaderStyle-CssClass="edit">
<HeaderTemplate><img src="media/i_add.gif" alt="add"...
Hi, I have a web page that checks the harddrive for some files every time user makes a request to it. I need to change so that the page only checks every 10 minutes. Whats the way to implement a static timer that would return minutes elapsed to all the threads (web pages)
thanks!
I noticed that in AJAX call CustomLists grid reference is NULL so it crashes. I guess this is because there is no normal page cycle and it does not get initialized. Is there a way around it or do I have to choose some other method?
thanks
So you mean like this?
foreach (GridViewRow row in CustomLists.Rows)
{
if(row.Cells[2].ToString()=="something")
I cannot use FindControl since I do no have ID for the NAME cell (since its DataBound field)
thanks
Hi I have the below GridView and I am trying to iterate through all the name fields in it in AJAX function.
Here is the gridview
<asp:gridview id="CustomLists"
allowpaging="false"
runat="server"
CssClass="lists"
HeaderStyle-Wrap="false"...
still... this code just removes the last <br /> character. That is not what needs to be done
Imagine a string
Dim stringHTML As String = "this is line 1 <br/> this is line 2 <br/> this is line 3 <br/> this is line 4<br />..."
I need to change stringHTML to only contain
"this is line 1 <br/>...
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.