|
|
I have an xml file, with "any number of page nodes" each with 3 certain child nodes.
With the XMLDoc, I have read the contents of the pages' 3 child-nodes for purposes of populating a form with their values.
I added a "+" sign at the end of each of the 3 child nodes as I pass them into a string variable so that I can later split them into an array.
I know a "regular" string is passed the repective dimension of the recently split array, i.e.
Dim Page1 as string = split(AllPages(0), "+")
***********************************************************
Whats boggling my mind is the matter of the number of pages in the XML can be any number. I am able to pull the number of pages in that user's XML file via code, but I can not declare
Dim Page(x) as string = split(AllPages(i), "+")
because Page(x) is now an array which is not what it needs to be. It needs to be an ordinary string, but since I do not know how many pages a user has in his XML, I do not know how to dynamically create ordinary string to pass the split array. I know the code has to be:
Page1 = split(AllPages(0), "+")
Page2 = split(AllPages(1), "+")
and so on, but again, I do not know how many pages therefore I cannot declare,
Page1 as string
Page2 as string
etc...
*************************************************************************************
Anyone have a clue on what I should do? C# is fine, but VB is preferred. Thanks !
|
|
|
|
|
crystal9154 wrote: I added a "+" sign at the end of each of the 3 child nodes as I pass them into a string variable so that I can later split them into an array.
Your code is messy. You could use XMLDocument.GetElementsByTagName() or XPath query to get the child nodes.
|
|
|
|
|
http://www.codeproject.com/KB/webforms/JavaRowSelect.aspx - it is a good example that I need, but I have GridView with ItemTemplate (CheckBox column) and I don't like call onclick-event when user checked any row. How can I detect on what column user clicked?
|
|
|
|
|
You could asked this query on the 'Article's discussion forum' for a better response with respect to the article.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
All the world's a stage,
And all the men and women merely players.
They have their exits and their entrances;
And one man in his time plays many parts... --William Shakespeare
|
|
|
|
|
Hello
I do web form into the website to send a mail message
but an error will occur when i click the submit button.
This my code:
"<%@ Language="VBscript" %>
<% Option Explicit %>
<%
On Error Resume Next
Dim message, NewMailObj
message= "Name: " & Request.Form("firstName") & " " & Request.Form("lastname")
message = message & vbcrlf & "<br /> email: " & Request.Form("email")
message = message & vbcrlf & "<br /> Level of Education:" & Request.Form("Level of Education")
message = message & vbcrlf & "<br /> comments: " & Request.Form("comments")
'Response.write "Message: " & message
Set NewMailObj=Server.CreateObject("CDONTS.NewMail")
NewMailObj.From = "FeedbackForm"
NewMailObj.To = "info@ihacademy.net"
NewMailObj.Subject = "E-mail from the Website: " & Request.Form("firstName") & " " & Request.Form("lastname")
NewMailObj.Body = message
NewMailObj.BodyFormat = 0
NewMailObj.MailFormat = 0
NewMailObj.Send
Set NewMailObj = nothing
'response.write "Error: " & Error.Description
If Error.Number <> 0 Then
Response.Redirect ("success.htm")
Response.End
Else
Response.Redirect("error.htm")
Response.End
End If
%>
"
Assaf
|
|
|
|
|
Assaf82 wrote: an error will occur when i click the submit button
What is the error?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
All the world's a stage,
And all the men and women merely players.
They have their exits and their entrances;
And one man in his time plays many parts... --William Shakespeare
|
|
|
|
|
Please provide the error message you are getting?
Is the "CreateObject" throwing an error? If yes, then check if the correct class name is referenced in the CreateObject method.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
HI
anybody has a sample program (with VB or JAVA) to read from an XML file to a simple form (include a text field and a check-box or radio-button) and load dat of these controls and then save changes again on XML file by pressing a "save" button.
I need for old ASP (not ASP.NET)
thank you
|
|
|
|
|
LeilaBayat wrote: ASP (not ASP.NET)
Questions about that goes in the web development forum.
LeilaBayat wrote: with VB or JAVA
Neither is used in ASP. I suppose that you mean VBScript or JScript.
Despite everything, the person most likely to be fooling you next is yourself.
modified on Sunday, June 8, 2008 6:15 PM
|
|
|
|
|
|
hi there!
i' having i think a little probleme with my iis.i' ve a;ways used my visual studio 2005 embbeded web server and now i'm trying to use
it but i'm facing a weird error statement like "Failed to access iis metabase".
I'll try to describe my iis configuration as precise as possible.
first visual studio is on and my project files are on E:\Visual Studio 2005\projects ,E:\Visual Studio 2005\Templates,
E:\Visual Studio 2005\WebSites.
the iis default web site properties
web site
-description:default web site
-Ip address : 127.0.0.1
- tcp port :80
home diretory
- local path:c:\inetpub\wwwroot
-combo box checked:read, write,directory browsing,log visits,index this ressource
-application name:default application
-starting point: default web site
-execute permission: script only
-application protection:Medium(pooled)
Directory security
-anonymous access checked
-username :YEVI-61394B25B9\Administrator
-allow iis to control password checked
-integrated windows authentication checked
asp.net
version:2.0.50727
virtual path:default web site
file location: c:\inetpub\wwwroot\web.config
file creation date : 06/08/2008 09:46:13 (just set default language to c#, ithnik by default the authentication mode is set to windows)
file last modified :06/08/2008 09:46:13
my site iw propertis are quite the same
home diretory
designated directory checked
- local path:\iw
-combo box checked:read, write,directory browsing,log visits,index this ressource
-application name:"it is empty"
-starting point: <default web="" site="">\iw
-execute permission: script only
-application protection:Medium(pooled)
Directory security
-anonymous access checked
-username :YEVI-61394B25B9\Administrator
-allow iis to control password checked
-integrated windows authentication checked
asp.net
version:2.0.50727
virtual path:default web site
file location: c:\inetpub\wwwroot\iw\web.config
file creation date : 06/08/2008 09:46:13 (just set default language to c#)
file last modified :06/08/2008 09:46:13
i just created one page site with one labels and 1 button.the same thing works with the the embbeded server.here i'm having this:
Failed to access IIS metabase.i included the page.thanks for suggestion
Ps:by the way in my search i just found stuff code to register the iis.
this:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>asp.net_regiis" don't know if it secure i'just want to have people i trust opinion(i mean you fellas).
eager to learn
|
|
|
|
|
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>asp.net_regiis -i"
Yes, it is secure.
When you are running the 1.1 and 2.0 framework simultaneously then as you stated problem comes into the picture.
No problem at all just go ahead and install it (aspnet_regiis -i).
Parwej Ahamad
R & D with IIS 5.0/6.0
|
|
|
|
|
|
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
while executing this file default or any other file. it is displaying the error message. i am display the error message also. what is problem i could not understand. please help me out to solve this problem . this problem is encountered to all the files. the error message is.
Server Error in '/Websites' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type '_Default'.
Source Error:
Line 1: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
Line 2:
Line 3: <%@ Register Src="header.ascx" TagName="header" TagPrefix="uc1" %>
Source File: E:\WebServices\Webservices Security\Websites\default.aspx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0
|
|
|
|
|
The problem is that the class containing the code behind for the page doesn't exist.
You have to compile the code before running it. If you have deployed the files to a server, you have to include the compiled code (bin folder) also.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Just make sure that the page with name default exists in your website.
If this page exists and you are still getting the error, then please let us know..
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
1) The virtual directory should have been marked as an application in IIS.
2) The application should have a bin folder with the .CS/.VB files built before using the application.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
All the world's a stage,
And all the men and women merely players.
They have their exits and their entrances;
And one man in his time plays many parts... --William Shakespeare
|
|
|
|
|
Hi Friends,
I have implemented for ASP .Net Ajax in our web application. Now it is working fine.
My problem is, I have implemented a page with required field validator. Now the required field validator is working fine for when first time loaded. The second time is not working for validate empty value.
Please help me urgent for how to change our source in my application.
Thanks in advance
Rameshkumar Thirumalaisamy
|
|
|
|
|
|
Hi!
I'm newbie in ASP.NET world.
My question is:
I have a web page (ASP.NET 2.0 with code behind file C#) with some controls, like text boxes, drop down lists and so on.
I'd like when an user change any data in any control, and then he/she try to close the browswer or try to leave the web page without save the data, it appear a message box warning that he/she will lose the changes.
Note: Script options doesn't work because I'm using master pages and scripts can't be inserted in content file. So I need a code-behind solution.
Do you have any idea?
Thank you in advance.
--
[Adrián Córdoba]
|
|
|
|
|
(1) As per my perception, we can use scripts in Content page.
Suppose that you have written few methods in js file called "myjs.js" and then you can access all methods in content page.
First add this file in master page like below tag:
<script language="JavaScript" src="myjs.js"></script>
(2) Script is only a way that we can handle achieve your requirement
< body onbeforeunload="alert('Closing');">
this is strait way that you shows alert on browser close event.
(3) If wants that if something change on your page, then in that case you need to set flag in cookies and with option two (onbeforeunload) event we can check whether something is change or not and then on the basis of that show the alert message.
Parwej Ahamad
R & D with IIS 5.0/6.0
|
|
|
|
|
|
I'm using grid view
in each row I'm using details link to show complete details about members.
when I click on details link then this row only should be hide and
I want to expand gridview and I want to show all member details in that expanded part and other grid view rows will be same.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Use javascript to show/hide a div containing your detals. You may find this easier to achieve if you use a repeater.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|