many thanx to you guys .. ur really doin a great job
but my problem still accours .. i have no error messages against execution but the database not affected anything after this command (dbcommand.ExecuteNonQuery()) is ignored i don't know why?!!
here is the code ..
Private Sub addbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addbtn.Click
Dim conn As New OleDb.OleDbConnection("provider=microsoft.jet.oledb.4.0; data source=" + Server.MapPath("mydatabase.mdb"))
Dim sql As String
sql = "insert into table1(column1,column2) values ('" & txt1.Text & "','" & txt2.Text & "') "
Dim dbcommand As New OleDb.OleDbCommand(sql, conn)
Catch ex As Exception
I have a problem with an image which i want to use as a button.
Actually i have no idea how to do this!
I have an image which i can through a seperate program cut into pieces,
Now i want the pieces in my ASP page, next to each other without any white space between them and each piece of the image is a different button!
Don't know how todo this.
I tried something with tables (html table and ASP table),
didn't work or i did something wrong!
Please can you help me or point me in the good direction!
I have an asp.net application inwhich in one of the pages i am create a graphical image file and saving it on disk. I also have a image control in the page whose value (src information) changes when the image file is recreated at runtime. The problem is i am not able to set the src file value at runtime, i have to do a refresh the page to load the new image file.
Is there anybody out there who can help me solve this problem.
i beleive i am using the right code .. but nothing happens to the database when i am insert or update or delete only select statement running.
sql="insert into table values("","")"
The following checks may help you to trace out the problem
1)Please check your connection(connectionstring),so that it is connecting to the database(Debug/ use try-catch).
2)Check you are having enough permission to execute the command.
Dim myCommand as SqlCommand<br />
myCommand=New SqlCommand(sql,conn)<br />
4)Check your T-Sql queries are working fine(Execute in Query Analyzer)
If every above cases are fine,It should work.
More confidently, "It will work".
So first you should make sure that ur coding is working. I mean that the problem is not from ur code, just simply run on another machine or run with SQL server.
if the code is good, that means you might try to re-install the MS Access. Because, my friend had experinced this issue and we try to find out what the cause is, but nothing. And everything is working again until re-installing MS Access. we dont know why.....
if you have a better solution, post it here as well....
I have three datagrid which is created at runtime which contains textboxes,check boxes and lables which is also created at runtime.There is no horizontal scrollbars on screen resolution of 1152 by 864 pixels and the resolution around it.
If we change the screen resolution to and around 800 by 600 pixels the horizontal scrollbars appears in the datagrid.
If we change the screen resolution to and around 1600 by 1200 pixels the horizontal scrollbars appears in the screen and the data is not visible without moving a scrollbar.
We want the datagrid without any horizontal scrollbars and data inside it can be seen in one screen without scrolling.we want the datagrid and the data inside it to be adjusted to one screen at any screen resolution.
I have created pages dynamically with the help of this site http://www.codeproject.com/aspnet/ClientPaging.asp but now my problem is i am unable to set the font style and some other properties to the cells(hc1) which r created dynamically i.e
HtmlTableCell hc1 = new HtmlTableCell();
2.I am adding the cells to a row and finally to a table
now at the time of displaying the length of the cells is varying depend on the text but how can i fix the cell size not to grow. I have set the width of the cell as hc1.width="120px"
How can i create the Pages dynamically by using HTML not by using datagrid/repeaters, so that the page numbers shld be like 1 2 3 4 5 NEXT and if i navigating to the 6th page it shld show next 5 page numbers i.e PREV 6 7 8 9 10
hi i am working in asp.net 2003 i am facing one problem in my coding i inserted one dropdown item in my datagrid control as templet item while i am tring insert data into dropdown it it not executing. some one help me how populate data in dropdown from databse(perticular column in database)
Correct me if misunderstood here . to populate data into dropdownlist, just simply bind data from a specific coulumn in DB to the dropdown
code snippet below....
ddl.DataSource = CreateDataSource()
ddl.DataTextField = "TextField"
ddl.DataValueField = "ValueField"
What I should do to display the popup above the all controls(Above the list controls).
Please show me the right way.Thanks very much.
Last Visit: 24-Aug-19 7:32 Last Update: 24-Aug-19 7:32