when i execute my programe, a dialogue box will appear with the title F32x_FileTransfer. at the Open File row, when i click Browse, another dialogue box will appear with the title Open. in this dialogue, i can select the file that i want to Open. after selecting the file, click the Open button to get the path name. the path name will be taken to the first dialogue box title F32x_FileTransfer.. at the first row, when i click on the Open File button, the file that i selected at dialogue box title Open will be opened.. that is the sequence that i want the program to do.. but somehow i couldnt get things right.. thanks for the attention to this message. your help will be very much appreciated.. not clear about the question ask, you may contact me at confusegirl85@hotmail.com -DarkangeL-
chubbie
Posts
-
some queries i not sure of. (urgent) -
how to end session..?oh.. so i just add the code he gave me to the aspx's html page tag right? and it doesnt matter what i use for my programming tools right? -DarkangeL-
-
how to end session..?hmm i am using visual studio 2005.. and the code behind is C#.. componenets used is asp .net 2.0.. can i use the method you gave me? -DarkangeL-
-
how to end session..?i have this logout button in my application. when someone clicks on the button, he will be redirected to another page to confirm if he wants to log out. the code behind, i type
Session.Abandon();
and i also add in
Server.Transfer("login.aspx");
this part works perfectly alright.. it redirects me to the page that i want. but when i hit the backspace on the keyboard, or click on the back arrow in the browser, the page is back to the confirmation page for logout. and if i did some editing in the application, like edit user details and submit (INSERT command).. the whole thing hang, and prompts me error. how should i do, so that, when the user click or press the backspace, the "Page is Expired" will appear, instead of my confirmation for logout? i need help here. have been struggling for long. -DarkangeL-
-
syntax errorhmm.. mind explaining it in more details.? -DarkangeL-
-
syntax errorIncorrect syntax near ' '.
Line 716: SqlCommand commandObj2 = new SqlCommand(UpdateData, connectObj2);
Line 717: connectObj2.Open();
Line 718: commandObj2.ExecuteNonQuery();
Line 719: connectObj2.Close();Stack Trace:
[SqlException (0x80131904): Incorrect syntax near ' '.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +95
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +82
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +346
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +3244
System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) +272
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +367
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +149
AdminView.Button1_Click(Object sender, EventArgs e) in d:\testApplication\AdminEdit.aspx.cs:718
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +96
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +116
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +31
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +72
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3840this is the error page it gives me. -DarkangeL-
-
syntax errorwhen i run my application, the program hinted me.. highlighting commandObj2.ExecuteNonQuery(); telling me it have a syntax error near ''.. i was puzzle as to where this error comes from, or where did i go wrong. -DarkangeL-
-
transfer data from aspx to .doc (WORDS)hi there.. i am rushing for time, and this part will be the final of my project before submission. i am required to transfer data in my aspx page to microsoft word. let's say i have an aspx page with labels, tables. with button (save in microsoft words). when i click on the button, a small message box pop out and ask me if i want to open, save or cancel. yeah. i want this thing to happen. but i dunno the code. may i know how to do this..? thanks alot. -DarkangeL-
-
gridview_SelectedIndexedChanged...erm.. thanks for your help.. i've solved my problem already.. =) -DarkangeL-
-
gridview_SelectedIndexedChanged...hmm.. the thing is i dun want to hardcode the lectname and the project title. i want the server to read the values when i click on the Select link. and extract the whole row of data which had that Lectname and ProjectTitle. TIA. -DarkangeL-
-
gridview_SelectedIndexedChanged...here's the situation.. i have the intention to design my "website" to be linked this way. ViewProposal_Admin.aspx (gridview)-> AdminView.aspx. At ViewProposal_Admin.aspx, there is a gridview showing 3 colums, namely Lecturer's Name, Project Title and select column. The column (lecturer's name) has Fonda Hoon, Gary, Cheah Sook Yee, James .... etc. and The column (project title) has abc, def, ghi, jkl, mno.... respectively. My main concern is this: When i click on Select with column Fonda Hoon(Lecturer's name) and abc (project title), i will be redirected to AdminView.aspx, with all the relevant data that is extracted from table (allInformation) in the database, where the data is the entire row where Fonda Hoon and abc can be found. select command: string showAllData ="SELECT * FROM dbo.allInformation WHERE ?????"; the (?????) is the part where i cant figure out.. TIA for any help given. =) -DarkangeL-
-
if the value is 0..thanks a million..!! it solves my problem.. -DarkangeL-
-
if the value is 0..the If.. Else.. code is this..
if (gtTextBox.Text == "0") { Server.Transfer("TBFund.aspx"); } else { Server.Transfer("MainPage.aspx"); }
but somehow there is some error with it.. -DarkangeL- -
if the value is 0..hi all.. thanks for the attention to this post.. i am facing some difficulty with my project and i need help. example, i have 3 textboxes (unitPrice, quantity and grandTotal) and a button (nextBtn). when the application is running, the user will key in some value inside unitPrice and quantity (for multiplication).. and the grandTotal will auto compute the product. (this has been done.) Now, the thing is, when i click on the "Next" button, i want the browser to compare the value at the grandTotal TextBOx.. if the value is 0.00, it will redirect me to PAGE1. if the value is more than 0.00, it will redirect me to PAGE2. i've tried various ways (Using if.. else.. loop) but it seems to have some problem.. does anyone know how to solve this problem..? i need help here.. using asp .net 2.0, visual studio 2005, c# -DarkangeL-
-
i need help here.. it's urgent. dun understand the question can reply me again.Hi all.. here's the situation.. My Lecturer gave me some tasks to do for my project. one of them is giving me some problems. he asked me to create a table that looks like a Gantt Chart.. the rows are undefine (up to user, explained at the bottom). and there have to be 26 columns. The appearance of the whole table that my Lecturer wants is that we have the Header Text Row (1st Row) and one row of 24 checkboxes and 2 TextBoxes (2nd Row) for people to fill in some data. at the side of the whole table, there will be a button named (Add Row). so, when user click on the button, another (2nd Row) will appear, forming the 3rd Row. the objective is to append a new (2nd Row), data not yet filled in, at the bottom, preserving the data keyed in at the previous rows.
Header Text 1
Header Text 2...
...Header Text 25
Header Text 26
this is a rough idea of how the table should look like.. and the main problem is, i dunno how to do to make the rows append at the bottom of the seconde row and so forth.. as afterwhich i have to collect the data and save inside the database.. and display it in another aspx.. by the way, i am using asp.net 2.0, C# language, and visual studio 2005.. thanks for the attention to this message.. as this is due next week.. thanks once again.. -DarkangeL-
-
How to add row without using gridview or details view..?Hi all.. here's the situation.. My Lecturer gave me some tasks to do for my project. one of them is giving me some problems. he asked me to create a table that looks like a Gantt Chart.. the rows are undefine (up to user, explained at the bottom). and there have to be 26 columns. The appearance of the whole table that my Lecturer wants is that we have the Header Text Row (1st Row) and one row of 24 checkboxes and 2 TextBoxes (2nd Row) for people to fill in some data. at the side of the whole table, there will be a button named (Add Row). so, when user click on the button, another (2nd Row) will appear, forming the 3rd Row. the objective is to append a new (2nd Row), data not yet filled in, at the bottom, preserving the data keyed in at the previous rows.
Header Text 1 Header Text 2... ...Header Text 25 Header Text 26
this is a rough idea of how the table should look like.. and the main problem is, i dunno how to do to make the rows append at the bottom of the seconde row and so forth.. as afterwhich i have to collect the data and save inside the database.. and display it in another aspx.. by the way, i am using asp.net 2.0, C# language, and visual studio 2005.. the textbox and checkboxes are used like: thanks for the attention to this message.. as this is due next week.. thanks once again.. -DarkangeL- -- modified at 20:34 Monday 6th February, 2006 -
help!!! (rather urgent)i need to write a print function for visual studio 2005, using C# language. it is a website so i cant use "using System.window.form or window either" and java script is not allow in the my project. please help!!! -DarkangeL-
-
printing problems..hmm.. how to create activeX command..? -DarkangeL-
-
printing problems..hi all.. here's the situation:- i am using ASP .NET 2.0, Microsoft Visual Studio 2005, Language = C#. when i execute and run a page, i have a datagrid being displayed and a button, named "Print". What i want to do is, when i click on the "Print" Button, i want to print the datagrid without using windows.form and without using javascript. does anyone here knows the code to it..? thanks very much for your help.. -DarkangeL-
-
print commands...but, if i am required to use C#..? what will the code be like.? -DarkangeL-