- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 4
- Posts with Downvotes
- 4
- Downvoting Members
- 3
30 Posted Topics
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization; using System.IO; using System.Runtime.Serialization.Formatters.Binary; namespace DemoSerialization { [Serializable] class SerializationDemo:IPatient { private int _age; private string _name; private static string _localFileName = string.Empty; public static string LocalFileName { get { return SerializationDemo._localFileName = "C:\\ImageSerializeLog.txt"; } set { SerializationDemo._localFileName = value; …
private void CheckBoxListTest_Load(object sender, EventArgs e) { DataTable dt = new DataTable(); dt.Columns.Add("name"); for (int j = 0; j < 20; j++) { dt.Rows.Add("checkbox" + j.ToString()); } CheckBox[] cks = new CheckBox[dt.Rows.Count]; for (int j = 0; j < dt.Rows.Count; j++) { cks[j] = new CheckBox(); cks[j].Text = ""; cks[j].Checked …
[url]http://www.c-sharpcorner.com/Blogs/7612/passenger-reservation-systemprs.aspx[/url] please check this link,it can resolve your problem. also check default.aspx and default.aspx.cs page
public void ClearColor(PaintEventArgs e) { // Clear screen with teal background. e.Graphics.Clear(Color.White); }
Hi ]http://192.168.3.100/PACS3.2.0_DATA/Android_Images/1/1.2.840.114257.0.11796824240075870457700001003416408300001 /DICOMDIR.dic//PACS3.2.0/Images my problem is that I want to get only the specific part of this URL such as only .dic for eg: ]http://192.168.3.100/PACS3.2.0_DATA/Android_Images/1/ 1.2.840.114257.0.11796824240075870457700001003416408300001 /DICOMDIR.dic and remove the last two item from URL. please help
1. config file with your connection string 2. create a class with connection Method. 3. also create dll of the class for the security purpose also
[url]http://my.safaribooksonline.com/book/programming/microsoft-dotnet/9781847194787[/url] go with this link
How to use buffer to save large images if suppose the buffer size is 500kb and image size is 2000kb so that buffer first read First 500kb and then 500kb and so on. Also how to reset the buffer size variable to next posssision please help me.
string query = "select CAST(Fault_Time AS varchar(50)) then remaining query " hope this work.
private void showTrainGrid() { string scon = connect.GetConnection(); SqlConnection conn = new SqlConnection(scon); conn.Open(); string qry = "select * from Train"; SqlCommand cmd = new SqlCommand(qry, conn); //SqlDataReader sdr = cmd.ExecuteReader(); //if (sdr.HasRows) //{ // while (sdr.Read()) // { // GridView1.DataSource = sdr; // GridView1.DataBind(); // } //} SqlDataAdapter sda …
[CODE]protected void btnLogin_Click(object sender, EventArgs e) { try { if (txtUserName.Text != "" && txtPassword.Text != "") { string connection= con.GetConnection(); string lname = txtUserName.Text; MD5CryptoServiceProvider md5Hasher = new MD5CryptoServiceProvider(); byte[] hashedDataBytes; UTF8Encoding encoder = new UTF8Encoding(); hashedDataBytes =md5Hasher.ComputeHash(encoder.GetBytes(txtPassword.Text.Trim())); //string pname = txtPassword.Text; OleDbConnection conn = new OleDbConnection(connection); string qry …
Dear All, the below is my code it not works properly. I want to display the picture boxes dynamically ie run time it works fine but in my application have 1 Button ([B]btnGenPictBox[/B]) click on it adds the no. of picture box and also at the same time it display …
you can call the javascript alert() funtion to show the message box in asp
In this form I use Two button(1.Browse,2.Generate PictureBOx Dynamically), One Textbox(Here I enter Number of Picture Box to Display at run time),Context Menu,and a FolderBrowseDialog. When I click on Browse Button it opens the filebrowsedialog box from this I select the Image folder. then I enter number in Text Box …
In my win form application having 1 button ,folderbrowseDialog box, Picturebox inside the Panel. On Button click open folderbrowsedialog for open the images folder i want to add this list images to my contextmenu at runtime i get that images path at runtime but now i am not able to …
Now I want to add the number of picture boxes to windows form dynamically. for eg. when user put the input in text box such as user enter 4 then Four picture boxes are added to the form at run time. also I don't know how handle the context menu …
[code] <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#btnclick").click(function(){ $("#para").hide("slow"); $("#btnclick").click(function(){ $("#para").show("slow"); }); }); }); </script> <body> <form id="form1" runat="server"> <div id="para"> <p>The form contains a button to place the final order. In this example, pressing the button returns a simple JavaScript alert(), depending on the contents of the order. In …
create Procedure ProcedureName -- declare variable as begin your DML Statement End go
VS Studio Command Prompt use command csc classname.cs
[url]http://msdn.microsoft.com/en-us/vcsharp/aa336809.aspx[/url]
create the udl file for the connection with database and use that connection string in your application
Update EMPLOYEE set EMPNAME='SomeValue' where EMPID in(1,2,3,4,5,6,7,8,9,10)
LEADID ACCOUNTMANAGERID ActivityDate USERNAME Q6UJ9A08MZSN U6UJ9A0000IR Mar- 1-2011 KSHITIJ GUPTA Q6UJ9A08MZSN U6UJ9A0000IR Mar- 1-2011 KSHITIJ GUPTA ACCOUNTNAME Kayess Finance & Investments Kayess Finance & Investments show only one records for duplicate this o/p come from various join it just an sample data i have near about 250 duplicate records in …
if you are developing the web application you can use MessageBox.Show("Your Message"); and if you are using the window app then use the javascript to display msgbox <script language="javascript"> alert('Your Message') </script>
protected void Page_Load(object sender, EventArgs e) { this.DropDownList1.Items.Add("Orange"); this.DropDownList1.Items.Add("Grapes"); this.DropDownList1.Items.Add("Apple"); this.DropDownList1.Items.Add("Mango"); this.DropDownList1.Items.Add("Lemon"); this.DropDownList1.Items.Add("Banana"); }
Session.Remove("User"); hope so it works To remove all Session variable use Session.Removeall();
select EmpID,EmpName from Emp a group by a.EmpID,a.EmpName union select EmpID,EmpName from Emp a group by a.EmpID,a.EmpName order by EmpName hi i think this query solve your problem
while creating the table you can add the defualt value to it
The End.
prit005