|
Anytime!!!
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
Are you familiar with regular expressions ?
Sonia Gupta wrote: \w+
This line matches for any characters, numbers and alphabets
Sonia Gupta wrote: ([-+.]\w+)*@
This is another regular expression (nested). This matches a single character that is a word charcter and force to match "@".
Sonia Gupta wrote: [-.]
Matches a single character present in the list.
I think from this information you can iterate the remaining. Try for it.
|
|
|
|
|
OK thanks Navaneeth......
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
That's a regular expression. It's a syntax for describing patterns within strings, and can be quite powerful. It takes some time and research to understand them, but I find it well worth it. That particular one is a bit strange though... I'm not sure if I fully get what it's going for. I'd suggest something along the lines of:
^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$
|
|
|
|
|
i usinng div (scroll bar) for chat window.and chat window text retrive from hash table and hash table refresh by ajax timer(in 1 sec.) so page alwas post back so i cnt manage scroll bar freely plz help
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
hi...
open ur YM !!
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Piyush Vardhan Singh wrote: hash table refresh by ajax timer(in 1 sec.) so page alwas post back
AJAX is used to avoid postback. Then why it is happening in your case ? AJAX won't make a post back and it gives asynchronous request to the server without posting the entire data.
|
|
|
|
|
Navaneeth. wrote: AJAX is used to avoid postback
That depends on what you mean by post back (AJAX certainly requests more information from the server) and on the framework in use. Microsoft's AJAX implementation uses ASP.NET's postback mechanism.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
Ready to Give up - Your help will be much appreciated.
My website
|
|
|
|
|
Colin Angus Mackay wrote: That depends on what you mean by post back
I mean browser won't refresh.
|
|
|
|
|
Hi!
I am developing a VoIP related project which requires interaction with a softswitch. I could locate some information about the APIs and web services which expose the functionality of the softswitch for the developers. However I am completely new to this field. Can someone provide some insight into developing VoIP applications using ASP.Net or some reference site where I can locate some working example for the same.
Thanks in advance.
|
|
|
|
|
Will Asterisk[^] help you ? It's an opensource PBX which supports VOIP.
|
|
|
|
|
Thanks for the help. Actually, my client will use the services of an IP Telephony service provider. Now, the data related to the calls made by his customers will be available with the service provider. The client wants to capture that data for his own billing and reporting purpose. I checked the site of the service provider which says that certain APIs facilitate interation with their application. But I don't know whether I am going in the right direction. What else will I need to know...which classes in ASP.Net will be required, etc.
If anyone can help me on this front.
|
|
|
|
|
As I told I don't have much experience on this subject. Why don't you include that API's in your application and try your luck !!
|
|
|
|
|
Hello guys,
any one plz tell me, if i make page level EnableViewState = false & Control level also. i am unable to find the Difference of making false of EnableViewState.
actually what happens if page level disabled? & control level?.
waiting for the answer
regards
GV Ramana
|
|
|
|
|
You can disable viewstates in 3 levels.
1. Control Level
2. Page Level
3. Application Level
Control level forces ASP.NET not to keep viewstate for the specified control. You can disable viewstate for server side controls. Page level disables viewstate for the entire page. If page level viewstate is disabled, then no need to specify control level viewstate again. Application level can be configured in web.config which will be applicable for whole application.
|
|
|
|
|
Definition is fine. But main thing is if i disable page level, then how to test this.
in my application, disabled at page level. i have 1 text box & button. 1) entered some name in text box, click on button. it maintains the state after round trip. 2) refresh the page, then textbox still contains the entered name. Here it is not supposed to maintain the name.
plz clarify? give me any test scenario.
regards
GV Ramana
|
|
|
|
|
Ramana. G.V wrote: give me any test scenario.
Put a datagrid, and button to the page. Bind grid in pageload inside not ispostback block. Disable viewstate for the page and click button to make postback. You can see grid is not maintaining it's state. Now check with enabling the viewstate.
Ramana. G.V wrote: in my application, disabled at page level. i have 1 text box & button. 1) entered some name in text box, click on button. it maintains the state after round trip. 2) refresh the page, then textbox still contains the entered name. Here it is not supposed to maintain the name.
Probably for small fields like this will be maintained by the browser !!. I am not sure on this.
|
|
|
|
|
Hi,
I am new to .net development. i need to know what is .net remoting and why it is used for? i want some easy examples to understand about it. pls help me..
Regards
Vijay.
|
|
|
|
|
Google will be the better option that forum first search google and read some articles /books then if you have any question in understanding it then you are suppose to ask here
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
if some clients accessing s/w with MYSQL as data base and some with oracle.(interface same but backend storage is different).
how do it in asp.net?
what are the methods i must use it to implement above concept?
thank you
vijaya
|
|
|
|
|
You need to create different dataaccess layers to do this. Because MySQL is conneted with ODBC and Oracle using OracleClient. So you need to create seperate DAL and call the appropriate one.
|
|
|
|
|
You may use like that.
Classes and Interface
<br />
interface IDatabase{<br />
public int Execute(String sqlStmt);<br />
}<br />
<br />
public class MySQLDatabase() : IDatabase{<br />
public int Execute(String sqlStmt){<br />
}<br />
}<br />
<br />
public class OracleDatabase() : IDatabase{<br />
public int Execute(String sqlStmt){<br />
}<br />
}<br />
<br />
public class DatabaseProxy(){<br />
IDatabase iDb;<br />
<br />
DatabaseProxy(){<br />
if(config.ReadDbSetting() == "1")<br />
iDb = new MySQLDatabase();<br />
else<br />
iDb = new OracleDatabase();<br />
}<br />
<br />
public static int Execute(String sqlStmt){<br />
return iDb.Execute(sqlStmt);<br />
}<br />
<br />
}<br />
ASP.NET Code-behind
<br />
DatabaseProxy.Execute("Statemet");<br />
P.S: you may need to change some syntax since I typed it just like that..
I would like to suggest you to check the sourcecode of this opensouce multi-database forums "http://dnfbb.sourceforge.net/"
|
|
|
|
|
If he's using .NET 2, then this is unnecessary. .NET 2 provides a better abstraction layer which can remove a lot of these issues. Take a look at things like the DbConnection, DbCommand classes to see what I mean.
|
|
|
|
|
Excellent. You got 5 from me. But do you have any examples ?
|
|
|
|
|
This might get you started:
DbProviderFactory factory = DbProviderFactories.GetFactory("MySample.Oracle");
DbConnection conn = factory.CreateConnection();
conn.ConnectionString = "...";
conn.Open();
DbCommand cmd = conn.CreateCommand();
cmd.CommandText = "SELECT * FROM MyTable";
DbDataReader rdr = cmd.ExecuteReader(); and so on...
|
|
|
|