|
try the following code.... its written in c#
string str = "Syed Hussain"; // our initial string
str = str.Trim(); // remove any spaces from start and end of the string
int index = str.IndexOf(" "); // get the index of the first space
str = str.Replace(" ",""); // remove all spaces
str = str.Insert(index, " "); // insert single space at the position of INDEX
Label1.Text = str; // now you get the string with single space.
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|
|
Hi Friends,
I have to call a javascript from my cs page. It should be called exactly when the page loads. How can I do it ? I know how to call that on a button click but how can I call the javascript on page load event?
thank you
|
|
|
|
|
u have olready have a javascript function in page for example:
function Sample() {
alert("test");
}
now u can use this code in page load:
this.Controls.Add(new LiteralControl("<script>func1();</script>"));
We Can Do Anything, If We Want It
|
|
|
|
|
use the following script on page load event of your page....
Page.RegisterStartupScript("MyDemo", "alert('hi there');");
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|
|
I am working on a photo sharing website. By using flickr API service I can sent pictures to flickr but that require me to go on flickr's website and log in there. I want to save flickr login info in my application so that I should internaly login user to flickr and send his pictures directly.
This is called one click upload.
If anyone of you have done it before or something similiar to it please let me know.
Yasir M Khan
|
|
|
|
|
hi friends i am adding dll in asp.net then this error occur
error:-
Retrieving the COM class factory for component with CLSID {E0AA501C-CAD6-4D93-A5A7-DAF1C0B30F32} failed due to the following error: 80070005.
then how to find solution of this error please help me.
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
i think no any solution for your question.
your dll may be use any activex object that it's required to register in windows registery HKEYs.
u most register your com class in windows registery.
see your comm class help.
We Can Do Anything, If We Want It
|
|
|
|
|
can we load our dll as dynamically at run time have u any link or example then provide me
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
when i have loadin dynamically ti this code:-
Dim asmblyload As System.Reflection.Assembly = System.Reflection.Assembly.LoadFile("C:\Inetpub\wwwroot\UccpLibrary\Bin\Uccp.dll")
then error occurred:-
The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018)
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
Hello Piyush:
The original error which you are getting is a very generic error. This error may arise because of the fact that ASPNET account is not given sufficient permissions to access the resource. I would suggest you to try following steps:
To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
If this does not work then, please let us know which COM DLL are you looking to use in your application?
If you open DCOMCNFG from the command prompt, opened Component Services, expanded Computers/My Computer/DCOM Config, then do you see Application (DLL which you are looking to use)? If yes, then please select the same application, right click on it and click on Properties and in the resulting dialog select Security tab. Under Security Tab, click on Launch and Activation Permissions to customize, Access Permissions to customize and configuration Permissions to customize. And in all of these three select the ASPNET account.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
hi friend.
i am using uccp.dll library in asp.net.
you given this solution:-
To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
but have not gotted this property in uccp.dll property.
where i have got this property please help me
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
in this solution:-
If you open DCOMCNFG from the command prompt, opened Component Services, expanded Computers/My Computer/DCOM Config, then do you see Application (DLL which you are looking to use)? If yes, then please select the same application, right click on it and click on Properties and in the resulting dialog select Security tab. Under Security Tab, click on Launch and Activation Permissions to customize, Access Permissions to customize and configuration Permissions to customize. And in all of these three select the ASPNET account.
i have not gotted my dll in the Component Services(Computers/My Computer/DCOM Config)
then what i do
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
How to i convert CRYSTAL REPORT to EXCEL using VB??
pls reply asap.. its very urgent...
|
|
|
|
|
rpt1.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.Excel)
We Can Do Anything, If We Want It
|
|
|
|
|
Hey Guys
Any idea how to maintain session for multiple domains ???? This technology is used in .Net Passport. Furthermore if you are signed in to Google Account then you can use all the services by Google although these services reside on different server as well as different domain...
So please tell me from where to start.....!
|
|
|
|
|
May i know one thing , My question is based on passport authentication in vb.net.Ur question is related to my poblem , that;a y i am asking this question in u thread.hope u will not mind.
i was accessing the msn messenger.there i saw that while subscribing for the account , we can suscibe there if we have an account in yahoo or we have an account in rediff to access our mails.
now question is msn messenger uses the yahoo or rediff, gmail database ?
otherwise how do it check whether that mail address is genuine or not?
and one moe thing if i have to implement the passwport authentication , then can u suggest me any link , which is having the code .
Thanks in Advance.
Soniagupta1@yahoo.co.in
|
|
|
|
|
If I wud know then Y I need to post the Question
|
|
|
|
|
I am working with web application in .net ....
I have to provide functionality for PrintScreen(capturing image).
How can i achieve this?
If anyone knows, can you please help me...
Thank you,
|
|
|
|
|
|
lbl.text &="<a href="1.aspx">Port 1xSldm1</a><Br/>"<br />
lbl.text &="<a href="2.aspx">Port 1sVsTr0</a><Br/>"<br />
lbl.text &="<a href="3.aspx">Port 9wRef</a><Br/>"<br />
lbl.text &="<a href="4.aspx">Port dsFDc8</a><Br/>"<br />
lbl.text &="<a href="5.aspx">Port 7swew45</a><Br/>"<br />
lbl.text &="<a href="6.aspx">Port 32dDed6</a><Br/>"
i want to show this text but i need to disable all links. how can transform this text to
lbl.text &="Port 1xSldm1<Br/>"<br />
lbl.text &="Port 1sVsTr0<Br/>"<br />
lbl.text &="Port 9wRef<Br/>"<br />
lbl.text &="Port dsFDc8<Br/>"<br />
lbl.text &="Port 7swew45<Br/>"<br />
lbl.text &="Port 32dDed6<Br/>"
this for Printer.
|
|
|
|
|
I want to use java script function in asp page"aspx" I have the code in html page but i want to run it in aspx page
and i don't know about jscript file i didn't use it before can any body help me thx.
let's work together
|
|
|
|
|
Hi Ahmed,
aspx has really something to do with html. If you take a closer look at an aspx file, you will see the regular <head> <body> etc... tag.
So, to include a javascript file and use functions therein, follow the example below:
(1) Say we have a file called scripts.js containing a function "test()" that we want to use.
(2) Place the tag "script language="javascript" src="scripts.js"></script>" tag between the "<head>" and "</head>" tag
(3) Next say i have a texbox and i want to execute function "test()" on leaving the textbox
Code :
<asp:TextBox ID="txt" runat="server" onBlur="javascript:test();"></asp:TextBox"
Hope this helps.
Carpe diem
Krg
-- modified at 7:38 Wednesday 19th September, 2007
|
|
|
|
|
i don't understand your question carefully.
but u can use from this code:
We Can Do Anything, If We Want It
|
|
|
|
|
if you want your code to run at the time of page load... use the following code...
Page.RegisterStartupScript("MyDemo", "alert('hi there');");
/*use the function name on the place of alert()*/
and if you want ur JS code to fire on the occurance of a button onClick....
Button1.Attributes.Add("onclick", "sampleJSfunction()");
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|
|
How can i change folder icon in asp.net??
|
|
|
|