User Profile
Collapse
-
imgCurrent.Imag eUrl=ds.Tables( 0).Rows(0).Item ("imgPath") -
-
#1. your sql query will be like....
Select * From Corrosion Where {column in database} <=corrpct1 OR {column in database}<=corr pct2
#2. If this query returns more than one row then instead of using datareader use dataset....
fill the dataset(say ds) with this sql query
take a datagridview or listview or datalist in the frmDetails form
now put........
Dim form As New...Leave a comment:
-
-
I would always prefer to set height/width of any control of my web page in percentage(%).. ...thats how resolution doesn't effect on the layout of your web page.....Leave a comment:
-
Leave a comment:
-
i can just give you a logical way.....because i dont know how you are managing your insert /updates........ ...
take a flag(a variable)...to hold the edit/insert status.......wh enever user creats a new row in the grid(by clicking a button or so) set the flag value to 1 or "insert" or as you want......other wise the flag value will be 0 or "update" or as you want........... .
Dim flag As String=""...Leave a comment:
-
In web.config file of your ASP.NET project set the connection timeout period of Session to 30.......please search Google or read some book how to do so....Leave a comment:
-
dip_developer replied to Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))in .NETtry to repair your OWC ["Microsoft Office 2003 Web Components"] in your machine...
...........
Office Web Components are a collection of Component Object Model (COM) controls for publishing spreadsheets, charts, and databases to the Web............ reinstall it....you can download it from here.......
[color=#800080]http://www.microsoft.c om/downloads/details.aspx?Fa milyID=7287252c-402e-4f72-97a5-e0fd290d4b76&...Leave a comment:
-
use
[CODE=cs]
{
if (!(Session("sit e") == "")) {
//do your needful
}
}
[/CODE]Leave a comment:
-
if you are fetching date from database write a query like
select convert(varchar ,dateColumnName ,101) from tablename
or you can convert the date to short date string like...
Convert.ToDateT ime(yourDateVAl ue).ToShortDate String()
this will display only the dateLeave a comment:
-
have a look at this excellent article .............
http://www.codeproject.com/KB/webfor..._GridView.aspx
Also look at...........
http://www.gridviewguy.com/ArticleDe...?articleID=169
http://www.aspnettutorials.com/tutor...ew-csharp.aspx...Leave a comment:
-
[CODE=vbnet]
Sub GridView1_RowCo mmand(ByVal sender As Object, ByVal e As GridViewCommand EventArgs)
' If multiple ButtonField column fields are used, use the
' CommandName property to determine which button was clicked.
If e.CommandName = "Select" Then
' Convert the row index stored in the CommandArgument
' property to an Integer.
Dim...Leave a comment:
-
There may be many reasons for Load report fail........Che ck whether your report path/report name/database connection string are correct..........Leave a comment:
-
Dim index as Integer=dropdow nlist1.Selected Index....
and if you know the Item name then
dropdownlist1.I tems.IndexOf("I tem-Name")
...as simple as that....what problem..???...Leave a comment:
-
dip_developer replied to How to send Multiple values for one formula field in crystal reports through vb.net?in .NETwhy are you using Formula fields...?? Use dataset to populate records....and bind your report accordingly.... .One formula field can display one record at a time........Leave a comment:
-
[CODE=vbnet]
Dim chkBox As CheckBox
' Go through each row and find a check box
For Each i As DataGridItem In Datagrid1.Items
chkBox = CType(i.FindCon trol("checkbox1 "), CheckBox)
If chkBox .Checked Then
''Do some stuff
Else
''Do something else
End If
Next
[/CODE]...Leave a comment:
-
have u done anything.???... ..this is not the place to post the whole code ...........but surely we will help you.....
what is your idea?? I think upload image in a folder in your server....and save the path in database....thi s is rather easy approach than saving an image to database....... ....Leave a comment:
-
No activity results to display
Show More
Leave a comment: