|
did u tried data source= localhost
and why u r trying to give conection through server explorer do it using code.
Sarith...
|
|
|
|
|
localhost was the first thing i tried
i showed u the code in webConfig ,what do u mean?
ninja coding
|
|
|
|
|
how can i post an img in the message to show u what i mean??
i tried it doesn't work
ninja coding
|
|
|
|
|
I was wondering if anyone has any expience with source control options when developing an ASP.Net/ASP website. We currently use Frontpage server extensions (which with 11 developers) is starting to show strain.
We need something that works in the same way as FPSE because of the size of the website / integration of ASP (means it is not possible to have it checkout completely to our local machines for developing)
We use VSS for small Ofshoot projects and inhouse tools.
Thanks!
|
|
|
|
|
VSS is fine, as is VSTS.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
We cant really afford VSTS - its mega expensive... and VSS is a good method, except that is there a way of having a website run - and when a file is checked in automatically updating it so that there is effectivly a website running off the project in the vss database?
Thanks,
|
|
|
|
|
I want to use embedded Window Media Player functions like stop(), pause() in Firefox. Does anyone have an idea?
I checked following two ways. They are working good in IE6 and IE7 but not in Firefox.
(1) document.Player.controls.pause();
(2) document.getElementById("Player").controls.pause();
Please tell me a solution in Firefox. Thanks.
Abuabakr
|
|
|
|
|
Why do you wanna add this from Javascript?
If you are embedding Windows Media Player Object in WebPage, all buttons (play,pause,stop and etc) are already included in that object. So, I don't think you need to add this duplicated features from Javascript..
You can check the screenshot here.
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" name="mediaplayer1" ShowStatusBar="true" EnableContextMenu="false" autostart="false" width="320" height="240" loop="false" src="MyVideo.wmv" />
Ref: Embedding Windows Media Player into a web page
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Thanks for you reply.
The thing is I need player in a complete different way. Infact I want to implement a technique which doesn't work with normal player that's y I added a layer on player and then control its functions. I have finished everything and its work great in IE6 and IE7 but not in Firefox.
So I just need a button or image where I can call player functions "onClick" event.
Thanks.
|
|
|
|
|
This code has been checked in IE6, IE7 and Firefox and it works perfectly in all of them.
Here is the Javascript code which you need to put within <script> tag.
var req;
var isIE;
function initRequest() {
if (window.XMLHttpRequest) {
req = new XMLHttpRequest();
} else if (window.ActiveXObject) {
isIE = true;
req = new ActiveXObject("Microsoft.XMLHTTP");
}
}
//url will be Web Service URL.
function CallWebService(url,params)
{
initRequest();
req.onreadystatechange = processRequest;
req.open("POST", url, true);
if(params!=null)req.setRequestHeader("Content-length", params.length);
req.setRequestHeader("Connection", "close");
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
req.send(params);
}
function processRequest()
{
if (req.readyState == 4)
{
if (req.status == 200)
{
var message = req.responseXML; //Result in XML.
// Accessing the tag 'string' is name of node
var myNodes=message.getElementsByTagName("string");
// Getting actual result of webservice and saving it in a variable which can be use anywhere in page.
// alert("Result of webservice is : "+myNodes.item(0).firstChild.nodeValue);// Checking result
var serviceValue=myNodes.item(0).firstChild.nodeValue;
}
}
}
Here is the Html code which you can put within <body> tag.
<%--<input type="button" value="Call .NET Web Service!" onclick="CallWebService('http://pathOfYourServer/nameOfWebService.asmx/testWebService1',null)" />
<input type="button" value="Call .NET Web Service with parameters!" onclick="CallWebService('http://pathOfYourServer/nameOfWebService.asmx/testWebService2','a=Michael&b=5')" />
You can also pass dynamic values like below
CallWebService("http://pathOfYourServer/nameOfWebService.asmx/testWebService2","name1="+value1+"&name2="+value2+"&name3="+value3+"")
where name(1,2,3) is the name of your variable and value(1,2,3) is value of respective variable.
Note: Number of variables you pass in above line must be same as you defined in the definition of webservice.
Here is the webservice code which you need to enter in your webservice file.
using System;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
///
/// Summary description for WebService
///
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class WebService : System.Web.Services.WebService
{
public WebService ()
{
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod]
public string testWebService1()
{
return "Hello World ";
}
[WebMethod]
public string testWebService2(string a,int b)
{
return "Hello World " + a + " - " + b.ToString();
}
}
Hope it help.
Thanks to Michael
Regards,
Abubakar
rega
|
|
|
|
|
Cool..... I glad to hear that your problem is solved....
As I suggest you earlier, if you are working for large Ajax-enabled project, you may probably want to use Javascript Ajax framework (eg: prototype js library) or ASP.NET Ajax...
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
I already voted your message.
I posted a new message in forumn, may be you already read it if u didn't I am repeating here again. if you know its answer please reply its answer. Thanks.
QUESTION
I want to use embedded Window Media Player functions like stop(), pause() in Firefox. Does anyone have an idea?
I checked following two ways. They are working good in IE6 and IE7 but not in Firefox.
(1) document.Player.controls.pause();
(2) document.getElementById("Player").controls.pause();
Please tell me a solution in Firefox. Thanks.
Abuabakr
|
|
|
|
|
Why do you wanna add this from Javascript?
If you are embedding Windows Media Player Object in WebPage, all buttons (play,pause,stop and etc) are already included in that object. So, I don't think you need to add this duplicated features from Javascript..
You can check the screenshot here.
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" name="mediaplayer1" ShowStatusBar="true" EnableContextMenu="false" autostart="false" width="320" height="240" loop="false" src="MyVideo.wmv" />
Ref: Embedding Windows Media Player into a web page
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hi
i want to display selected dates and display dates in column header, and that column will generate dynamically display in gridview.
Example:
------------------------------------------------------------
!02/09/07 ! 03/09/07 ! 04/09/07 !05/09/07 ! etc
------------------------------------------------------------
Room1! noroom ! Noroom ! No room ! Free ! etc..
----------------------------------------F-------------------
Room2! No room ! NoRoom ! Free ! Free ! etc..
------------------------------------------------------------
etc ! ! ! !
-------------------------------------------------------------
Urgent
|
|
|
|
|
|
i need help with this subject.
i want to set connectionString in web.config.
don`t know how!
|
|
|
|
|
|
|
ASP.NET 1.1
<appSettings>
<add key="ConnectionInfo" value="server=(local);database=Northwind;Integrated Security=SSPI" />
</appSettings>
Reading this string from code ~
ConfigurationSettings.AppSettings["ConnectionInfo"];
ASP.NET 2.0,
<connectionStrings>
<add name="YourConnectionString" connectionString="Data Source=YourSQLServer; Initial Catalog=YourDatabase; User ID=YourUserID; Password=YourPassword" providerName="System.Data.SqlClient" />
</connectionStrings>
Reading this string from code ~
<br />
if (((ConfigurationManager.ConnectionStrings("YourConnectionString") == null)<br />
|| _)) {<br />
ConfigurationManager.ConnectionStrings("YourConnectionString").ConnectionString.Trim() = "";<br />
throw new Exception("Connection Error");<br />
}<br />
else {<br />
conn.ConnectionString = ConfigurationManager.ConnectionStrings("YourConnectionString").ConnectionString;<br />
}
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
if u mean that u wanto to edit the ConnectionString within the code(Dynamiclay) u couldn't
only by the web configuration tool or manual
regrds
|
|
|
|
|
Add www.connectionstrings.com[^] to your bookmark. It is very helpful and can be of use if you work with numerous different databases.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
salam
kheyli khoshhal shodam ke tedade iraniha dar in talar har ruz bishtar mishe.
va amma moshkele shoma:
shoma mitavanid dar file web.config
yek klid mesle:
<configuration>
<appSettings>
<add key="connectionName" value="data source=(local);initial catalog=master;user id=sa;"/>
</appSettings>
</configuration>
ijad konid , jahate estefade az an:
private SqlConnection conn = new SqlConnection(ConfigurationManager.AppSettings["connectionName"]);
dar har gesmat az code garar dahid.
dar zemn behtare ruye foldere Bin right click karde va componente System.Configuration ra add konid.
My Real Email:
abolfazl585@yahoo.com
We Can Do Anything, If We Want It
|
|
|
|
|
Hi, I have a custom login control into one UpdatePanel.
when user click button for login, i disable button and show a waiting gif by add_initializeRequest unitil end of ajax process.
then enable button and hide gif in add_endRequest.
Until now there is no problem. but i want make modal (disabled with fade effect)the page in this duration.
please help me how i can do it?
Thank you advance
|
|
|
|
|
|
Dear Vasudevan Deepak Kumar,
I am not member of http://www.experts-exchange.com, would you please zip the page and send to me it.
mortezasoft[at]gmail.com
thank you
|
|
|
|