|
Hi i have One TextBox control,i want to compae the textbox value to a variable which is declared as public in the service side if the textbox value is grater than that serviece side variable the page has to submit when i clik on the button other wize the should not submit to the server Can Any buddy Plz help me out in this ,Plz
Thnks &Regards
Annup
|
|
|
|
|
Compare the value in client side.
For that you can
1. Declare a
2. Assign the server variabl'es value to the above control element using some javascript at the end of the HTML ie once the page is loaded fully..
3. Write a clientside on-click event and check textbox value. You must have onclick="return ValidateTextBoxvalue()" .... if you omitreturn statement any server side button submit the page everytime.
Thanks,
Arindam D Tewary
|
|
|
|
|
I have developed my asp.net 2.0 with vb2005 and sqlserver 2005 on WIndows XP. I have created a virtual directory from IIS mapped to teh website folder.
I want to test this site on a Local Area Network(Workgroup).
I tried something like this from one of the pc on the network by typing in internet explorer
http://192.168.1.5/ASPLearning/Default.aspx
where 192.168.1.5 is teh IP address of the IIS Computer
ASPLearning is the website Name as given in IIS
The page did not display.
Please is there anything i need to do? pls help
t.aransiola
|
|
|
|
|
hi
can any body explain what is the difference between carriage return (\r) or you can say Enter and New Line character(\n)..
both are treated as same..
in .net(c#) if you write a file using stream writer
like this.
StreamWriter writer=new StreamWriter("c:\\test.txt");
writer.Write("Hello\r\n------\r\nHow are You.");
writer.Close();
will print this..
Hello
------
How are You.
or if you use
StreamWriter writer=new StreamWriter("c:\\test.txt");
writer.Write("Hello\r------\rHow are You.");
writer.Close();
then the results will again be same as
Hello
------
How are You.
and finally if you use like this
StreamWriter writer=new StreamWriter("c:\\test.txt");
writer.Write("Hello\n------\nHow are You.");
writer.Close();
then again the result will be same as
Hello
------
How are You.
then what is the difference between \r and \n
please explain
regards
Vishal
Thanks & Regards
Vishal Sharma
vishalsharma556@yahoo.co.in
|
|
|
|
|
There are two different type of line breaks used. Unix type systems use \n while CP/M type systems use \r\n.
The \r character is carrege return (CR). It was used to move the printer head to the starting position.
The \n character is line feed (LF). It was used to feed the printing paper one line.
The CR+LF combination was used to start a new line by moving the print head and feeding the paper. This combination was kept unchanged when system arrived where a printer was no longer the only means of output.
The interpretation of these characters depend on what you use to view the file.
If you use the TYPE command in a command window to display the files, you will see that the \r version of the file will show only the last line of the file, as the cursor will return to the start of the line instead of moving on to the next line, overwriting each previous line.
The \n version of the file should really display like this:
Hello
------
How are You.
But it doesn't any more. The system nowadays interpret a single \n as a \r\n.
If you open the files in notepad, it will interpret any combination as a valid line break.
The Environment.NewLine constant contains the line break that is used on the current system.
---
single minded; short sighted; long gone;
|
|
|
|
|
hey man
thanks for your reply
but i just got more confused
as whatever you told i know theorically..
but if both are same then what is advantage of one over another..
regards
vishal
Thanks & Regards
Vishal Sharma
vishalsharma556@yahoo.co.in
|
|
|
|
|
You should output the kind of line break that the recieving system expects. That way you make sure that it will always work.
If you output the wrong type of line break it will work in some applications that are more relaxed when interpreting the text, but it may fail in other applications.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi guffa,
i like your Post.....
please give me reply if u have.
I am trying to do the following, it seems like it should work
Dim IE As InternetExplorer
IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
Dim proxyObject As New System.Net.WebProxy("http://148.244.150.57:80/", True)
IE.Proxy = proxyObject
IE.Navigate("http://www.whatismyip.com")
basically when it goes to whatismyip.com it should show me the same address as the proxy, currently what is happening is that ie is starting up but then it sort of freezes and no page loads, any ideas how to fix this? (Also is there a way to set the proxy in the ie through vb or c#?)
Dotnet
Dotnet
|
|
|
|
|
Don't post a completely unrelated question as a reply. Post it as a new thread.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
I am trying to do the following, it seems like it should work
Dim IE As InternetExplorer
IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
Dim proxyObject As New System.Net.WebProxy("http://148.244.150.57:80/", True)
IE.Proxy = proxyObject
IE.Navigate("http://www.whatismyip.com")
basically when it goes to whatismyip.com it should show me the same address as the proxy, currently what is happening is that ie is starting up but then it sort of freezes and no page loads, any ideas how to fix this? (Also is there a way to set the proxy in the ie through vb or c#?)
Dotnet
|
|
|
|
|
I use this function to get logged calls of specified date when i use this function it works but i want to specify my date in DATEADD but it says invalid column.
Public Function GetLoggedCallsMember(ByVal CName As String, ByVal Intl As String) As Data.DataSet
Dim NowD As String = DateTime.Now.ToString("MM/dd/yyyy")
Dim s As Date = DateAdd(DateInterval.Day, 7, CDate(NowD))
Dim strSQL As String
Dim obj As Datalayer.Database = New Datalayer.Database
strSQL = "Select Who,Department,Priorities,Responds,Subject,DateSend,Last_Time_Updated from View_Calls where ToWho = '" & CName & "'and DateSend > DateAdd(Day, 10,'3/8/2007' )"
GetLoggedCallsMember = obj.GetDataSet(strSQL)
obj.Close()
Exit Function
End Function
nzibi
|
|
|
|
|
Hi All
I have a page in which Paging is true. It display different records. And if records are more the it display other records on another page like 1234. There is a search technique. When I click for search, Records are found but with the following Error. Also records are not displayed on Datagrid.
System.Web.HttpException: Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount
Any Help regarding this.
Thanks in Advance.
|
|
|
|
|
Hi
This error is displaying 'cos if you are in some other page (lets say 5th page). Then you are trying to search some other criteria. If there is no record then it should go to first page. PageCount always start from 0
So in Page Event in your code, set PageIndex = 0 before searching. Hope this solves your problem
Rate this message. Thank you. Harini
|
|
|
|
|
Thank u very much, But I get this error not all time but some time.
|
|
|
|
|
hello
can anybody have faced this problem How can i set IE proxy using c# with Asp.Net.
Thanx
Dotnet
|
|
|
|
|
Hi frinds this is my first post. I m working with Asp .net 2 and have a problem with adding a css to the server side controls of an aspx page .Please help me .
|
|
|
|
|
You can always use any stylesheet class (CSS class) using the attribute CssClass of any server side control.
But make sure the your aspx file is having a link to the .css file.
Link to the CSS file:
======================================
add the following line with your css file name.
<head runat="server">
<title>CSS practice</title>
<link rel="Stylesheet" href="yourCssFileName.css" />
</head>
Thanks,
Arindam D Tewary
|
|
|
|
|
Greetings techies!!!!
I am having a datagrid and a textbox seperate. I would like that when I click a certain datagrid row it must display an item of the specific row in a texbox.
I'm using C#.NEt
Kind Regards
Mpho
|
|
|
|
|
(1) write code in this grid event
Grdplace_RowDataBound---
e.Row.Attributes.Add("onclick", "SetValue('" & e.Row.Cells(0).Text.ToString & "')")
//e.Row.Cells(0)-- 0 denote the column value whateve you would like
(2) Write java script method...........
function SetValue(val)
{
document.getElementById('textboxid').value=val ;
}
Parwej Ahamad
g_parwez@rediffmail.com
|
|
|
|
|
hi all,
I am using RadChart.Net2 assembly.In that ,i am getting the bar chart in 2 dimensional.But i want the bar chart in three dimensional.
Please give me the reply how to get 3D bar chart
Thanks in advance....
|
|
|
|
|
Hi friends,
Please give me details reg garbage collection in .net and how the garbage collector knows the object is unused and to free it. Is we have to provide any code for GC to know about the unused objects. Its asked in my interview.
Expecting help.
Thanks in Advance,
Regards,
Prya
|
|
|
|
|
|
Hi All,
I have to do one task. First i need to copy files from vss and run bat files.i have a document with all steps.
step 1: we have to take files from vss by using getlatestversion option and copy it to some where in local.
step2: In Dos command prompt i have to run 2 .bat files
i have done step1 but when i run bat file i am getting Error like this
The selected file is not a valid visual studio solution file " The following files specified on the command line : devenv.exe could not be found and will not be loaded
could you pls tell me what is the problem here.
Thanks to All Repliers.
|
|
|
|
|
Hi all,
I want to send a meeting request in outlook with an attachment.How can i send it from code.Also if possible i want to disable the deny button in the request. How can i achieve it???
Thanks in adv
|
|
|
|
|
hi all
give me a code please
--if password is entered incorrectly 3 times then lock the username and display a warnong message "account has been locked,please contact the system administrator."
give me a code please.
Gayatri
Gayatri
|
|
|
|