Hello there, I used ASP.NET to develop some web applications. I want to design a web page now, but not sure how to get it done, what's the procedures? Can anybody advise me where I can find the tutorials for web page design and how to get it published, etc? Thanks!
Segal
Posts
-
How to get web site designed. -
Problems parsing parameters through Request.QueryStringI have developed an web UI applications which will access data from SQL DB, and in which, there are certain tables store Chinese charactors. When I retrieve those Chinese charators from DB and bind them to my UI page, it looks OK. However, when I pass those charactors from one module to another by using window.navigate(xxxx) and use Request.QueryString(xxx) to receive, I found certain charactors are not receiving correctly, for example, if there are 5 Chinese words on that string, and after QueryString(xxx), I only got 4 of them, etc. This problem happened on my machine running windowXP, but OK with Window2000. Does anybody encounter the similar problem and have better ideas how to prevent it? Thanks!
-
How to pass parameters between modules?I got the 2 module files defined in my ASP UI page, module1.aspx, module1.ascx, module1.cs and module2.aspx, module2.ascx, module2.cs. How, the structure of ASP module is: module1.aspx will use module1.ascx file, and module1.cs is defined inside module1.ascs through "...src=module1.cs", samething to module2 files. Now, I want to pass some paramters from module1 to module2 through clicking from module1.ascx file and the way I use is to define a client script in module1.ascx file: function xxx(par1,par2) { .... window.navigate("module2.aspx?para1=xxx¶2=yyy"); } And defined something like this in module2.cs file: var1=Request.QueryString["para1"].ToString(); var2=Request.QueryString["para2].ToString(); But after run my program, I found nothing has been parsed into module2. Does anybody know what's wrong with my code and how to pass the parameter from ascx file to another aspx part? Thanks!
-
How to make general databinding?I'm writing some UI stuff by using ASP.NET with ADO.NET, and I want to make my data binding more general, not specific to SQL db, but easily to be changed if the db source to sth. else, for example, using Cache DB (required ODBC connections). One way to do it, I can add a section in the web.config file to define the db switch, and apply it to my ASP.NET code. However, I need to apply this to every functions which requires DB connections, so, my codes will be a mess. Is there any better way to tackle this problem in ASP.NET? Thanks!
-
How to get the page returned?In my ASP.NET application, how to configure my settings in order to get the following message returned when clicking "back" button from IE: --------------------------------------------------------------------------- Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you. To resubmit your information and view this Web page, click the Refresh button -------------------------------------------------------------------------- Should I do it by adding some code to my ASP files or sth. else? Thanks!
-
How to use session state?Thanks for your reply! I just added it into my logout click function, but the problem is still there. Any ideas?
-
How to use session state?I'm pretty new to use ASP.NET for web page design. I worked out a page in which it got user name and password, etc. When it passed the validation, it goes into the content page, and when the sign out button is pressed, it went back to the sign in page again. Now, if I press the back button from IE after signing out, it can still goes back to the content page. So, how to use the session data to prevent this happened? Many thanks!
-
Removing the XML heading line in C#.I'm pretty new to .NET and XML here, and now I want to write a program in C# to remove the heading line from input XML file. For example, my input XML file will look sth. like this: - xxxxx yyyyyyyy. .............. Now, I want modify this file and remove the first line "", so the modified file will be: - xxxxx yyyyyyyy. .............. Can anybody advise me how to do it? Thanks!
-
How to do XML file modifications?I got a xml file, sth. like this: - AppAnalyzer This report displays entries in the task log. Each entry in the report represents the end of a report task. NetIQ Servers Servers default.htm localhost\AppAnEx_current 4/2/2003 4:50:25 PM True 60 Now, I want to modify this file and take out the first line " " and save it back to this file. What's the easiest way to do this (a dos command or I have to write a tool)?
-
How to retrive data from dataset object?If I use dataadaptor to retrieve some data from database, then use fill method to put them into my dataset object instance, then is there any way to retrive the data stored in my dataset object? Thanks!
-
How to use the same db connection with multiple datareaders?Is it possible to define one db connection only, then define multiple dataReader assoiciated with that connection in ADO.net? If yes, how to do it? Thanks!
-
How to debug cs file which was created under webreference folder?If I create a web service project and a web form project under the same solution. Then create a web reference in my web form project. When run the project in debugging mode and want to debug the cs file which is associated to my web reference, how to do it? The current situation I encountered is: I use the object defined in the web service project (cs file) from the web form cs file, and can't debug the object method. Anybody knows how to do this debugging? Thanks!
-
How to solve access denied problem.Yes. I'm pretty sure it is set correctly.
-
How to solve access denied problem.I got a web application defined and create an Virtual directory associated with it with access mode set to "basic authentication" mode. But when I try to run a server control button, it returns me "The request failed with HTTP status 401: Access Denied". I'm not sure how to configure my IIS in order to get rid of this error. Thanks!
-
how to call a window application?If there are 2 window applications(if run the exe file, it will pop up a window UI, and input the parameters there). The first one is to do the file format convertion of A to B, and the second application is to do the file format convertion of B to C. Now I want to write a Console application in C# which will call these 2 applications to do the job of converting A to C. Anybody knows how to do it? Thanks!
-
How to select 1 entry without using "top 1" in SQL query?I'm learning writing SQL query now. If I, for example, want to retrieve information from 3 joining tables (T1, T2, T3), and only want to return the latest failed task and task name is 'Mailboxes', I wrote the following query: select top 1 TT.task_type_desc, TL.starting_time, AAC.type_code_value from tasklog as TL inner join task_type as TT on TL.task_type_id=TT.task_type_id inner join aatype_code as AAC on AAC.type_code_id=TL.task_status and AAC.type_code_class='task_status' where AAC.type_code_value='Failed' and TT.task_type_desc='Mailboxes' order by TL.starting_time desc It gave me the required result. But how to do this query without using "top 1" and still get the same result? Thanks!
-
Creating an empty SQL database.This is a sql command, and I normally use ADO's object SQLcommand and its method "command.ExecuteNonQuery()" to execute the required sql command in my C# program or ASP.NET c# server code. However, that SQLcommand object requires connection first, which needs to have a existed DB available. So in this case, sqlcommand may not be a good choice to run that creation command. Any ideas any other object I can use in my C# program? Thanks a lot!
-
Creating an empty SQL database. -
how to display xml in IE6?I'm learning XML now. Creating a simple xml file which is as follows: John Smithy Doe
123 Some Street P.O. Box 555 Anytown NC 55555
5551212 5551213 john@doe.com http://www.doe.com but when trying to run it in IE6, is returned the following error: The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- The system cannot locate the resource specified. Error processing resource 'customer.dtd'. Error processing resource 'file:///D:/XMLExcise/xml1.xml'. Line 2, Position 42 So, what does this mean and what's the solution for it? Thanks!
-
how to specify the handle for findfirstfile, etc?I used the wrapper to make my C# program to recognize the datatype win32_find_Data, however, the compiler doesn't accept the IntPtr as the return type for function "Findfirstfile", what's the solution for this? Following is the sample code: struct FILETIME { int dwLowDateTime; int dwHighDateTime; } struct WIN32_FIND_DATA { int dwFileAttributes; FILETIME ftCreationTime; FILETIME ftLastAccessTime; FILETIME ftLastWriteTime; int nFileSizeHigh; int nFileSizeLow; int dwReserved0; int dwReserved1; string cFileName; //mite need marshalling, TCHAR size = MAX_PATH??? string cAlternateFileName; //mite need marshalling, TCHAR size = 14 } [DllImport("kernel32.dll")] static extern IntPtr FindFirstFile( IntPtr lpfilename, ref WIN32_FIND_DATA findfiledata);