|
The best place to look for solutions to this is Microsoft.
A simple search for "The server does not support debugging of ASP.NET" reveals PRB: Cannot Debug ASP.NET Web Application[^]. And if that doesn't work, you can try the results[^] returned by the search.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello, i am beginner in vb.net.
I know well how to bind the data in a datagrid.Now i want to add a new record in to a table through datagrid thats why in my datagrid last row is always blank.
How it is possible?
How to enter new record in a datagrid?
Any one know the solution help me.
aruljothi
|
|
|
|
|
what you need to do is add rows dynamically to the table source of the datagrid
for eg:- you have a material table as a datasource to your datagrid.Now you dynamically add rows to this table.The rows added are material detail selected by user.
the user selects specific material from the drop down combobox
here is a sample code snippet
Private Sub btnadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnadd.Click
Dim drow As DataRow = material.NewRow
Dim drv As DataRowView = CType(cmbmatnam.SelectedItem, DataRowView)
Try
drow("column1") = drv("mat_id")
drow("Column2") = drv("mat_name")
drow("Column3") = drv("Rate")
drow("Column4") = drv("Quantity")
drow("Column6") = "Enter Quantity"
material.Rows.Add(drow)
material.AcceptChanges()
Catch ex1 As System.NullReferenceException
MessageBox.Show("There are No Materials In this Category")
Catch ex2 As System.Data.ConstraintException
MessageBox.Show("Material Is already Selected")
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
I hope this helps
Mandar Patankar
Microsoft Certified professional
|
|
|
|
|
Hi there i need to display my filename with current system time can any one suggest how to do it this is y code snippet
Dim strFile As DateTime = DateTime.Now
strFileName = str & strFile.ToString("MMM, yy,")
strMonth = strFile.ToString("MMM")
strYear = strFile.ToString("yyyy")
regard
ybasha
|
|
|
|
|
Hello.....
Concat the following string to ur current filename
strTime = Now.ToShortTimeString() <----
_mubashir
|
|
|
|
|
Hi there i need to display my filename with current system time can any one suggest how to do it this is y code snippet
Dim strFile As DateTime = DateTime.Now
strFileName = str & strFile.ToString("MMM, yy,{o:T}")
' strFileName = str & strFile.ToString("{o:T}")
strMonth = strFile.ToString("MMM")
strYear = strFile.ToString("yyyy")
regard
ybasha
|
|
|
|
|
I want to do wake-on-lan in vb.net. Could anyone help?
Thank you!!
|
|
|
|
|
dap_qk wrote:
I want to do wake-on-lan
You'll have to be alot more specific than this. What do you want to do with this?
Keep in mind, that since the CPU is sleeping, you're code isn't running!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I wanting to wake up a remote computer. And using vb.net to do that.
|
|
|
|
|
|
Thank you for your articles
|
|
|
|
|
I am trying to build a relation using 2 fields in each table. I am getting the following error:
BC30518: Overload resolution failed because no accessible 'Add' can be called with these arguments
When trying it with the following syntax:
objDs.Relations.Add("RelationName", objDs.Tables("Table1").Columns("Field1","Field2"), objDs.Tables("Table2").Columns("Field1","Field2"))
I have not been able to find any examples using 2 key fields in each table. Please let me know if this is the correct syntax and if not give me an example.
Thanks for any help!
Steve
|
|
|
|
|
What I am trying to do is this. I create a dataset which is then populated from a database for the purpose of displaying in a datagrid. But what I wish to do is, before it goes to the datagrid for displaying, I want to insert a new column into the dataset and fill it with calculated data.
I have scoured the net looking for a solution but to no avail. So basically I want to add a column to a dataset that has already been filled and then add data to that column as its calculated.
|
|
|
|
|
Off the top of my head (I did something similar recently), remember that columns are a collection within the dataset.
So, something along the lines of:
dataset.tables("MyTable").Columns.add (col)
You'd have to define Col as a column first with details such as name, type, size etc - check out the vs help for that, quite easy.
.....
infact, just found the code for you
....
Dim col as New DataColumn
col.ColumnName = "CustomerName"
col.DataType = GetType(string)
dataset.Tables(0).Columns.Add(col)
Hope this helps
|
|
|
|
|
Its half working but I'm getting a
System.NullReferenceException: Object reference not set to an instance of an object.
On the "fix.Tables(0).Columns.Add(col)" Part of the code.
|
|
|
|
|
Got it working, Cheers. I was adding my column before I had populated my DataSet. Such a schoolboy error.
|
|
|
|
|
Hi all,
I am enhancing an existing VB 6.0 application to support Arabic Language. I converted almost all the forms and controls in the Right-to-left reading order including the MsgBox's. The text and the captions of all the controls are also displaying in Arabic. But the problem is that the OK, Cancel, Retry buttons, etc. in the MsgBox still displays in english language only. Is there any method to display the MsgBox button captions also in Arabic? Please help me in this regard.
Thanks in Advance,
Padmakumar.
|
|
|
|
|
No, you can't programatically change them. Those buttons use the Language settings in the Regional Options control panel.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Ok still one more option exists!
You can simply set the Msgbox's buttons' texts, in run-time using SetWindowText API.
Just you need to create an Msgbox, and enumerate it's child windows, and change the text of the Button ones.
By the way you should remember that msgbox runs modally, if you don't know how to handle this, I could explain more.
|
|
|
|
|
I don't know how to handle this. Can you explain me? I will of much help to me.
Thanking You
Padmakumar
|
|
|
|
|
I have an app i am building where users are able to upload .csv files to be validated. there is a small problem, the company that is going to be using it has decreed that the .csv files do not have to have a header row.
the code i have so far simply fills a dataset
Dim com As New OleDbDataAdapter(xl, con)<br />
Dim ds As New DataSet<br />
<br />
com.Fill(ds)
this works just fine and it handles all the data appropriately when the original file has the first row set up as headers
however, if they dont, it grabs the first row of data as the headers, then runs the rest normally. As you can guess, this messes up the output quite a bit.
what i am looking to do, is this:
i already have code in place that checks to see if there is a header row:
if ds.Tables(0).Columns(0).ColumnName <> "recordid" Then
What i want to know is, how do i insert a Header row into the dataset, after it has been created?
______________________
Mr Griffin, eleventy billion is not a number...
-- modified at 15:03 Tuesday 30th August, 2005
|
|
|
|
|
Dim r As DataRow
r = DataSet.Tables(0).NewRow
r.Item(0) = "put in your values"
DataSet.Tables(0).InsertAt(r, 0)
"People who never make mistakes, never do anything."
My Blog
|
|
|
|
|
Hi,
I've got a set of icons I've used in an app, like folders, which appear fine in the app, and also when viewed in Windows Explorer.
I've now put these icons in a new app, and when I run it, they all appear very oddly, with black shadows around them. I thinks its something to do with alpha channels.
I've changed the colour depth several times, but no luck.
The only difference between the two apps, is the 1st, I used form designer to insert an imagelist and added the icons.
But in the my new app, I've added the icons as embedded resources and manually coded an imagelist, and added the icons.
Anyone suffer this problem before?
|
|
|
|
|
I found the answer here actually, if anyones interested.
http://www.codeproject.com/cs/miscctrl/AlphaImageImagelist.asp
|
|
|
|
|
I don't get what I'm missing.
This code throws an 'Access denied' exception (not a COMException):
Dim RemoteServer As WMSServer
tServerType = Type.GetTypeFromProgID("WMSServer.Server", <remote server>, True)
So I tried this code, but it throws a 'Class not registered' COMException
Dim WMSGuid As New Guid("{A2EFA5CB-3B0E-11D2-9EFD-006097D2D7CF}")
tServerType = Type.GetTypeFromCLSID(WMSGuid, <remote server>, True)
I'm pretty sure I've got the permissions and User IDs set up, and I've registered WMSServicesTypeLib.dll.
Is there something more I should be doing?
________________________________________________________________________
Dave
Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
-- modified at 13:20 Tuesday 30th August, 2005
|
|
|
|