Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: developer155
  • Order by date
  1. developer155

    Running SQL batch

    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);}...
  2. developer155

    Debugging does not step into a method

    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
  3. developer155

    Data Grid empty after binding to dataset retrieved from Cache

    jbenson, it's included in my first post thanks!
  4. developer155

    Data Grid empty after binding to dataset retrieved from Cache

    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...
  5. developer155

    JS issuenothing for ONE client

    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...
  6. developer155

    C# Trading Applications

    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
  7. developer155

    Data Grid SelectedItemIndex

    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 =...
  8. developer155

    Data Grid SelectedItemIndex

    Thats not true, if Catalog==null, I do this: if (Catalog==null) { //get from database Catalog = ZoyaModaDP.LoadCatalog(); Session["Catalog"] = Catalog;//repopulate session }
  9. developer155

    Data Grid SelectedItemIndex

    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"] =...
  10. developer155

    Data Grid SelectedItemIndex

    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...
  11. developer155

    DataGrid.SelectedIndex=-1

    it says that CommandName is nto valid in img
  12. developer155

    DataGrid.SelectedIndex=-1

    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"...
  13. developer155

    IMplement timer

    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!
  14. developer155

    Web Service Deployment

    have you tried using IIS option to run your app?
  15. developer155

    Retrieving application virtual folder

    Hi, what can I use to retrieve the virtual folder of the application in this format: http://mysite.com/virtualdir/ thanks
  16. developer155

    Iterating through GridView

    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
  17. developer155

    Iterating through GridView

    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
  18. developer155

    Iterating through GridView

    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"...
  19. developer155

    Control number of lines in text

    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/>...
  20. developer155

    Control number of lines in text

    KDavie, not sure I understand this line: stringHTML = stringHTML.Remove(atChar, 5) why 5?

Part and Inventory Search

Back
Top