16,008,075 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Sriram Mani (Top 33 by date)
Sriram Mani
19-Aug-15 2:23am
View
Thanks for the solution Maciej. The solution which Richard provided earlier in this post actually worked fine in my scenario.
Sriram Mani
18-Aug-15 3:21am
View
Oops. Sorry Richard. My bad. I tried as xmlData.RemoveNodes() rather than nodes.RemoveNodes(). This actually works. Thanks for the solution!
Sriram Mani
18-Aug-15 2:44am
View
Thanks for the Suggestion Richard. I don't need to remove the nodes. Rather I need to remove the contents (or values) inside the nodes. I already tried with Remove nodes as the first step. But the requirement is to retain the nodes in the same hierarchy and to remove the contents alone. In my case, the contents are binary data which doesn't make any sense to read or to be displayed. But retaining the node is essential, since the node contains information about attachment like the attachment name and size as attributes.
The reason why I used SetElementValue is that I could explicitly set the attachment value to be null clearing the binary data inside attachment nodes and still retains the hierarchy and attributes. But the problem is, it clears the contents of first child alone. I have more than one attachment nodes and comment_attachment nodes inside a parent node, which also should be cleared.
Sriram Mani
18-Aug-15 2:35am
View
Hi Maciej. Sorry if the description made a confusion. I wanted the node's value to be null. Not the node's name to be null. Suppose for Ex: <attachment name="blahblah.doc">xxxxxxxxxyyyyy....xxxyyy</attachment>. I want it to be <attachment name="blahblah.doc"></attachment>
Sriram Mani
20-Jun-15 5:27am
View
I'm trying to attach a file to my application by using the "Open with"(Right click on a file and use the Open with option to open the file with our application) feature. I have added the code to handle this event. But the share target event is not triggered. So Im not sure whether the ShareTarget event can be used in Windows Surface app.
Sriram Mani
14-Apr-15 11:30am
View
Hi Mario,
XElement was the answer.
XElement el = XNode.ReadFrom(reader) as XElement;
if (el.Element(searchName).Value == IDTextBox.Text)
break;
else
el = null;
This worked like a magic without any exceptions!
Also it provides a good way for manipulating elements inside the issue node with LINQ-XML concepts.
Sriram Mani
14-Apr-15 5:23am
View
The same code was working fine in VS2010. I haven't tested it again in VS2010 since I have migrated the project to VS2013. In VS2013, even after deploying the file into IIS, I'm facing the same exception.
I can try to upload or mail the Project as a ZIP and a sample XML file, but unfortunately not the actual file in which I'm facing this issue since it contains client information and i'm not allowed to share this outside. The sample XML may not be useful since the issue will not be replicated in it.
The main reason for the problem as per my guess is the presence of attachments (files) inside issue nodes which are written as huge Binary strings. When multiple MB sized attachments are inside the issue node, it faces the memory problem while reading the inner XML of issue node.
Is there any alternative way of traversing the issue node instead of using ReadInnerXML method? Like a line by line read?
Sriram Mani
13-Apr-15 6:40am
View
Hi Mario,
Apologies for the delayed response. I figured out the reason why it is skipping the nodes. The XML setting IgnoreWhitespace is set as true, which made the code to skip some nodes. I made it as false. Then it worked.
Also I have another clarification. I was using VS2010 when started writing the code. I used a big XML file sample weighing about 2.7GB and it traversed well. I recently updated to VS2013 and tried searching. It throws out of memory exception at
currentIssueNode = reader.ReadInnerXml();
The server is IISExpress. Any ideas how we could overcome this problem?
Thanks in advance.
Sriram Mani
6-Apr-15 5:07am
View
Thanks for the suggestion Maciej. As Mario said in his comment, using Linq feature might pose a problem since the file size is huge.
Sriram Mani
6-Apr-15 5:04am
View
Thanks for the Code Mario. I tried the code you given. It is working fine. But the loop is skipping out alternate issue (mostly even) nodes. For example, If i have a list of issue nodes like 1,2,3,4,5,6 It is reading 1,3,5 and skipping each even numbered node. I think that at some point, the loop is reading data twice such that it reads consecutive two issue nodes, ending up skipping the second one. I'm not sure if this is the case. Could you please share your comments on this? Thanks in advance
Sriram Mani
7-Jan-13 6:03am
View
Thanks Syed Ali Raza,
I'm afraid that you might have posted back the question which i asked.
Sriram Mani
7-Jan-13 4:54am
View
Thanks Graus,
I'll start learning them. If you have had any ideas about this exporting stuff, please guide me.
Thanks in advance.
Sriram Mani
7-Jan-13 4:49am
View
Thanks ranjitwaje. I'll post the solution if i find one.
Sriram Mani
7-Jan-13 4:43am
View
Graus,
I'm learning to develop an ASP.NET site.. and completed some level in it. Trying to move to the new level(of learning ofcourse).
Sriram Mani
7-Jan-13 4:36am
View
Graus,
I'm developing an ASP.NET website. I just wanted to have the functionality of exporting data from a gridview to excel.
Sriram Mani
7-Jan-13 4:34am
View
Graus,
Just to learn.
Sriram Mani
7-Jan-13 4:31am
View
Thanks ranjitwaje,
I'm using Access Datasource to fill the Grid view. Is there any possibilities to do exporting with that..?? Not by using Datatable or Dataadapter etc.,
Sriram Mani
27-Nov-12 23:58pm
View
RK,
Your solution is working fine. Thanks. Please suggest some solution if i have multiple elements in a single cell in a row. Say a template field having radiobuttons, checkboxes and textboxes. Is there any possibilty to get the specific element value in a cell with multiple elements.
Sriram Mani
27-Nov-12 23:43pm
View
Thanks Santosh
Sriram Mani
1-Nov-12 8:55am
View
Thanks RK,
I'll try this and let you know the result. Thanks again.
Sriram Mani
17-Oct-12 2:45am
View
thanks adi,
Ill go through these links.
Sriram Mani
17-Oct-12 2:44am
View
thanks sinhasourabh,
would you mind explain me a little briefly, because im new to c# and asp.net.
Sriram Mani
16-Oct-12 8:26am
View
the process which i'm willing to obtain is similar to this as simple as possible.
http://blueicestudios.com/chained-select-boxes/
Sriram Mani
16-Oct-12 7:28am
View
thanks knvsatyanarayana,
all the links you provided are Good and useful.
Sriram Mani
24-Sep-12 8:13am
View
Deleted
Thanks for all who spared their precious time in answering me. I finally had it working and it was very simple. At first d textboxes are not known inside the c# code. i right clicked each text box and clicked view code which opens the c# code page. there is used d syntax txtboxname.Text stmt to retrive it and used the query Insert into tablename values ('"+txtboxname.Text+"'....); to accomplish the insertion.. and it worked fine.
Sriram Mani
24-Sep-12 1:40am
View
Thanks for the reply Marcus, and that's what i'm asking for... i need the code in c# for getting the input data from the form and save those in a table inside a MS access database.
Sriram Mani
23-Sep-12 9:30am
View
Marcus, i used grid view for viewing the data from database. but im not sure whether i can do the same for inserting back in a database.
Sriram Mani
22-Sep-12 0:04am
View
thanks for the reply sandeep, ill surely go through these... thanks a lot...
Sriram Mani
21-Sep-12 23:59pm
View
i googled it a lot.. i got many answers.. but most of it are in vb rather than c#. i got some results in c# too.. but they're given for normal application of c# but not to asp.net page.
Sriram Mani
21-Sep-12 23:56pm
View
thanks for the reply wes..
im using c# language. so far i used grid view for displaying data from a ms access database and it works fine. now i created a simple web form in asp.net where in the user gives form input. that input should be inserted into a table in that database. i have no idea what to use.... i'm using visual studio 2008 ..
Sriram Mani
21-Sep-12 23:55pm
View
thanks for the reply josh,
im using c# language. so far i used grid view for displaying data from a ms access database and it works fine. now i created a simple web form in asp.net where in the user gives form input. that input should be inserted into a table in that database. i have no idea what to use.... i'm using visual studio 2008 ..
Sriram Mani
21-Sep-12 9:58am
View
i created hyperlink field instead of databound field using same datasource...
Sriram Mani
20-Sep-12 2:54am
View
Thanks for the reply harshad. if you don mind can you post the code for making a record data in a field as a hyperlink.
this is my code..
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataSourceID="JOBLISTDS"
onselectedindexchanged="GridView1_SelectedIndexChanged" Width="1000px"
AllowSorting="True" Height="157px" style="margin-top: 0px">
<columns>
<asp:TemplateField HeaderText="JobID" SortExpression="JobID">
<edititemtemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("JobID") %>'>
<itemtemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("JobID") %>'>
<HeaderStyle BackColor="#6699FF" Font-Bold="True" />
<asp:BoundField DataField="JobTitle" HeaderText="JobTitle"
SortExpression="JobTitle">
<HeaderStyle BackColor="#6699FF" Font-Bold="True" />
<asp:BoundField DataField="Organization" HeaderText="Organization"
SortExpression="Organization">
<HeaderStyle BackColor="#6699FF" Font-Bold="True" />
<asp:BoundField DataField="JobLocation" HeaderText="JobLocation"
SortExpression="JobLocation">
<HeaderStyle BackColor="#6699FF" Font-Bold="True" />
in this i want to set a hyperlink for datafield.. for example "JobLocation". the Navigationpage will be another html document
Show More