create something like this base on the DATA i have on my tables. were do i start?where can i search that will give me more info in the .net world that give me more insight on how to do this?
I want to search my asp.net pages and user controls to see which master page and base class they use. I mention search because we are re-factoring a large project and we need to track progress on the code conversion. I know I can pull this information individually but I need a automated and repeatable procedure.
Select the checkbox ,display the data from oracle database in datagrid then again deselect the checkbox, does not display the data in datagrid in C# coding.
I am new in asp .net.I am not able to undestand why we call base class method when we override methods/events.Like automatically visual studio will put base.OnInit() if you are overriding OnInit.
I have to implement User base security in my Web project using .Net3.5. Followings are some we need:
Roles can be Admin, Manage, Editor, Member etc User can have multiple roles Every roles has its own dynamic menus and restrictions/resources All menus and interface will populate dynamically from Database
I heard some where this kind of i.e user base security can be implemented using HashTable but I dont know how is it?
Today I came to know that for this kind of work Java people use Interceptor Design patterns. So, how could I do the same in asp.net C#?
I am new to ASP.NET and i have created a page where i am calling Fullname of person in Checkboxlist. When a user selects some names and clicks sendmail button , it should go into sql find out the email addresses of selected names and convert them to a mailto:aaa@ymail.com;abc@gmail.com; ask the user whichever mailaccount the user wants to use to send the mail to them.
I made a usercontrol consisting of an AJAX tab control, a textbox, and a gridview. The gridview is pulling data from a SQL database. When the gridview is outside of the tab control and I begin to enter text into the textbox, quicksearch begins to filter the information in the gridview. When i put the gridview and textbox inside an AJAX tab control quicksearch does not work. How do i need to structure the textbox and the gridview on an ajax update panel to get it to work?
I want to select all checkBox in Gridview when click to header checkBox.I have created design such that CheckBox is not available to header of Gridview.It is in other table. Below is design of gridview.
I am displaying my table data using listview control. It is working fine.
Now I would like to add a checkbox in front of every item so then when user checks the checkbox and click on delete button inside or outside the listview control then i want all the records to be deleted.
I want select only one checkbox among 5 checkboxes if user selects one checkbox another which are checked are need to uncheck. How can i do this in client side .....
Im working with the following example and it works fine; i was wondering how to add / save data to another field at the same time:
I would like to add data to ImageID and PageID when the button is clicked... I can't seem to get the selectedvalue of the PageID from the dropdownlist..
Private Function GetConnectionString() As String System.Configuration.ConfigurationManager.ConnectionStrings("ConnectionString2").ConnectionString
End Function
Private Sub InsertRecords(sc As StringCollection) Dim conn As New SqlConnection(GetConnectionString()) Dim sb As New StringBuilder(String.Empty) For Each item As String In sc
Const sqlStatement As String = "INSERT INTO Display_Logo (ImageID) VALUES" sb.AppendFormat("{0}('{1}'); ", sqlStatement, item) Next Try conn.Open() Dim cmd As New SqlCommand(sb.ToString(), conn) cmd.CommandType = CommandType.Text cmd.ExecuteNonQuery() Page.ClientScript.RegisterClientScriptBlock(GetType(Page), "Script", "alert('Records Successfuly Saved!');", True) Catch ex As System.Data.SqlClient.SqlException Dim msg As String = "Insert Error:" msg += ex.Message Throw New Exception(msg) Finally conn.Close() End Try
End Sub
Protected Sub Button1_Click(sender As Object, e As EventArgs)
Dim sc As New StringCollection()
For Each item As ListItem In ListBox1.Items
If item.Selected Then sc.Add(item.Text) End If Next InsertRecords(sc) End Sub
I am fetching data from oracle data base in asp.net application. To achieve this functionality i have used Oracle.DataAccess dll . In my developement enviorment it working fine.
But once I deployed this code on IIS 6.0 it is stopped working and I checked my log and found connection not get established . Then I make sure Oracle.DataAccess.dll present in to bin folder also I try to put this dll in side GAC, but still my code is not working on deployed server.
i want to inser the value in data base ...i am using asp.net in visual studio 2008...i want syntax to insert the datetime,integer ,float,string data type into the data base.