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
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!
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"...
Hi,
I have a string of text that has line breaks as <br /> characters. I need to change the string to only contain 3 lines of text (or 2 <br /> characters).
What is the way to do this?
thanks!!!
Hi,
I have the following situation: I have an app running on a a web-farm (load-balanced). What the app does is simply accepts HTTP Post and saves query string passed into the db. I need to add a caching mechanism so if db is down the app will cache the query string and try to insert it later...
Hi, I am having a problem connecting to remote SQL server via TCP/IP in my .net application on my work machine.
My connection string is somethign like
SERVER=60.187.145.183,2000;UID=sa;PWD=dsdsd
When I run the app and it tries to open sql connection I recieve an error that remote server refused...
After installing VS2005 on my local machine and running an app I get an error at run time that InitializeCulture is not a member of the page. The code runs just fine on my work machine.
Does anyone know what could be causing that
I am running asp.net app on my work pc and trying to conenect to sql server running on remote machine. Getting an error that remote machine may not allow remote connections when the application tries to connect to SQL Server 2005. I see that on remote machine SQL server is set to allow remote IP...
In my app pages I have image path like
images/Interactive_logo.gif
the pages are located on c:\inetpub\wwwroot\Task2 and runs on asp 2005 default web server, which is .net web server, not IIS
In my source of the page I see this as image source...
I am running asp.net app on my work pc and trying to conenect to sql server running on remote machine. Getting an error that remote machine may not allow remote connections when the application tries to connect to SQL Server 2005. I see that on remote machine SQL server is set to allow remote IP...
Hi, I am using remote desktop to connect to my computer at work that has VS 2005 installed. On that work computer I am running an app that connects to a db on a remote server. THe problem is that db connection fails with error "server may not be set up to allow remote connections".
This only...
If anyone if familiar with Visual Web Developer... I am unable to open an existing VS.NET 2005 solution that contains .vbproj files. It complains that .vbproj software is not installed. What could be causing this?
thanks
How can I get a list of all tables in the db in the following format?
servername.dbname.dbo.tablename
so far I have
select name from sysobjects where type='U'
that returns only names of tables os i need servername and dbname
thanks!
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.