|
You can set some variable, Suppose, Action. If Action=0 then Play, Action=1, Pause etc. And On button click check the Action value and do the operation.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
I do know that there is a way to setup an event for all the buttons. Do not remember it.
|
|
|
|
|
|
This link made it clear.
Many thanks
|
|
|
|
|
Welcome any time
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi, I am using Asp.net 3.5 With Ajax i am using ScriptManager.RegisterArrayDeclaration(controlid,'Arrayname',Values) in my application, which is for load the values into an array at clientside. I am using this array in javascript and try to retrieve the values in from array.
code: in my CodeBehind i have below statement:
ScriptManager.RegisterArrayDeclaration(this, "ArrayCutScoreItemProctorIDS", String.Concat("'", lblCutScoreItem.ClientID, "'"));
in My Javascript File i am using this below code
if (ArrayCutScoreItemProctorIDS.length > 0) {
for (var i = 0; i > ArrayCutScoreItemProctorIDS.length; i++) {
if (ArrayCutScoreItemProctorIDS[i] == institutionpurchaseid) {
var radcls = document.getElementById(ArrayCutScoreItemProctorIDS[i]);
radcls.innerText = s.CutScore;
radcls.setAttribute("CutScore", s.CutScore);
}
}
}
but i am getting error message as Array() is undefined.and my first item in the array is able to retrieve.
I am confused what happenening inside.
Can i anyone help me on this? How ScriptManager.RegisterArrayDeclaration would work?
fttyhtrhyfytrytrysetyetytesystryrty
|
|
|
|
|
How to convert from numbers(002) to Text format using ASP.Net 2005 C# coding.
Please help me...
Thanks.
modified on Saturday, July 25, 2009 8:59 AM
|
|
|
|
|
This question makes no sense. What does the question have to do with the title ? Do you REALLY not know how to turn an int into a string ? Please tell me you're not being paid for your work....
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thanks for ur replay Christian Graus,
My Datatable contains value 002 whenever i download in Datatable to Excel. It shows only 2 but i need the following format 002 in Excel download file(Using ASP.Net-05, C#).Is it possible. plz replay ...
Thank u.
|
|
|
|
|
hi
i want to make pc-phone ,mobile connector dialer.
what r the requrement for that?
if code is available than provide me
|
|
|
|
|
Any_India wrote: hi
i want to make pc-phone ,mobile connector dialer.
what r the requrement for that?
if code is available than provide me
This is nothing to do with ASP.Net
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Any_India wrote: what r the requrement for that?
Dude, you have no idea of the requirements and you still want to build this.
Do you really think you would be able to do this?
Any_India wrote: if code is available than provide me
This [^]place has a lot of people ready to provide with Kilos of code you want.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
As of my knowings there is no such mobile dialer or pc2phone based on Asp.net. It is available on Windows(QT or Visual C++ or Java ), Nokia- S60 3rd, S60 5th and Symbian Anna (Symbian), Iphone (Objective C) and Android (Java + Native). And it is not that easy task to have in a day or month. And you wont get source code like this.
We provide this kind of solution. Of course it was needed years to make it..
spinytel@gmail.com
|
|
|
|
|
i have a buuton, and i want with click it open a new window and send a value to that form
i wrote: response.rediret(url) but it open that window i want open a new window, plz help
|
|
|
|
|
Use window.open("yourpage.aspx") in the onClick event(javascript event) of the button.
For server side click event,
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "openWindow", "window.open('DemoPage1.aspx')", true);
|
|
|
|
|
thanks, but i want give a url for window.open not the name of form and i want send a querystring. what should i do?
give me a code that doing this work:
this.Page.Response.Redirect(url + "?queryString=" + strSelect);
|
|
|
|
|
Try this.
String stringURL = url + "?queryString=" + strSelect;
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "openWindow", "window.open('" + stringURL + "')", true);
Here I assume that you have two string variables url and strSelect;
|
|
|
|
|
Try this javascript function
<script type="text/javascript">
function myfunction(str1)
{
window.location.href='Default2.aspx?id='+str1;
}
</script>
Regards,
Karthik K...
|
|
|
|
|
I use the following code to get HTML source of a url , but there is a problem!!!
public string Gethtmlsourcecode(string url)
{
WebResponse response = null;
WebRequest request = WebRequest.Create(url);
response = request.GetResponse();
string data = "";
if ((response is HttpWebResponse && ((HttpWebResponse)response).StatusCode.ToString() == "OK") ||
response is FileWebResponse)
{
StreamReader sr = new StreamReader(response.GetResponseStream());
data = sr.ReadToEnd();
}
return data;
}
whith this code for url : http://sme.ir/?p=product.profile&ProductID=53834[^]
part of data which is an html source of the url should be
<tr>
<td class="l lf" width="35%">نام:</td>
<td class="r rf">
آماده سازی و بسته بندی قهوه-كاكائو-چای كیسه ای
</td>
</tr>
<tr>
<td class="l lf">نام قانونی:</td>
<td class="r rf">
<a href='http://parstalat.sme.ir'>پارس طلعت</a>
</td>
</tr>
but data is
<tr>
<td class="l lf" width="35%">نام:</td>
<td class="r rf">
</td>
</tr>
<tr>
<td class="l lf">نام قانونی:</td>
<td class="r rf">
<a href='http://.sme.ir'></a>
</td>
</tr>
you can see some part of HTML source code is not in data!! what should i do to solve this problem?!!!
|
|
|
|
|
Hi all,
In my Web Application, when I am filling a DataSet its giving following error. Regarding this I have searched in Forum. But they told about Command Object timeout property. But I am using Data Adapter.
Error : 'Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding'
My Code is :
Public Sub FillDS(ByVal ds As DataSet, ByVal TblName As String, ByVal Qry As String)
If Not ds.Tables(TblName) Is Nothing Then ds.Tables(TblName).Clear()
DA = New SqlDataAdapter(Qry, Con)
DA.Fill(ds, TblName)
End Sub
Please help me out..
Ramesh Sambari
Knowledge is like honey.
Collect it, to make life sweet.
|
|
|
|
|
You need to set this property:
DA.SelectCommand.CommandTimeout
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Thanks for your reply Manas, But
Its not working... Earlier it was waiting for 30 sec. and giving TimeOut Expired. Now it is waiting for 1 minute 30 Sec. But same error is coming...
Error :
Sys.WebForms.PageRequestManagerTimeOutException: The Server request timed out.
Please reply me...
Ramesh Sambari
Knowledge is like honey.
Collect it, to make life sweet.
|
|
|
|
|
This error can be coming due to Connection Pooling in the database server. When you open a connection in your code, check whether you properly closed that connection.
Check sp_who(if it is SQL Server) to see the number of connection opened in the database.
|
|
|
|
|
I develop an application Vehicle Management.while opening a page contains tabcontainer ,its not displaying in Mozilla but if u refresh it will be displayed.
any one can help for this ?
Thanks
|
|
|
|
|
Maite, I assume no one here is in business of guessing.
Would you mind to post your code so that we can look at it.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|