|
Isn't the error descriptive enough? How do you plan to use Windows application filestream in your webservice? Simply, you are trying the impossible.
|
|
|
|
|
Please Send The Code and Error Description
Shaikh Tauhid Hasan
|
|
|
|
|
I'm having a problem with login control.I have three pages called login,secret and register.I secured my secret page by using login control and if i request my secret page it redirect me to the login page that is fine to me.but problem is that if from here i click on the regiser link it does not direct to the register page untill i fill any correct enrty.if i fill correct login/password it direct me to the secret page.now if i come back to the login page and now click the register link it dirct me to the register page.thts fine now.
i have used createtext and createtexturl property of login control.please help me in this regard...
I have the follwing code in web config file.
<roleManager enabled="true"/>
<authentication mode="Forms"/>
<authorization>
<deny users="?"/>
</authorization>
and following in the source file
<asp:Login ID="Login1" runat="server" DestinationPageUrl="~/Secret.aspx" CreateUserText="New User Register" CreateUserUrl="~/register.aspx" FailureText="You are not registered.....try agian..">
/>
|
|
|
|
|
aarsh thakur wrote:
<authorization>
<deny users="?"/>
</authorization>
This means that only authenticated users will have access to your site, I believe that you are having access to LogIn.aspx because thats the default login page
You should add a folder (members or something) and add a deny users = "?" for that folder only either with a location element or a new web.config inside the members folder
Alexei Rodriguez
|
|
|
|
|
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.
|
|
|
|