|
Dear Gurus
I just want to make a chat programme like yahoo in asp.net.
but i dont have a any idea to start it.
plz suggest some URL from where i can get help regarding this.
|
|
|
|
|
hi i am trying to make a website where by only the loged in user whose role is administrator can add new user to the website..
however i have trouble assigning the roles.. to the new user..
as now i have 2 option which i dont know how to inmpltement help me if you can pls:
1#
let the user choice his/her role when registoring at the reistration page.
(if its even possible)
2#
create a page which let the administrator sets the role for the users.
so please could any one pls giv me advice, samples anything which can help me achieve my objective
thx in advance
|
|
|
|
|
Hi
The first one is not a good idea.
The administrator should give role for each new user.
When the administrator add new user, give an option for role selection.
If U Have Interest, U Can...
Sherin Iranimose
|
|
|
|
|
hi i am trying to set my smtp mail setting so that when i register with my webpage it would send an email to the user.
currently i am haunted by this error
<br />
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond <br />
i refer to this webpage for the server: [^]
is there any additional stuff to configure besides:
<smtp>
<network host="mail.flashcom.net">
?
as i only set this so far..
|
|
|
|
|
Hope this[^] stuff will help you in solving the SMTP Problem.
Regards,
Satips.
|
|
|
|
|
My problem is that if I use a normal URL and select open document the document cannot be saved to the webfolder transparently. Now if i open the webfolder from the open option in the file menu and check the open as webfolder option i can open the document and its saved without any problems.
Is there a way to link to documents specifying to be openned the same method as the webfolder?
|
|
|
|
|
Hello All!
I'm trying to grab a value from a details view, to put in a text box.
Here is my attempt
DetailsView1.DataItem(5) = Session("Test")<br />
Session("Test") = testtext.Text
I have this at my page load event. The Details view gets filled on the Page load as well. Maybe I need to creat a session afterwards?
TIA!
Rudy
|
|
|
|
|
Hey!
I got it! Just had the it backwards.
Session("Test") = DetailsView1.DataItem(5)
testtext.Text = Session("Test")
Genuis;P
Thanks!!!
Rudy
|
|
|
|
|
hi i have been working on a asp.net website project recently
now i haved put it inside a wwwroot and tryed to accessed it from my web browser for testing
could any one list out the steps to put the files inside the root or do i just dump everything in>??
my attempt when i dump everything:
ended up in an error in the web browser
:doh:The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
A name was started with an invalid character. Error processing resource 'http://localhost/testing/Default.aspx'. Line 1, P...
<%@ Page Language="C#" AutoEventWireup="true"
-^
|
|
|
|
|
Hi
what frame work u r using 1.1 or 2.
Once the same problem stop my website.
The fault was I'm created my website in ASP.net2.0.
But IIS was not registered to 2.0.
So I run following command
<br />
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i<br />
It solved my problem.
If U Have Interest, U Can...
Sherin Iranimose
|
|
|
|
|
 a different error appear after i tried the command though
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 22: </controls>
Line 23: </pages>
Line 24: <membership defaultProvider="MyMembershipProvider">
Line 25: <providers>
Line 26: <add name="MyMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="HASDBConnectionString1" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
Source File: c:\inetpub\wwwroot\testing\web.config Line: 24
|
|
|
|
|
Hi ,
I'm submiting my web site to google search engine.
I use the URL rewrite tech.
But, when I login to the google website management, I found that all the googlebot send me many error messages:
Such as:
http://www.msproject.cn/Article/codehighlight_freetextbox.aspx[^]
500 (Internal server error) [?]
I'm sure the web can be access in your web browser, but why googlebot return 500 error?
|
|
|
|
|
I heard URL rewritting can make the pages inaccessible from google bot some times. But first time I am hearing url rewritting making 500 (Internal server Error ). One suggestion that I have is, check your website in some text browsers something like LYNX. Google spiders will be seeing your page something like LYNX does. So check that LYNX can see your page correctly. Could you tell me what method you used for URL rewritting ?
For more information try these links also
|
|
|
|
|
You are so appreciated to help me.
I add some code in Global.asax
void Application_BeginRequest(object sender, EventArgs e)
{
// If the requested file exists
if (File.Exists(Request.PhysicalPath))
{
return;
}
else
{
// find in database
// get the correct url, and save to the CorrectURL
Context.RewritePath(CorrectURL, false);
return;
}
}
Any suggestion, kindly let me know.
|
|
|
|
|
You are so appreciated to help me.
I add some code in Global.asax
void Application_BeginRequest(object sender, EventArgs e)
{
// If the requested file exists
if (File.Exists(Request.PhysicalPath))
{
return;
}
else
{
// find in database
// get the correct url, and save to the CorrectURL
Context.RewritePath(CorrectURL, false);
return;
}
}
BTW, my web is coded under ASP.NET 2.0.
Any suggestion, kindly let me know.
|
|
|
|
|
We are in the middle of an asp.net class.
The teacher started going over creating custom controls, and it looked like a lot of coding for a simple dropdown. So we asked why we couldn't inherit the DropDownList, and customize from there. He hadn't tried, but it seems to work! The only problem is, in design time when you select the instance of the custom control and change a property it seems to initialize the web control!!! When you look at the code in the .aspx, it has added the actual dropdown html code to the page. So when you run it now, it has two of every item in the dropdown. Has anyone ever heard of this? Hopefully I explained well.
Juanito was here
|
|
|
|
|
I've set my web app to use Authentication mode = forms in the web.config
The problem is that when the cookie expires, it redirects to the login page -- but only in the main frame. I need to redirect the entire page (_top), not just a single frame.
1. Can I set a target (in the web.config) for the redirect that happens when the cookie expires? Target does not seem to be one of the parameters that it accepts for the forms element...
2. Can I handle the authentication timeout with javascript (so I can redirect to the login page, but specify a target)?
3. I could give the timeout value a huge number, then handle authentication timeout via some other method (this does not seem to be the optimum solution).
Any input would be welcome.
|
|
|
|
|
Hi All,
I have a horizontal Asp.Net menu control. Each of the parent "MenuItems" has sub menu elements, each with varying entries, such as:
Help
Test
AnotherTest
A Test
The whole submenu expands to the longest entry, however only the text for each submenu item is clickable, rather than the whole menu item. So whilst all of "AnotherTest" is clickable, the entire space after "Test" isn't.
What I'm really after is something like CP's "Message Boards" etc menus top right ^. Can anyone advise how to do this?
Thanks,
Martin.
|
|
|
|
|
Under the covers the asp.net menu is really just a table with the menu items being links in the table cells. If you want the entire area the be active you'd have to resort to a HTML or CSS based menu. There are plenty available.
only two letters away from being an asset
|
|
|
|
|
As Mark said, it's just tables and that stuff.
And that's where the problem is located. The solution? "ASP.NET 2.0 CSS Friendly Control Adapters 1.0[^]".
Once you applied them, it should be rather easy to adjust the CSS to make the items clickable as you asked.
|
|
|
|
|
Thanks guys - as soon as Microsoft stop arsing about with www.asp.net, I'll download the CSS adapters and give them a whirl.
|
|
|
|
|
I'm not sure if this is the correct forum for this question, but I'll give it a try.
I want to execute a DOS application from a ASP.NET webservice (code snippet below). The issue that I am having is that when the process is started, the "cmd" is running as "User1" and "DOSApp" is running as "ASPNET". The "DOSApp" cannot access the machines networked resources using the "ASPNET" user. Is there a way to change the user under which this "child" process is running?
<br />
Dim StartInfo As New ProcessStartInfo<br />
StartInfo.FileName = "c:\DOSApp.exe"<br />
StartInfo.Arguments = "-a arg"<br />
<br />
StartInfo.RedirectStandardError = True<br />
StartInfo.RedirectStandardOutput = True<br />
StartInfo.UseShellExecute = False<br />
StartInfo.Verb = "runas /noprofile /user:MyMachine\User1"<br />
<br />
Dim proc As System.Diagnostics.Process = System.Diagnostics.Process.Start(StartInfo)<br />
|
|
|
|
|
As a security measure the ASP.NET account has limited rights. It IS NOT advisable to even attempt to run executables on the server from within ASP.NET. Think about it, would you want anyone to log into your website and run executable code on the machine? If you don't think this is a problem, then give me the URL, and plan to rebuild your system, after I extract all the data.
only two letters away from being an asset
|
|
|
|
|
You would need to create a new app pool set the identity to the user you want the web service to run under. You need to add this user to the IIS_WPG group. You may need to give that group access to the thing you want to access as well. Then in the web service make sure it is using the new app pool you have created.
Hope that helps.
Ben
|
|
|
|
|
I have the following line in the Web.config
<identity impersonate="true" username="User1" password="secret1">
Wouldn't this accomplish the same thing?
|
|
|
|