|
RLMcCutchen wrote: I do want the XML appended but the way its doing it its adding a 2nd root element which cant happen so I'm trying to figure out how to add the other users as they login without adding multiple root level elements.
How are you adding the users? From your code I presume that you have a dataset which would already contain the details of the first user, if you add a new row to the dataset and fill it with the required details and then do a writexml you should be having an xml file with a single root element and both the users details inside it. Looks like the logic your using is different from the one I have mentioned and thats why your getting multiple root elements.
Once you get back home, you can post the code and we could find out the issue.
|
|
|
|
|
I have no problem while coding ASP.Net page but when it comes to create an attractive page in terms of look and feel ( i am a failed man). I donot know how we can graphically design a web page in visual studio 2005(ASP.Net). For e.g. i have 3 images; how can i shown these pages in the head,middle and foot of a ASP.Net page.
Also,please provide some good links for grahically desiging a ASP.Net page if possible.
X
|
|
|
|
|
My name is Jatinder and I work for Microsoft on the TechEd event. I generally read IT blogs to keep up with what is going on in the industry and decided to jump on in with a little plug for TechEd 2007 (June 4 – 8). This year we’ve dedicated 50% of the event content to developer specific tools with deep technical training that covers Visual Studio® 2005, Windows Vista™ development and the .NET Framework. You can also get in-depth information on building software using Visual C++®, Visual Basic® and Visual C#®. The incredible amount of information you can learn at TechEd is awesome but it is also an incredible place to network and let loose a little. The event is in Orlando, FL this year so the attendee party is at Universal Studios Islands of Adventure and the place is reserved for TechEd attendees only! Trust me, these parties are a blast. If you decide to go you should register now before it sells out like it did last year…we are also offering a bit of an incentive, all registrations before May 11th are entered to win either 1 of 5 Xbox 360 Elites (killer graphics) or 1 of 5 Amex gift cards (Disney ain’t cheap!) www.microsoft.com/teched
Jatinder Singh
|
|
|
|
|
Whats wrong with you? This is the 4th time your posting this message. I am sure Microsoft doesn't have people who spam the forums like this. Kyle please stop this
|
|
|
|
|
i have created a number of combo boxes according to my need.no i want to save the changes when any one click update button,but here the control did not find by findcontrol function.
Dim i, j, totc As Long, FcNo As String, cmbcat As Object, fid As ArrayList
catarry = New ArrayList
catarry = CType(ViewState("catgs"), ArrayList)
totc = CLng(ViewState("totcts"))
For i = 0 To totc - 1
'for category combo box
'cmbcat = New Object
'cmbcat = CType(Me.FindControl("catpp" & catarry(i * 3 + 1)), DropDownList)
'cmbcat = CType(Me.FindControl("catpp" & catarry(i * 3 + 1)), DropDownList)
'cmbcat = CType(Me.FindControl("catpp" & catarry(i * 3 + 1)), DropDownList)
If Not CType(Me.FindControl("catpp" & catarry(i * 3 + 1)), DropDownList) Is Nothing Then
FcNo = CType(Me.FindControl("catpp" & catarry(i * 3 + 1)), DropDownList).Text
End If
StrQry = "update category set cat_order=" & FcNo & " where cat_no=" & "catpp" & catarry(i * 3 + 1)
'Now check for all forums of category
fid = New ArrayList
fid = AllFunctions.PopToarraylist("select Forum_No from Forum where cat_no=" & catarry(i * 3 + 1), 1)
For j = 0 To fid.Count - 1
cmbcat = New Object
'cmbcat = CType(FindControl("frmpp" & fid(i)), DropDownList)
'cmbcat = CType(FindControl("frmpp" & fid(i)), DropDownList)
'cmbcat = CType(FindControl("frmpp" & fid(i)), DropDownList)
If Not CType(Me.FindControl("frmpp" & fid(i)), DropDownList) Is Nothing Then
FcNo = CType(FindControl("frmpp" & fid(i)), DropDownList).Text
End If
'cmbcat.Text
StrQry = "update Forum set Forum_Order=" & FcNo & " where forum_no=" & fid(i)
AllFunctions.UpdateQry(StrQry)
Next
Next
|
|
|
|
|
I am using a GridView and i connected it to an SqlDataSource to display data, but the data i want to display is from multiple tables and the GridView lets u select data just from one table, How can i solve this porblem.
Thanx in advance for ur help
yasso
|
|
|
|
|
You would need to query the data together. Why are arent you just specifying your datasource in your webconfig file, loading the datasource, and then querying out what you need with a SQL statement?
|
|
|
|
|
I have a textbox that should be validated thats on a webcontrol.
The webcontrol is on a step in a wizard control.
When I click the next button the validation for the textbox does not fire.
Is there a way to make the validation just for the webcontrol on the step in focus fire ?
|
|
|
|
|
Hi friends
I have one string str="aaaa,bbbb,cccc,dddd,eeee,ddddd";
I want to count char "," from the above string
plz any one help me
thanks in advance
pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Imran Khan Pathan wrote: I want to count char "," from the above string
Means you want to count number of comma or words in that string .
i have solution for counting chars in the string excluding , . and space
<br />
string str = "edasdsadsadasda,..sdasdasd..asdsad";<br />
char[] sep={',',' ','.'};<br />
string[] strArray= str.Split(sep,StringSplitOptions.RemoveEmptyEntries);<br />
int length = 0;<br />
foreach (string SingleString in strArray)<br />
{<br />
length += SingleString.Length;<br />
}<br />
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Just count them:
int cnt = 0;<br />
foreach (char c in str) if (c == ',') cnt++;
---
single minded; short sighted; long gone;
|
|
|
|
|
As per our requirement i have created a word report with password.
And i am exporting it to the client system.
It works fine in some system. But in some client system the gif files are not correctly loaded. For the same when checked up in the Server the images are correctly loaded(i commented the code of deleting the file at the server). But there is some problem while exporting the same to the client Ip.
Actually while creating the document at the server i am inserting a table containing that gif images also with some formatted headningd in it....
And that table is made as a header for the word document...
I am just not able to figure out...what could be the problem ?
If any body could provide any tips or suggestion i can sychronize that code with thread....because of this that is getting pending....
Please help....
-- modified at 9:19 Friday 4th May, 2007
|
|
|
|
|
while do sorting the header becomes hyperlink so we click and sorting is achieved .But i dont want it to become hyperlink .Instead i want the colour of
the font to change or anything apart from hyperlink. can anyone help me out it is urgent.
Thanks in advance.
|
|
|
|
|
Well then you need to create a template column. Edit the header cell with your own control and then add code behind to sort.
|
|
|
|
|
please tell me how it is done. any links exhibiting how it can be done.
thanks
-- modified at 9:26 Friday 4th May, 2007
|
|
|
|
|
Can some body help me with the steps for deployment of a webapplication.
Thanks........
|
|
|
|
|
Hi all,
I have this big problem with hyperlinks I would appriciate any help please.
My web site has two datagrids on the same page. And one has a list of names of the users which are in form of hyperlinks. The second datagrid is for inserting data, and when a user inserts data I used 'Windows Authentication' for names in one column called Name.
Now this is how it's supposed to work: When any user want to see data about a particular user it's a matter of selecting his name and the data about the selected individual should be the only ones to be shown.
I got some examples on Google but they all seem not to be working.
Tha's why I'm here for help please!
Here is where I've reached:
<ItemTemplate> <asp:HyperLink id="HyperLink2" runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,"TeamOperation")%>' NavigateUrl='<%#"../Dash_Board/DashBoard.aspx?Name="+DataBinder.Eval(Container.DataItem,"TeamOperation")%>'>HyperLink
</asp:HyperLink>
</ItemTemplate>
I really appriciate all the help.
Thanks.
|
|
|
|
|
Standard question #1:
What do you mean by "not working"?
Use Server.UrlEncode to encode the name value before putting it in the url.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi Guffa,
Been away for a while but I'm now back. What I ment by not working, when I select the hyperlinks text the semilar columns are not selected at all nothing changes. that's where my trouble is situated.
Thanks.
|
|
|
|
|
Hi,
1) I have a query on Session Variable management. When the IIS resets, will the Session needed to be reinitialize if the mode we put as Inproc? I read like this in one of the article of Session Management. But if the mode is in OutProc or SQL Server, session willnot go off and there is no need to reinitialize it again.
2) When the application variable will reinitialize? Once we declared an application, will it required to be reinitialize?
Please advice.
Thanks
Meeram395
|
|
|
|
|
1) is correct
2) when you re-start IIS the first user to access the web site with initialize the application variable. There is an application_start event in the global.asax that you could do this initialization.
Hope that helps.
Ben
|
|
|
|
|
hi. i need to inherit a asp.net page into another asp.net page to increase the reusabilty of the code and controls. but cant find the way to do it. please let me know the code to do so.
ronak
|
|
|
|
|
ronaktamboli wrote: i need to inherit a asp.net page into another asp.net page to increase the reusabilty of the code and controls.
Inherit ???? Do you mean usercontrols ?
|
|
|
|
|
Calling Page:
-------------
Private objDataSelWork As DataSelectionWorkflow = New DataSelectionWorkflow
here objDataSelWork is the objectname to use the properties of called page in the calling page.
Called page:
-------------
Public Class DataSelectionWorkflow
End Class
kishore kumar Manikonda
Software Developer
|
|
|
|
|
I think you can't do that
Did you want to use the current page controls in another page
then you you have to crate a usercontrol ....
Google Usercontrol that will help you
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|