|
ever heard about recursive?
That is what you plan to do.
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
Nope, can't say I have but I will go and look it up now Still very much learning my way around ASP.net so thanks for your reply.
O.
|
|
|
|
|
[Edited original post to give you more details]
I think recursion is what I need to use but I need some help with the way to structure it.
I have a MS SQL database table with the following columns:
ID, ParentID, Section, FolderName, Description.
ID is an auto-increment column.
ParentID is a number to show where in the menu structure it should be, i.e. 0 is root, 1 is the next level down, 2 is after that etc...
Section is text, i.e. Technical
FolderName is the link text
Description is just text which is displayed under the FolderName so people know what they will find if they click on the link
The issue I am having is trying to create a dynamic links page. What I want is if I navigate to the Technical section it will display all the Parents which have an ID of 0 and link to their child pages and when I click on the link I will get all Child links with descriptions, this would continue until there are no more links to display.
Any help with this would be very grateful.
modified on Wednesday, May 13, 2009 7:13 AM
|
|
|
|
|
|
Hello.
Exists rss.aspx page
Formed it by calling a Web service with certain parameters, service preference information and, based on these data a valid rss-page.
Have access to the service user is authenticated on the site (exists token)
No token - no access.
This problem occurs if the user wants to receive external RSS clients, without authorization on the site.
Now, without authorization http://localhost/123/rss.aspx redirected to login.aspx
(Web.config:
authentication mode="Forms">
<forms name=".APM" loginUrl="Login.aspx" defaultUrl="~/MemberArea/Default.aspx" timeout="720" slidingExpiration="true" protection="All"/>
/authentication>
)
How to take the form of username / password in external RSS clients?
(example, Gmail rss feed)
As in that case, you can do?
Thanks.
|
|
|
|
|
Hi,
How can i read my Mails from another computer. Below code reads mails from the current system Inbox.
In Outlook.NameSpace.Logon Profile property what value i need to pass to read other Inbox?
Outlook.Application myOlApp = new Outlook.Application();
Outlook.NameSpace ns = myOlApp.GetNamespace("Mapi");
ns.Logon("","",false,true);
Outlook.MAPIFolder inbox = ns.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox );
foreach (Microsoft.Office.Interop.Outlook.MailItem submail in inbox.Items)
{
Microsoft.Office.Interop.Outlook.Attachments ii = submail.Attachments;
for (int j = 1; j <= ii.Count; j++)
{
Microsoft.Office.Interop.Outlook.Attachment aa = (Microsoft.Office.Interop.Outlook.Attachment)ii[j];
Console.WriteLine(aa.FileName);
string mypath = @"D:\FileUpload\" + aa.FileName;
aa.SaveAsFile(mypath);
}
}
Thanks in Advance
|
|
|
|
|
You have no idea about ASP.NET. Sorry.
Imagine if outlook DID expose it's contents to any website. What a grand world it would be.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Coming from some one with a tag line; "Driven to the arms of OSX by Vista." followed directly by "I am new to programming world", I can see how you completely mis-understood the question.
If you looked at his code, you would see he is authenicating with the target first. Second he is trying to access an second inbox other than the default, not 'your' outlook client inbox.
Nice way to try to characterize the question as a flaw with MS products somehow. Please leave your religious beliefs at the door in the ASP.net forum. To my knowledge, ASP.net is still wholly owned by MS.
You obviously posted just to make a snide remark.
|
|
|
|
|
Brian W King wrote: I can see how you completely mis-understood the question.
ROTFL - I guess you misunderstood that the second part of my sig, is a quote from someone. I guess that's a trap for young players.
Brian W King wrote: If you looked at his code, you would see he is authenicating with the target first. Second he is trying to access an second inbox other than the default, not 'your' outlook client inbox
So, he's not trying to connect to a different machine at all ? His question has NOTHING conceivably to do with ASP.NET ? Yes, I did miss that. I thought he was clueless in other ways.
Brian W King wrote: Nice way to try to characterize the question as a flaw with MS products somehow.
Wow - congratulations. You're the stupidest person on these forums, today. And for once, it's someone with a western sounding name.
I was suggesting that it would be *insane* for Outlook to receive my mail, and then broadcast my mailbox over the web. I was suggesting a flaw in the OP's thinking, not in outlook.
Brian W King wrote: . Please leave your religious beliefs at the door in the ASP.net forum.
Thanks for making assumptions. I am writing ASP.NET code right now, all my Macs run Windows XP as well ( because Vista is still crap ).
Brian W King wrote: To my knowledge, ASP.net is still wholly owned by MS
I believe so. It's also the best web development platform going, IMO.
Brian W King wrote: You obviously posted just to make a snide remark.
Why don't you give the OP the answer, if you know it ? As far as I am concerned, his question was how to use the web to connect to a remote instance of Outlook, I gave him the only possible answer, which is that for Outlook to allow that, would be insane. Especially assuming that he wants to use ASP.NET to do it, I assume this is yet another clueless poster who has no idea about the separation between server and client. If I'm wrong, prove it by answer him, NOT by throwing YOUR religious beleifs at me. Some MS products suck, and Macs in general, are better. Get over it. I still use a lot of MS productions, VS 2008, buggy as it is, leaves the Mac dev environment for dead. I presume you've never actually run a Mac, you just like to hate those that do ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I hope you are trying this from windows app not Web app. If it is the later, then you need to understand the basics of asp.net
If it is windows app, then, my friend, you are in the wrong aisle.
In any case,
Usharva wrote: In Outlook.NameSpace.Logon Profile property what value i need to pass to read other Inbox?
Usharva wrote: Outlook.NameSpace ns = myOlApp.GetNamespace("Mapi");
ns.Logon("","",false,true);
Check how outlook is configured and how you talk to your mail server. I am assuming it uses your windows credentials. that is why when you leave it blank, it will impersonate you.
Did you try to use your windows credentials?
|
|
|
|
|
Consider 3 columns in the GridView Control like(ID,Filename,Path). How to loop through and get the Filename, Path Values.
total rows count using GridView1.Rows;
Reg,
Palanivel
|
|
|
|
|
GridView1.Rows[RowIndex].Cells[ColIndex]. is this you are asking ...
|
|
|
|
|
your grid should have a datasource.
if the datasource is a collection then loop through the collection using foreach loop.
|
|
|
|
|
I have a treeview in my page which I need to put a vertical scrollbar. How can i do that? Since there is no inbuild property, I am not sure how to do that inside a ?
Can anybody please give an idea on this?
Thanks in advance.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Why don't you use ASP.NET Panel control with ScrollBars property set to 'Auto' and put around TreeView control.
|
|
|
|
|
Thanks. Let me give a try.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
put ti gridview in the div element
and set the style of div element to overflow-y:scroll for vertical
and overflow-x for horizontal and only overflow:scroll for both
example
<---- your gridview control ------>
<asp:gridview><asp:gridview>
Shaikh Tauhid Hasan
|
|
|
|
|
Hi ,
I'm creating a video gallery. In my gallery I'm uploading videos from my application.
Can any 1 tell me that how can i display video in thumbnail?
Is there any option/code in asp.net so that we can show video in thumbnali?
I don't wan't to create thumbnail image for each video.
If u know the answer or any link, Plz help me.
Regards...
|
|
|
|
|
Check this link[^]
As video is stored in the server, you may need to do video streaming using Silverlight of Flash and display the content in smaller sizes.
|
|
|
|
|
You had better create a thumbnail version of your videos, otherwise the page will take forever to load.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I thought I would post this because it was driving me nuts.
When you are firing a RowCommand from a GridView ButtonField when the ButtonField is of type Image, Page.IsPostBack is false
Button column as image:
<asp:GridView ID="gvMyGrid" runat="server" AutoGenerateColumns="false" Width="200px" >
...
<asp:ButtonField CommandName="Up" ButtonType="Image" ImageUrl="Images/up.gif" />
</Columns>
When you are firing a RowCommand from a GridView ButtonField when the ButtonField is of type Button, Page.IsPostBack is true
Button column as button:
<asp:GridView ID="gvMyGrid" runat="server" AutoGenerateColumns="false" Width="200px" >
...
<asp:ButtonField CommandName="Up" ButtonType="Button" Text="Up" />
</Columns>
Code Behind:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
'This code will be reached on first load and also when the user clicks a Gridview ButtonField Image!!!
End If
End Sub
Protected Sub gvMyGrid_RowCommand(ByVal sender As Object, ByVal e As GridViewCommandEventArgs) Handles gvMyGrid.RowCommand
...
End Sub
|
|
|
|
|
what ur trying to ask quest is not fully completed
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
It is not a question Its just some information that I thought would be useful since I think it is a bug with the .NET framework.
|
|
|
|
|
From what I understand, there can be only on web.sitemap file.
However if I want to create a master page with two menu's, one horizontal menu and one vertical menu at the same time,
then how do I construt it?
Should one of the menus be a static menu while the other menu's datasource be web.sitemap?
<- Menu1 ->
^ -----------------------
^ |contentpage contentpage|
M |contentpage contentpage|
E |contentpage contentpage|
N |contentpage contentpage|
U |contentpage contentpage|
2 |contentpage contentpage|
^ ----------------------
My Requirement
Horizontal menu1 should show ==> Home, Blogs, View Photos
Vertical menu2 should show ==> Write Blog, Edit Blog, Add Photos
Please help me out!
Thanks,
NetQuestions
|
|
|
|
|
Hi there,
I am not sure where did you get your info of couldnt have multiple sitemaps, but its not true, you can and you have to specify multi sitemap provider therefore, here is a link that will help you:
http://msdn.microsoft.com/en-us/library/ms178426.aspx[^]
Sincerely Samer Abu Rabie
Imagination is more important than knowledge !
|
|
|
|