|
Thanx for your response .
sir,
my application is running fine if any authorized user enters.Prolem is that if i run my application and witout enter anything in user/password filds i click on register user link,it wont redirect me to register page.
if a enter a correct user in the fields and do login it goes to the secret page and now i come on login page and if now press the link register now it reirect me to register.aspx.
why it'snot running for the first time.?
pls rply...thanx
|
|
|
|
|
Hi all,
I have a gridview with a list of names. My code allows me to select and highlight all names and save to database. However I want to be able to de-select a particular row; say I select all 100 Records but I later decide I don't want to select/save a particular record and I want to select only 99 Records.
For this I've added a LinkButton Control into a Template Field of the Gridview. I want when this button is clicked to change the color (de-select) this particular row.
However I am not able to get a reference to the row which I want to cancel. I know if I let the user click the autogenerated select button I can get a reference to it using (grdView.SelectedIndex) but I don't want to do this. I want to be able to click the 'cancel' button, get a reference to the corresponding row and change its background color. Anyway to do this? Thanks
protected void grdViewCancelButton_Click(object sender, EventArgs e)
{
// Get Row you want to de-select
//int SelectedIndex = ?
// Change Row Background
//grdView.Rows[SelectedIndex].BackColor = System.Drawing.Color.Whatever;
}
modified on Tuesday, May 12, 2009 11:32 AM
|
|
|
|
|
What if you set the CommandName of your linkbutton to Select or Cancel??
Also, you can set the CommandArgument of the linkbutton to the index of the corresponding row (from code in the rowdatabound event), and on postbacks you can access this property from code to know the index of the row clicked
Alexei Rodriguez
|
|
|
|
|
Thanks,
This works
|
|
|
|
|
Glad it worked
Wich one of the 2 approaches did yo use??
Alexei Rodriguez
|
|
|
|
|
I'm actually using the select button for the meantime. If I will use the template linkbutton, I will go with the 2nd approach. On RowDataBound I will hook the linkbutton's CommandArgument to the Row Index and access this on the linkbutton's eventhandler.
Thanks for the lead!
|
|
|
|
|
I have quite a few files that I need to place up on the web. Once up there I need to allow people to download them and track what they download. Here is a small outline of what I need. What I was hoping was to get some advice on how to start this project. Is there something out there I could just buy? Anything here on this site I could use as a starter? Maybe just some feedback on direction would be great.
- User need to be able to create account on system
- Once logged in user should be able to see all files to download
- Some security might be nice on what they can and can not see
- User can click on link to download file which will track that they downloaded the file
- Would be nice if user could add some comments and scores for the files
- Basic admin tools to upload and remove files would be needed
This is really just a quick simple list of items that I need and gives you a good idea what I'm looking for. Any help would be great. Thank you.
|
|
|
|
|
www.rentacoder.com
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Don't know about the tracking, but have you looked at CMS stuff like Drupal or DotNetNuke.
|
|
|
|
|
Get dotnetnuke or oscommerce
Search google
Alexei Rodriguez
|
|
|
|
|
I will have to check these out. It's looking more like I might have to just build this app from the ground up though.
|
|
|
|
|
I hope you know how to do it :p
Alexei Rodriguez
|
|
|
|
|
I have a table with the following columns,
ID, ParentID, Section, FolderName, Description.
The ID is auto incremented by 1 every time an entry is added.
ParentID is set to 0 for the root level of navigation. If a row has a parent it uses the ParentID to refer to it. i.e. ParentID = 2, refers to ID 2.
This allows me to create a hierarchy for the navigation. Now what I want to do is autmatically create links depending on their ID, ParentID and Section.
If the section equals Technical and ParentID equals 0 then the root page will display all links which match this criteria, but how do I then create a link to the sub section so when a ParentID equals 2 the link on the page takes you to Section Technical and displays everything with a parentID of 2.
Not sure if I cam explaining myself all that well....if I get no replies I will know I havent!
|
|
|
|
|
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 ...
|
|
|
|