|
HMagesh wrote: find
indexOf
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
string original = "mickey - mick@gmail.com";
string[] parts = original.Split('-');
string name = parts[0].Trim();
string email = parts[1].Trim();
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Buggers. You clearly type quicker.
We violated nature and our children have to pay the penalty
Don't go near the water children... Johnny Cash - 1974
|
|
|
|
|
string myString = "mickey - mick@gmail.com";
char delimiter = '-';
string[] bits = myString.Split(delimiter);
Console.WriteLine("Name:{0}, Email Address:{1}", bits[0].Trim(), bits[1].Trim());
We violated nature and our children have to pay the penalty
Don't go near the water children... Johnny Cash - 1974
|
|
|
|
|
Hi Guys thank u for ur reply
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|
Hi,
I need to copy some Content in Excel Sheet and send that Matter as a Mail Content in body of that Message.
I used Excel .dll i.e Microsoft Excel 11.0
Is there any way to do this.
Thanks in advance.
|
|
|
|
|
This question has nothing to do with ASP.NET.
Depending on what language you are using, you should post in the C# or VB.NET forums.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Sorry for posting again. My code didn't show in the previous post.
I've got the two following roleManager providers defined in my web.config file. The one "CustomRoleProvider" is the default one that needs to be used by the whole application.
I wrote another role manager provider "ModifiedCustomRoleProvider" that needs to be the roleProvider used by certain pages or need to be used by a certain page, based on the users role.
<code>
<roleManager defaultProvider="CustomRoleProvider" enabled="true">
<providers>
<clear/>
<add name="CustomRoleProvider" type="MyWebPagesStarterKit.Providers.CustomRoleProvider"/>
<add name="ModifiedCustomRoleProvider" type="MyWebPagesStarterKit.Providers.ModifiedCustomRoleProvider"/>
</providers>
</roleManager>
</code>
If the page "useModifiedProvider.aspx" is loaded, it must make use of the "ModifiedCustomRoleProvider" provider for all the calls made to the Roles class.
Can someone please tell me how I can force a certain page to make use of another roleProvider other than the default one specified for the application.
Thanks in advance
JD Stuart
|
|
|
|
|
You may find this article[^] useful.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
I've got the two following roleManager providers defined in my web.config file. The one "CustomRoleProvider" is the default one that needs to be used by the whole application.
I wrote another role manager provider "ModifiedCustomRoleProvider" that needs to be the roleProvider used by certain pages or need to be used by a certain page, based on the users role.
<br />
<rolemanager defaultprovider="CustomRoleProvider" enabled="true"><br />
<providers><br />
<clear /><br />
<add name="CustomRoleProvider" type="MyWebPagesStarterKit.Providers.CustomRoleProvider" /><br />
<add name="ModifiedCustomRoleProvider" type="MyWebPagesStarterKit.Providers.ModifiedCustomRoleProvider" /><br />
</providers><br />
</rolemanager><br />
If the page "useModifiedProvider.aspx" is loaded, it must make use of the "ModifiedCustomRoleProvider" provider for all the calls made to the Roles class.
Can someone please tell me how I can force a certain page to make use of another roleProvider other than the default one specified for the application.
Thanks in advance
JD Stuart
|
|
|
|
|
Hi,
I want to create a report in Excel through an ASP.NET application. What is the approach that I need to take. I will be picking up the necessary data from a database server and arranging the data in required cells with proper formatting.
|
|
|
|
|
Use a 3rd party tool. SQL Reporting, Crystal Reports, Aspose or something else.
Trying to program excel on the server is tough and it doesn't scale well.
I didn't get any requirements for the signature
|
|
|
|
|
I had install the vs2003 on win XP, after that configure the IIS server & frontpage extension as said in help files.
When i am creating a web application thru VS2003 it showing the error as:
Visual .Net has detected that the specified web server is not running ASP.Net version 1.1. You will be unable to run asp.net web services or application.
Configuration of my pc is
Win Xp sp2
VS 2003,
.net framework 1.1
.net framework 2.0(this i installed as for MSDN 2005)
Can any one know the what's wrong?
thanks in advance.
|
|
|
|
|
|
I have published an ASP.Net website, but when I want to open it this error apperas:
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load the assembly 'App_Web_qghl5xlo'. Make sure that it is compiled before accessing the page.
Source Error:
Line 1: <%@ master language="C#" autoeventwireup="true" inherits="FDoctor_MasterPage, App_Web_qghl5xlo" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Source File: /FDoctor/MasterPage.master Line: 1
I have published it with Visual Studio 2005
Best wishes
|
|
|
|
|
Hi all....
hw to use Vbclrf in asp.net (with vb).....
i want to display a message in a label in a button click.....that message should be in two line....
Ex:-
Welcome to Oasys
Bangalore
i have done like this but not working....
label1.text="Welcome to Oasys" & vbCrLf & "Bangalore"
how can i achieve that?
|
|
|
|
|
sandhya14 wrote: label1.text="Welcome to Oasys" & vbCrLf & "Bangalore"
label1.text="Welcome to Oasys<br>Bangalore" <BR> is the line break tag in HTML.
|
|
|
|
|
sandhya14 wrote: Vbclrf in asp.net
The exact equivalent of VbCrLf (Carriage LineFeed) is Environment.NewLine. However, going by the example text you would like to have, you need to understand that HTML does not care about excess line breaks. You ought to indicate with a tag to squeeze a line break in the content that is presented.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
we can use in HTML...but am trying to do that in code behind......hw to do it there....
in a button click am trying to do that...
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Label1.Text = DateTime.Now & " feedback was sent from an ASP.NET " & vbCrLf & "Wheeler's Accident Investigation Form"
End Sub
|
|
|
|
|
Hi,
i have got the answer....thanku.....
|
|
|
|
|
I have the following section in my web.config file:
<location path="members" allowoverride="false">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
I thought that ALL files and folders inside the specified path were affected by this entry. In other words, access is denied to anyone not logged in to the site. It does work for *files* inside the "members" sub-folder, but in subfolders within members (like "members/xyz", files can be viewed by typing the whole path ("http://www.mysite.com/members/xyz/mypage.php").
I tried adding this (so I have both location path entries in the web.config):
<location path="members/xyz" allowoverride="false">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
but that doesn't appear to have any affect.
Does anyone know what I'm doing wrong?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
modified on Wednesday, January 23, 2008 6:53:59 AM
|
|
|
|
|
Can't see your angly bracket stuff.
|
|
|
|
|
Fixed
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: can be viewed by typing the whole path ("http://www.mysite.com/members/xyz/mypage.php").
AFAIK, ASP.NET will execute the request, if extension type is mapped to aspnet_isapi.dll in IIS. Usually PHP extension won't be mapped, which will ignore the settings written in web.config. This might be the problem.
|
|
|
|
|
I'm not using IIS...
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|