|
Can windows media player be used to play files in web as in desktop applications?How?
If no what can I use to play files please? Thanks for the help
|
|
|
|
|
|
currently i m using asp.net with C# (.net 2005,2.0 framework)
here i have a string and i would like to delete all words following by a specified word.
For example:
string a="The code project website is more and more famous";
i would like to delete all the words after the "is" and store in the same 'a' string. so the resultant should be of..
a="The code project website"
how to implement this.. help me - KARAN
|
|
|
|
|
string a = "The code project website is blah blah blah...";
int index = a.IndexOf("is");
int startIndex = 0;
int length = index + 1;
a.Substring(startIndex, length);
|
|
|
|
|
That will find any occurrence is is, so for an initial string string of "This is my house", you will only get "Th" returned. You need to include the spaces around 'is', and your length is to long:
int index = a.IndexOf("is");
int startIndex = 0;
int length = index; You want to stop just before <code>index</code>, as <code>index</code> is the first character of the string you want to remove.
Semicolons: The number one seller of ostomy bags world wide. - dan neely
|
|
|
|
|
string a = txtContX.Text;
int index = a.IndexOf("is"); // gets the index of 'is'.
int startIndex = 0;
int length = index; //the length of the string
txtContY.Text=a.Substring(startIndex, length);//returns the new string...
Thanks a lot friends!
|
|
|
|
|
Hi all
I am displaying a report in a web application and i want when printing the report to set the layout to Landscape automatically without the user changing the properties of the printer each time. Is there a script or css that can do this change?
|
|
|
|
|
You cant change the settings of the printer through asp.net
The user has to do this themselves.
|
|
|
|
|
Anyone know of a good resource or "how to" for ASP.NET Forms Authentication for two or more domains?
A google search on "asp.net cross domain authentication" mainly seems to give me links to JAAS (which, beeing Java, I can't use) or articles that deal with single domain authentication.
Cheers.
|
|
|
|
|
if the domains are truly both in "website.com", just issue the cookie once and set the domain attribute of the cookie to "website.com". Then the cookie will automatically be useable in both domains since both sites share a common portion of their DNS name.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Thanks for that.
It covers my immediate situation.
Out of interest. Is there any way to authenticate across domains that don't share a common domain name?
|
|
|
|
|
Vri SSK wrote: if the domains are truly both in "website.com", just issue the cookie once and set the domain attribute of the cookie to "website.com". Then the cookie will automatically be useable in both domains since both sites share a common portion of their DNS name.
Stop copying copyrighted text from other websites and pasting here. This is copied from here[^]
|
|
|
|
|
Hi,
i am getting the following congifuration error on the server where my application is deployed.
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: Access is denied: 'DCI'.
Source Error:
Line 256: <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 257: <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 258: <add assembly="*"/>
Line 259: </assemblies>
Line 260:
Source File: c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config Line: 258
Assembly Load Trace: The following information can be helpful to determine why the assembly 'DCI' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = DCI
(Partial)
LOG: Appbase = file:///C:/Inetpub/wwwroot/DCITest
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: DCI
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/dcitest/52c950c1/90bd92dd/DCI.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/dcitest/52c950c1/90bd92dd/DCI/DCI.DLL.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/DCITest/bin/DCI.DLL.
can anybody has solution?
Thanks
S.K. Ali
|
|
|
|
|
The prop system is ATN's way of ensuring that user information is homogenous across the different systems in the DCI namespace. At the heart of this system is a database containing default information on users: their userid, uid, gid, gecos field, home directory, and default shell. Using the propclient tool in conjunction with a local configuration file, this system will update your local password files with the information housed in the database. To use the system, create a /etc/prop.cfg file on your local machine. An example file can be found at /afs/isis.unc.edu/@sys/etc/prop.cfg. Copy this file to your /etc directory and customize it to your system (instructions on how to do that are contained in the file itself). Then run the propclient as root and it will automatically update the password files on your local system.
To invoke the propclient, use the command:
# /afs/isis/common/prop/propclient
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Vri SSK wrote: The prop system is ATN's way of ensuring that user information is homogenous across the different systems in the DCI namespace. At the heart of this system is a database containing default information on users: their userid, uid, gid, gecos field, home directory, and default shell. Using the propclient tool in conjunction with a local configuration file, this system will update your local password files with the information housed in the database. To use the system, create a /etc/prop.cfg file on your local machine. An example file can be found at /afs/isis.unc.edu/@sys/etc/prop.cfg. Copy this file to your /etc directory and customize it to your system (instructions on how to do that are contained in the file itself). Then run the propclient as root and it will automatically update the password files on your local system.
Somebody has copied your work here[^], without giving a mention. Or may be it is the other way round...
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Hi,
I have solved the issue. It was the issue of permissions to the bin folder of the application.The acount under which i was accessing the application was denied access to the dll(s) in the bin folder.
Regards
S.K. Ali
|
|
|
|
|
I have detailview which is inside a repeater
The repeater is binded with categorytable
String sql=”select * from category”;
Bind the data source to the repeater
Now on repeater databind event I use find control to find the detail view and bind data to it
protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs
{
int catid = 0;
string sql = "Select * top(2) from items where catid =" + catid;
//where the catid changes when eahc row is create I wabt to show two data on each row of detail view
//find the the detail view bind the detail view with data
}
Now every things workfine it displyas the data but the problem is I want a header for each detailview which represents category name on top of detail view . I am not being able to do this
Like
Header(categoryname1)//not being able to display
//detail view to show items in that category(categoryname1) only 2 wll be //displayed I am able to display this
Separator //not being able to display
Header(categoryname2)// not being able to display
//detail view to show items in that category(categoryname2) only 2 wll be //displayed I am able to display this
Separator )// not being able to display
Is this question two silly?
Now if I use repater inside repaeter how can I display 2 items in each row which I get from database
|
|
|
|
|
When should I use Web Parts in ASP.NET web apps?
When would Web Parts be overkill / too much overhead?
|
|
|
|
|
ASP.NET 2.0 was a major improvement upon web development everywhere. One very powerful aspect of ASP.NET 2.0 is the ability to make your web application personalizable using the Web Part framework. With the launch of MOSS (Microsoft Office SharePoint Server 2007) many companies and developers have rekindled focus on utilizing this amazing tool. This article will start with the basics of understanding web parts and personalization.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Vri SSK wrote: ASP.NET 2.0 was a major improvement upon web development everywhere. One very powerful aspect of ASP.NET 2.0 is the ability to make your web application personalizable using the Web Part framework. With the launch of MOSS (Microsoft Office SharePoint Server 2007) many companies and developers have rekindled focus on utilizing this amazing tool. This article will start with the basics of understanding web parts and personalization.
don't you have time to remove the sentence in bold when you copied it from here[^]
|
|
|
|
|
I'm using check box one column in gridview
when I checked then I want to access some event access
but commandName property is not there in case of check box.
You get the best out of others when you give the best of yourself.
|
|
|
|
|
I am not sure what you mean, but maybe you are trying to replace the functionality that is provided, for example, in a Button - when it is emedded as a 'command button' in a GridView row...
\in that case:
Handle the CheckBox event. In the handler, do somthing like this:
detailsView.ChangeMode(DetailsViewMode.Edit);
remember to set the checkbox AutoPostback to true to make sure that the CheckBox registers the action as soon as it is checked.
|
|
|
|
|
asp.net with c#
I want to delete hari folder with files from application
dirPath="~/upload/a/hari"
I used like this
Directory.Delete(dirPath,true);
but not working
You get the best out of others when you give the best of yourself.
|
|
|
|
|
there was NO reason to start a new thread.
|
|
|
|
|
this is my requirement
when I delete file info from table then folder should be deleted.
You get the best out of others when you give the best of yourself.
|
|
|
|