|
Hi guys i have one query,
I created textboxes dynamamicaly. when i select 2 in dropdown list two text boxes will come same i will select 100 or more. that i created, now i want to how to validate those text boxes? i done server side vaditation but i want to client side validation. so please help me.....
Thanks advance
praveen kumar....................
Praveen Kumar.R
|
|
|
|
|
I think you need to post this in the ASP.NET forum. Anyway, why don't you create validation controls dynamically too. On the server side you can access the dynamic textboxes client IDs and set up your validation controls accordingly to your needs.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Hi guys
Can anyone tell me where I could obtain a copy of XMLClassGenerator.exe?
I have tried the net but no luck.
Regards
Carmelo
|
|
|
|
|
Try searching with "XML Code Generator".
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Thank you for that George I have already tried but it does not come up with the one I want.
I am hoping someone might have it amongst there collection of utilities.
Regards
Carmelo
|
|
|
|
|
say i have a node pointer
::IXMLDOMNodePtr node;
this node shd be like:
<nodename visible="true">datahere
how do i set the string datahere, what do you call this one? thanks!
nathan
|
|
|
|
|
Hi I am displaying using XSL in table,
where some of column values i will be it in xml dynamically. I have given
the border size as 1 and color as black. some times i am getting the values as empty or null the the same will be updated in XML, but during display those nulled or emptied values are not displaying with borders. web borwser control completing eleminating the cell border. Is ther anyway to do it?
Thanks
srini
|
|
|
|
|
Try to replace null with
Regards,
Arun Kumar.A
|
|
|
|
|
I lost a few hours to this problem this morning, and after I discovered the workaround I felt like ranting, but now I've cooled down a bit (and had a beer).
Anyway... I have an XML file with embedded stylesheets (XSL). One of these stylesheets transforms the XML to CSV. An important part of this transform is the insertion of linefeeds, I do this with <xsl:text> </xsl:text> , and it worked fine until I started using an XmlReader to perform a validated read.
This works; the resultant XmlElement's text is a linefeed.
System.Xml.XmlDocument doc = new System.Xml.XmlDocument() ;
doc.Load ( @"\XMLtest.xml" ) ;
This doesn't work; the resultant XmlElement's text is empty.
System.Xml.XmlDocument doc = new System.Xml.XmlDocument() ;
System.Xml.XmlReaderSettings rs = new System.Xml.XmlReaderSettings() ;
(set the XmlReaderSetting's properties.)
doc.Load ( System.Xml.XmlReader.Create ( @"\XMLtest.xml" , rs ) ) ;
So then, looking through the help for XmlReader I see:
XmlReader objects created by the Create method expand all entities automatically.
So I assume that the entity gets expanded, then the linefeed (whitespace) is determined to be non-essential and removed, leaving an empty value.
Looking further I see:
If you must expand entities on request (readers created by the Create method expand all entities), or if you do not want your text content normalized, use the XmlTextReader class.
Now wait a minute! Isn't the XmlTextReader, not recommended practice?
In the Microsoft .NET Framework version 2.0 release, the recommended practice is to create XmlReader instances using the System.Xml.XmlReader.Create method.
XmlReader objects created by the Create method are, by default, more conformant than the XmlTextReader implementation.
So the workaround I chose is:
System.Xml.XmlDocument doc = new System.Xml.XmlDocument() ;
System.Xml.XmlReaderSettings rs = new System.Xml.XmlReaderSettings() ;
(set the XmlReaderSetting's properties.)
doc.Load ( System.Xml.XmlReader.Create ( new System.Xml.XmlTextReader ( @"\XMLtest.xml" ) , rs ) ) ;
It gets the job done, but it seems odd that there isn't a property in the XmlReaderSettings to do this. I tried the IgnoreWhitespace and CheckCharacters properties but to no avail.
My question is: Does .net 3.0 solve this issue? Does anyone else have cleaner workaround?
|
|
|
|
|
I think you may need to use the xml:space attribute in you XML document. It has two values, "default" and "preserve". "default" value tells the XML processor to handle space as necessary. Also, this is the default behavior of the processor. "preserve" means to maintain whitespace as is. Also, is not an entity, and > is an entity.
Example:
<poem xml:space="preserve">
... all whitespace will be preserved in all child nodes(remember text is considered a node) ...
<poem/>
Unfortunately, I found the following: http://www.stylusstudio.com/xmldev/200307/post70060.html#[^]
-- modified at 20:16 Friday 1st June, 2007
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
I'll give that a try, thanks.
|
|
|
|
|
George L. Jackson wrote: Also, is not an entity, and > is an entity.
It's character reference[^]! Awesome, I didn't know there is difference between them till now.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
hi,
How can i create XSD from XML document programmatically in C#?
Also is there a tool available to achieve this?
|
|
|
|
|
If you have Visual Studio 2005, you just open up an XML file and there will be a XML Menu with a menu item, "Create Schema". Also, a toolbar button to create a schema may also appear. I believe this works in Standard and above. However, I am not sure about Express.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
AmitG77 wrote:
Also is there a tool available to achieve this?
XML Schema Definition Tool (Xsd.exe)[^]
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
I am trying to create an Excel file with the XMLTextWriter class. I am successfully able to write the excel file with data from dataset in it. But the problem is that the string data being written in Excel is not visible fully in the cells.
I tried the option of AutoFitWidth="1", But it does not comes into effect for String data. I also got some clue for using System.Drawing.Graphics.MeasureString method. But I am not able to use it in Web project.
Can anyone guide me as to how can I fit the width of the string text in excel cell programatically.
If my mind can conceive it, and my heart can believe it, I know I can achieve it.
|
|
|
|
|
I don't know much about spreadsheetML, but if I recall autofit is a property of the column and not the cell. Are you setting it as a column property?
Sorry, but if that doesn't fix the problem I really don't know what will. I don't normally jump into a topic I don't know that well, but since no one else has answered I thought I'd throw my hat in.
|
|
|
|
|
I've been using XML and schemas for a while now, but have never really read up on it or been shown officially how to use it. Does anyone know of a good book on creating Schemas? Or good concise info on the net about it?
While you're at it, can anyone point me in the direction of how to make up patterns (simple and complicated) in a schema, so that the xml data can be accurately validated against it.
Thanks in advance,
Jugs
|
|
|
|
|
How can I retrieve the data from XML file using SQL query is there any
Data driver like ODBC or other tool , application,….
Please advice
Charbel
|
|
|
|
|
|
HI guys,
I have one query, I have one URL using that URL how can i send XML request and get XML response? is it possible? if it is possible please tell me how? i am so new for this concept so i dont know how work. please help me.. iam working in asp.net with Vb 1.1 so please help me..
Thanking you nad regards,
Praveen Kumar..
Praveen Kumar.R
|
|
|
|
|
|
Hi guys,
I'm using XmlFormView control to display an InfoPath form inside a custom aspx page. In order to load the form I can use XmlLocation which rapresents an Url to the .xml file. Does anyone know if it could be possible to inject Xml from memory (for example from a memory stream) instead of accessing the xml file? In other words I need to have the property XmlFormView.XmlForm setted without setting the XmlLocation property.
Thank you in advance.
Stefano
|
|
|
|
|
Hi
I am doing an application in which I am using a XML file to populate a datagrid.
In that XML file I have one like.....
<>
1.To generate leads efficiently and profitably.
2.To ensure that all details are collected in one call.
3.To provide email and chat support.
4.To manage Work Basket reports as required.
5.To meet targets for both quantity and quality.
<>
When I am trying to populate this column onto datagrid, all these lines or sentences are getting combine and displaying like a paragraph.
I want to know how to format this column to get them in the a new line
Thank u
Chandu
|
|
|
|
|
K V S Chand wrote: populate this column onto datagrid,
What does that mean? Are you using DataBinding?
led mike
|
|
|
|