|
Which Visual Studio version are you using ? is VS 2005 or Vs 2008 ? If VS 2005, please select AJAX Enabled web Site instead of Normal web site. Hope that may resolve your problem.
Thanks !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hello all
I have 2 textboxes on my aspx site which I want to validate.
I want to make sure that the second textbox value is higher than the first one.
For example:
The user inputs 40 in the first textbox and 20 in the second.
This will give an error since 20 is less than 40.
But if the user types 40 and 60 it should work.
It should also be numbers only
Any ideas?
Cheers!
|
|
|
|
|
What is the issue ? You can easily do it using JavaScript .
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Solved
<asp:CompareValidator ID="CompareValidator1" runat="server"
ErrorMessage="CompareValidator" ControlToValidate="TextBox2" ControlToCompare="TextBox1" Operator="GreaterThan">
</asp:CompareValidator>
|
|
|
|
|
Casper Hansen wrote: Solved
Not Solved..!
He dont want to compare..!
Hewant to chek the value is greater then first..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
I am trying to download to a file on the client from my database, then confirm with an email, and record sucess / failure in the acoount access log. I generate the data, then do the following:
Response.Buffer = true;
Response.ContentType = "text/plain";
Response.AddHeader("content-disposition", "attachment;filename=" + user.UserName + ".AccountActivity.txt");
Response.BinaryWrite(System.Text.Encoding.ASCII.GetBytes(data.ToString()));
Response.Output.Flush();
And fine, I get the Save As dialog, the file saves.
Problem: If I do just as above, the full HTML for the client page is appended to the file, but the email and log are fine.
If I add Response.End(), the saved file is fine, no extra HTML there, but the email and log don't occur.
Is there a way to end the file transfer without ending the page?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
"Rumour has it that if you play Microsoft CDs backwards you will hear Satanic messages.Worse still, is that if you play them forwards they will install Windows"
|
|
|
|
|
If you dont close the response it will keep on adding htmls to the document. If you are only downloading a file, always close the Response.
do the email sending and log before you download if it affects the Response.
Now before you add ContentType , use Response.Clear
and then use your code to download the file.
|
|
|
|
|
Hi all,
I have created one website and try to add google map.If any one knows how to integrate google map api in my website ,pls help me
Thanks Denny
|
|
|
|
|
|
I have developed an application in ASP.NET and C#.
Inititially the application was for a single client with 1 user.
Now I wan't to enhance the application, and turn it in to a platform that many merchants can subscribe to.
The use case is as follows:
"A user will login (assumes user was set up). This user will be a member of a merchant (entity that subscribes to my service).
There can be many users to a merchant, each having different roles in a hierarchy. One of the roles would be a merchant administrator.
There will need to be a special user(s) within the system to create new merchants and users. This user with be a System Administrator.
The merchants can have subscribers (past customers and potential customers) for newsletters et al."
I have envisaged having a merchant table in my database. The user table would have a foreign key to the merchant table. Modelling the 1:m relationship.
My knowledge of the membership provider is limited, and therefore is my use case implementable using the Microsoft provider. If not does anyone have an example which they could share.
|
|
|
|
|
I would start here[^]
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
Hey... you placed the reply in wrong post.
You should reply the original person so that it could reach him.
|
|
|
|
|
1) Why are you reponding to me?
2) Why are you giving information that has already been given?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hello friends,
I am writting a mini-forum web-based application using c#. I need to display the data on a data control. I want to display the data on a data control otherthan the GridView control just like the one I see on this site forum. Which of the (Repeater or ListView) controls is suitable for this purpose and how?
Also, how do I always fetch the latest post and pagging mechnism to the oldest post?
Thanks for your usual assistance and supports.
Tunsten
|
|
|
|
|
I think you can use either of them. Repeater has better grip on html than Listview. You can use it if you want to write your own html totally.
tunsten wrote: how do I always fetch the latest post and pagging mechnism to the oldest post?
For this, you can just sort the query based on post date.
|
|
|
|
|
Hi..
currently i m using asp.net 2.0 with sql server 2000.
actually i m planning to execute the code, which i got from the following link...
http://www.c-sharpcorner.com/Blogs/BlogDetail.aspx?BlogId=283[^]
i need to above coding in C#.NET, so i converted it using the following link...
http://www.developerfusion.com/tools/convert/vb-to-csharp/[^]
while i m trying to run the above code i got the following error...
No overload for method 'Open' takes '1' arguments (xlBooks.Open((Server.MapPath(Request.ApplicationPath) + "\\XLTemplate.xls"));)
As it clearly mentioned that i m supplying the in-sufficient arguments. but i dont know how to resolve it. nearly 13 arguments are there... how to solve it... ?
And also
xlBook = xlBooks.Item[1]; here there is no Item available...
help me plz.
-Karan
|
|
|
|
|
|
Hello Sir,
I have created dynamic table which contains textboxes which counts equal to the value in the text box (for entering number of rows to show) on the page & hence appears it.
Now, I want that when user click to any of the textbox, I want to have its ID so that I will work on it further OR how to know which textbox have been focused.
I m not getting any idea as it is dynamic control.
Please help me!
Thanx.
|
|
|
|
|
When u dynamically add control.at the same time u also add id for each of the textbox in for loop..and then access the id(i.e TextBox) which u want.....
Sharing Of Knowledge Provides Solution....
|
|
|
|
|
Rohit,
I have did it otherwise, text boxes wud not appeared on the page.
|
|
|
|
|
I suspect your question is not clear. If you want to access the controls on the client side, you need to pass the ClientID property through to javascript on the client side. This would be the same no matter how they were created.
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.
|
|
|
|
|
The big issue with dynamic controls is that if you don't create them before page load, they have no viewstate.
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.
|
|
|
|
|
Ok Sir,
but I just want to track which txt box has been focused , or hovering or clicking it a msg to show or will go to the redirected page. It will also work.
Your excellency.
|
|
|
|
|
Hai
i want to send sms from website any one explaine about that , ya i download some model projects but all the project send sms by using web services , i am working with asp.net C#, so help me out friend's
|
|
|
|