|
sir i did not get ur point
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas
|
|
|
|
|
Dim str As String = "var i=confirm('ok?');alert(i);"
Page.ClientScript.RegisterStartupScript(Me.GetType(), "message", str, True) ---try this one mr
|
|
|
|
|
how should i use the value of i in the conditional operator (code behind file)
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
iam using an iframe which is editable it is working fine but the when iam pressing enter it is getting the cursor long distacnce in the before word how to get that cursor closer bottom to the top text ...
in my ifame it is looking like this when press enter
example1
emamle 2 like this it is comming how can i make it closer.like our code project sending message
|
|
|
|
|
i want a code for calculating the length of one textbox 1 and that count should be displayed in another textbox 2, if the length exceeds 160 characters it should display a alert message one credit is used want to continue ? if he press ok allow him to continue and count it as asecond credit if he press cancel does not allow him to enter text in textbox 1 .
please provide me the code , iam using asp.net and c#
plz help me in this . urgent.
|
|
|
|
|
Hi I wouldn't use the word Urgent, people tend not to reply to the post when you do this.
Im sure what you are posting has an answer on google somewhere its not that complicated, search for validating input lengths
|
|
|
|
|
pavankumar makena wrote: please provide me the code , iam using asp.net and c#
plz help me in this . urgent.
Please don't say that. To you, it's urgent. To us, you're just another guy who is not willing to do any work, or use google.
You need to read some basics.
1 - C# does not run on the client side, it cannot show the user an alert
2 - javascript is what runs on the client. Doing this on the client is pretty trivial, often you need to write some code to pass the client side Id of your textbox through to your script, but in this case you will just write event handlers, and can pass the textbox through to your script using 'this'
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I want a sample code for how to retrieve the values of dynamically generated text box controls at runtime. One thing I ve more number of textbox controls and also generated ids for that controls. i added this controls into a placeholder. but i dont know to retrieve those values in the action of button...
can someone help me...
Thanks
Gopinath.R
|
|
|
|
|
Do you mean you want to catch the values of the textboxes when the button is clicked?
|
|
|
|
|
Yes I meant the same thing which u got... can u give some small example to catch the values... plz help me...
Gopinath.R
|
|
|
|
|
surely it would just be as simple as using a button event and then applying all the textbox values to string values.. or am I missing the point
|
|
|
|
|
Do you mean on the server or client ?
If the server - your main issue is going to be that dynamically created controls need to be created before page load, or viewstate is lost
If the client - your main issue is going to be knowing the client side Ids of your controls ( but this is far easier to deal with )
For the server, I'd create a hidden control, and store the values as XML or something, so that you can get them from viewstate
for the client, just write javascript creating an array of names using the CLientID property of your textboxes.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello friends,
My gridview contains a Select button and one more link button. If I click a link button, how i will get the index of the row for which i click the button...Help me...Thanks ...in advance..
Amit
|
|
|
|
|
I think you want to use something like
GridView.rows etc and then specify which row
hmm hope that makes sense!
i would search google for how to find the index plenty of exanmples out there
|
|
|
|
|
Hi all,
What is the use of using our own web service in asp.net instead of using ordinary class files for defining functions.. what is the benefit of using web service.......
Thnk u!
Ashok
|
|
|
|
|
I think you've missed the point of webservices. They are not used for what you're describing. They are used to provide an online interface for other programs to interact with your code. You'd never choose a web service over normal classes, you would define a service as a public interface that uses your normal classes, for things you want to offer a third party access to.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Dear all,
I want to expires the client's browser history. I am using the following codes
Response.Buffer = true;
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d);
Response.Expires = -1500;
Response.CacheControl = "no-cache";
but it is not working properly.
I want to expires the client history when client press the Back or Forward button from the browser.
Thanks in advance.
Deepak
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Hi ! All Friends,
I have put textbox in a form and i want to user that he enter only date in that box in "MM/dd/yyyy" how can it possible. pls help me. i want to use Regularexpressionvalidator control
harun
|
|
|
|
|
Check this link
http://regexlib.com/DisplayPatterns.aspx[^]">
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Thanx Dear. its working
harun
|
|
|
|
|
Hi, I would like to know the difference in implementation. Both of the ways would run the stored procedure. Which way is better?
Thank you.
SqlConnection con = new SqlConnection();
SqlCommand inboxDS;
con.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ToString();
inboxDS = new SqlCommand("InsertMessage", con);
inboxDS.Parameters.Add("senderUserName", Session
inboxDS.Parameters.Add("UserMessage", FCKeditor1.Value);
inboxDS.CommandType = CommandType.StoredProcedure;
con.Open();
inboxDS.ExecuteNonQuery();
con.Close();
/*************************************************************************************************
SqlDataSource inboxDS = new SqlDataSource();
inboxDS.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ToString();
inboxDS.InsertCommandType = SqlDataSourceCommandType.StoredProcedure
inboxDS.InsertCommand = "InsertMessage";
inboxDS.InsertParameters.Add("senderUserName", Session["user_n"].ToString());
inboxDS.InsertParameters.Add("UserMessage", FCKeditor1.Value);
inboxDS.Insert();
|
|
|
|
|
Dear All,
i have parent aspx page that have two controls, iframeParent and a buttonParent.
i have given child aspx page as the source of iframeParent control. child page has a buton control buttonChild.
now my requirement is
when i click the button(buttonParent)in the parent page the click event of the button(buttonChild)of child page should be called. is there any way to do this?
Thanks in advance
Ramesh.Kanjinghat
|
|
|
|
|
Hello all! I am new to the ASP.NET arena. I have a college project that I am doing that requires me to build an e-commerce website (my own idea, that will be online after it is completed). I need to know several things. I will list them below, and if anyone can point me toward some good research material, I would greatly appreciate it!!! The list of needed topics are as follows:
- Stored Procedures (within ASP.NET)
- Link ASP.NET login control to my SQL Server 2005 database (not through the Membership class)
- Anything else that may be of help that relates to Data access and manipulation within ASP.NET
I hope that I am not being to vague here! If anyone has any suggestions that could be of direct assistance, that would be great. However, I am
simply asking for some pointers to some valid research material. I have some books coming in the mail, but I need to get a head start on this project, as it is due in 6 weeks! Any help would be greatly appreciated! Thanks.
|
|
|
|
|
MrColeyted wrote: Stored Procedures (within ASP.NET)
http://www.dotnetjunkies.com/Article/9AE62C44-3841-4687-B906-2F6D4A5A4622.dcik
|
|
|
|
|
Stored procs are easy to call in ADO.NET. ASP.NET has nothing to do with it.
Roll your own membership system, then you have complete control
ASP.NET has nothing to do with database access. However, ADO.NET works exactly like it does in winforms.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|