View Complete Post
How do I restrict the number of input fields in the form to match the size of the columns?
Table Columns Reads:
state: Type Char; Length: 2zip: Type: char; Length: 5 Phone: Type: char; Length: 12 Fax: Type: char; Length: 12 Email: Type: nvarchar; Length: 256
BoundField Reads:
<asp:BoundField DataField="state" HeaderText="State:" SortExpression="state" /> <asp:BoundField DataField="zip" HeaderText="Zip Code:" SortExpression="zip" DataFormatString="{0:#####}" /> <asp:BoundField DataField="phone" HeaderText="Phone Number:" SortExpression="phone" DataFormatString="{0:(###) ###-####}" /> <asp:BoundField DataField="fax" HeaderText="Fax Number:" SortExpression="fax" DataFormatString="{0:(###) ###-####}" /> <asp:BoundField DataField="email" HeaderText="Email Address:" SortExpression="email" DataFormatString="<a href=mailto:{0}>{0}</a>"
I knwo how to capture a line number from en exception error...but I have a need to capture the line number that certain things occur wihtout having excpetion thrown. I guess one way would be to force an exception to occur and then trap the line number but I dont really want to do that because that seems clumsy to me.
What woudl be nice is if there were some way to just say "what line of code is this?" programmatically.
so that regarldess of any code changes when I need that information to be grabbed it alwasy grabs the right value.
My existing system has Visual Studio 2008 and Visual Web Developer 2010 Express. But Microsoft web installer for Webmatrix has made Wematrix Launch ribbon menu pointing to Visual Studio 2008. How could I make Webmatrix point to Visual Web Express 2010. To make use of IntelliSense and the debugger, I have to manually launch Visual Web Developer 2010 Express.
Any help to resolve this would be helpful Or is this a known issue at this time!
I'm trying to use an objectdatasource and populate it with a query that has "or" in its where statement. eg: select * from customers where customer_id = "34" or "35" or "36"The problem is... I don't know ahead of time how many of these "or" conditions there will be - the user can choose as many or as few as they want. It seems that if I want to use an objectdatasource tied to a tableadpater I'm forced to know the number of parameters ahead of time so that I can build the objectdatasource's input parameters in advance. I apologize if this is not clear, but could use any help. I need to add parameters and condition them as "or"... any help would be greatly appreciated.
e.inputparameters.add doesn't work, because the key (in this case "id") is the same for each parameter because the where statment has "or"s....
What version of the Enterprise Library should be used with Visual Studio Developer Express 2008?
Looking at using the Data Access Application Block.
Currently using an earlier version in C# that doesn't seem to be closing connections properly.
Tim
I am developing logging application with asp.net & vb.net & Oracle
At present I'm using this mechanism to write logs
Method1 Connect (Try{Conn.open ()Flag=True}Catch{Flag=False}Finally{Close () & Dispose () Method2 WriteLogs (Call Connect ()If flag=True Write logs into Oracle DatabaseElse Write logs into Text File
The problem with above procedure is, I'm using "Method2 WriteLogs" more than 2000 locations in my program. So each time it's opening & closing the DB connections. It's slows the system. I want to use Method2 without using the Method1
is there any solution in MS Enterprise Library to write logs without opening & closing the DB connections, so many times?
Please advice me
Hi,
When a new Task is created, WORKFLOW should automatically assign task to the user who is having a least number of task in TASK List.
Using out of box feature ( Sharepoint Designer WF) how can I do ?
thanks
Bhoja
We have lost the "Connections" menuitem in the "edit" drop-down list box which is on the toolbar for a BDC WebPart. Enterprise features are all still activated. This had been working fine but suddenly disappeared and we don't know why.
Any ideas?
-Dave
On the Business Data Item Builder menu there is typically an option that says "Connections" and then you can connect the item builder to a Business Data Item Web Part. Our Business Data Item Web part is set up properly and our ADF file (and query string) is unchanged, but the Connections option has disappeared. Any help or insight into this issue is much appreciated.