hello, can i droppeddown all items that i have in a DataGridViewComboBoxCell ? if it ComboBox we can only set myComboBox.DroppedDown = true;
but how i can do that in DataGridViewComboBoxCell ? Thank u
Regards, Tomi
hello, can i droppeddown all items that i have in a DataGridViewComboBoxCell ? if it ComboBox we can only set myComboBox.DroppedDown = true;
but how i can do that in DataGridViewComboBoxCell ? Thank u
Regards, Tomi
Hi, I'm having a problem to show a confirmation messageBox when i press my LinkButton inside my gridview..Currently i'm using gridview_RowDataBound Event : protected void gvAllProjects_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { LinkButton lbDelete = (LinkButton)e.Row.FindControl("lnkDelBtn"); lbDelete.Attributes.Add("onclick", "javascript:return " + "confirm('Are you sure you want to delete Customer : " + DataBinder.Eval(e.Row.DataItem, "mainproject_cust") + " ?')"); } }
it show me the confirmation messagebox, when i press the "Ok" button the data is succesfully deleted but when i press "cancel" it delete my data too :confused:..pls anyone give me a solution how to detect when user press "Ok" or "Cancel" button. Thank u for the help
Regards, Tomi
Already solved by using FileInfo.Extension Thank U
Regards, Tomi
Hi all, Can Anyone tell me how i can check the type of a file?I mean i want to add checking file if the file not a .doc files then i want to show message box To show that the file extension is not .doc files Thank U For The Help :-D
Regards, Tomi
Hi, Please Please Give Us Your Code So We Can Help Solve U'r Problems :confused:
Regards, Tomi
i try this in my code and its working fine, ex : byte[] img = (searchContact["Photo"] == DBNull.Value) ? null : (byte[])searchContact["Photo"];
searchContact is my SqlDataReader, Hope this can solve u'r problems
Best Regards, Tomi
Thank U for the link MALCOLM
Best Regards, Tomi
Hi all, Does anyone know where i can find c# articles about "How to read a MT940 file in C#" or any articles related with that topics ? i already search at google and at CP articles but i can't find a good articles :doh: Thank U
Regards, Tomi
YourDataGridName.DataSource = YourDataSet; Try this for example : dgvAllData.DataSource = myDataSet; dgvAllData.DataMember = "ID";
Hope can help
Regards, Tomi
Yes, if u want to show the latest data then u should use datatable instead dataset For Example : string conect = ConfigurationManager.ConnectionStrings["CON"].ToString(); SqlConnection conn = new SqlConnection(conect); SqlDataAdapter da = new SqlDataAdapter ("Select * From MyTable",conn); DataTable dt = new DataTable(); da.Fill(dt);
Hope this can help solve u'r problems :) -- modified at 2:01 Monday 10th September, 2007
Regards, Tomi
I'm sorry Assaf, what exactly u want to do ? if u want to get the latest data why dont u use datatable.
Regards, Tomi
They Already gave u the right Query..if u're try to implement that query in your apps just change the where value, ex : Select * From [my_table] WHERE username = '" +UserText.Text+ "' AND password = '" +PasswdText.Text+ "'
wat else do u need they gave u the right query u need:-D
Regards, Tomi
please do more spesific with u'r question:confused:.. Maybe i can help solve u'r problem
Regards, Tomi
That is a very good article..thank u for the information:-D
Best Regards, Tomi
Hmm, I dont know for sure,perhaps its because the login status control coz i never use the login status or login name control:doh:..i always use programmatic to create a login Just try to look at on This Linki think it will help ur problems
Best Regards, Tomi
I use these code to generate a xml file(i use SqlServer2005 for the DB), for example:
string MyConn = ConfigurationManager.ConnectionStrings["Connect"].ConnectionString; // Connect is my connection name in app config
SqlConnection conn = new SqlConnection("MyConn");
string SqlStatement = "SELECT * FROM my_table"
SqlDataAdapter adapt = new SqlDataAdapter(SqlStatement,conn);
DataSet ds = new DataSet();
DataTable dt = new DataTable("my_table");
adapt.Fill(dt);
ds.Tables.Add(dt);
ds.WriteXml (@"..\..\myXmlFile.xml") //create a xml file name myXmlFile
After that build and execute u'r application.In windows explorer,Locate and Find u'r xml file on u'r project folder..Hope Can Help U
Best Regards, Tomi
what application did u build? a Web Apps or a Win App
Regards, Tomi
mrkeivan wrote:
when I run it I get this weird error sayin The page Login.aspx couldn't be found
What is u'r master page name?u said that u created one page what is the page name? plz do more specific with u'r question Try This Link For Simple Sample There is many example about ASP.NET
Best Regards, Tomi
i think u dont get an access to write that project..look at the configuration on server, did u'r server allow u to modified the project
Kind Regards, Tomi
thanks for the infomation:)
Regards, Tomi