|
i want to identify the datatype in the textbox by validating the value in the textbox by custom validation for checks whether the value is of the type "integet" or "char".with the identification i can able to responsd the user that example "please enter only numeric values"
The above can be acheived by either by specific functions if available or by
server custom coding method answer me guys ...
coding makes me interesting in dot net
|
|
|
|
|
Or you can just use a CompareValidator[^] control, setting its Operator property to DataTypeCheck .
|
|
|
|
|
Hi everyone!! how can i create and show custom right click menu options in Web Forms?
Thanks!
|
|
|
|
|
Hi there,
You might check out the event oncontextmenu in js....
<< >>
|
|
|
|
|
Hi,
But would you give me some details. im a beginner in asp.net.
Thanx enjoycrack!!!
-- modified at 3:23 Thursday 3rd August, 2006
|
|
|
|
|
Hi,
You just google them... or you might check out this one clickety
<< >>
|
|
|
|
|
suppose in my asp.net page there will be a thum image and whenever user will place the mouse pointer over the image then i want to show original big image in same page through ajax but not by atlas.means just tell me how could i fetch and show a image in a page from the server by ajax.pls give me a sample code.
tbhattacharjee
|
|
|
|
|
hi friends
Name of the folder given by the user at run time. if any space in that name i am replacing it with _ The code
If fname.IndexOf(" ") >= 0 Then
fname = Replace(fname, " ", "_")
End If
But it comes inside the loop but not replacing. Please Help.
Thanks & Regards
Prya
|
|
|
|
|
Why don't use
fname= fname.Replace(" ","_");
MHF
|
|
|
|
|
suppose my xml is
<document type="Sales Invoice" transactions="1">
<imagepath>\\90104-server2\FTP Upload\New Look Retailers Ltd\001;29552;2;240706;150931\00000008.tif
<archiveimagepath>\\s55701\P2D\FTP Archive Redundant\New Look Retailers Ltd\001;29552;2;240706;150931_1009\00000008.tif
<type>Expense
<invoicenumber>6058
<invoicedate>23/05/2006
<invoicetaxpointdate>NOT_FOUND
<currencycode>GBP
<netamount>4957.25
<taxamount>867.52
<grossamount>5824.77
<transaction>
<lineno>1
<orderno>PP31287
<description> ACCOUNT NO: N003 - ORDER NO: PP31287 - LINKED REF NO: CO5701856PL401 - RE: COVENTRY STORE - TO SUPPLY - INTERNAL BRANDING SEGMENTATION WORKS FOR - COVEN -114Y STORE
<quantity>1
<price>4957.25
<nettvalue>4957.25
<taxvalue>
<transaction>
<lineno>1
<orderno>PP31287
<description> ACCOUNT NO: N003 - ORDER NO: PP31287 - LINKED REF NO: CO5701856PL401 - RE: COVENTRY STORE - TO SUPPLY - INTERNAL BRANDING SEGMENTATION WORKS FOR - COVEN -114Y STORE
<quantity>1
<price>4957.25
<nettvalue>4957.25
<taxvalue>
so my master part is Document tag and there could be many detail part like Transaction tag.
so pls help me how could i read this type of master detail xml data .specially detail part in a loop by XmlTextReader.pls help me with source code.
tbhattacharjee
|
|
|
|
|
hi,
how to download file.
i want click event time download,
i am using asp.net1.1,
plz help anyone
thanks
|
|
|
|
|
Not sure I can get your clue...
But one user want to download file, you just give them the url ...
<< >>
|
|
|
|
|
In my application i want do some thing once when page is loaded for first time i put this in
if(!Page.IsPostBack){
/code here
}
BUT this run 2 time when page is loaded why? and How can solve it
MHF
|
|
|
|
|
|
hi ,
can any one help me out writting code for Advanced search in ASP.NET
because i am a fresher .
CDHU
|
|
|
|
|
maybe this is useful
http://www.codeproject.com/aspnet/DotLuceneSearch.asp
MHF
|
|
|
|
|
plz make this difference clear for me
what is the difference between oninit and onload.
i want to make the object only once, but these methods will be called again on button click.
where should i call the object
either in oninit
or in onload
|
|
|
|
|
They are just two events that occur in the beginning of the life cycle of a control.
When you click a button, it will cause a postback. A postback is a request to the server to create a page. When the page is created, all controls in it is created. If you don't create your control in every postback, it would be missing from the page when it loads in the browser.
---
b { font-weight: normal; }
|
|
|
|
|
just put your code into !Page.IsPostBack block....
<< >>
|
|
|
|
|
protected void btnDisplayPopUp_Click(object sender, EventArgs e)
{
Page.RegisterStartupScript("MyPopUpScript", @"window.open('http://server_name/app_name/pop_up_window_page.html');");
}
in aspx page:
<aspx:button runat="server" id="btnDisplayPopUp" onclick="btnDisplayPopUp_Click" text"open="" pop="" up="" window"="">
THANKS buddy, some one has told me this solution for pop-up window.
but
it opens a new page not a pop-up window
means....
not a page like having no menu-bar and no tool-bar.
i just want to have a window like alert on bottom-right corner by e-buudy.com that "you have signed in"
thanks a lot..
|
|
|
|
|
hi Mairy,
Try this.
Dim strScript As String = "" & _
"window.open('webform1.aspx',''," & _
"'height=200;width=200px;left=150;top=100;menubar=no;resizable=yes;scrollbars=no;status=no;titlebar=no;toolbar=no');" & _
""
Response.Write(strScript)
Thomas
|
|
|
|
|
I'll just answer your next question after following Thomas' advice: "Yes, that shows a popup window, but the layout of my page gets all distorted".
That is because you are writing out the script before the doctype tag. That will make the browser ignore the doctype tag, so the page is rendered in Quirks Mode.
Use RegisterStartupScript to add the script to the page.
Also: The second parameter is the name of the window. Use a proper name, or use '_blank' if you want to open a new window.
---
b { font-weight: normal; }
|
|
|
|
|
I have the following html control on asp.net page (2.0):
<input id="ButtonPing" style="width: 91px" type="button" value="Ping" onclick="CallServer2()"/>
and also have the following javascript defined:
<head runat="server">
<title>Get Map</title>
<script language="javascript" type="text/javascript">
function CallServer2()
{
var arg = document.all['DropDownListTrailer'].value;
var context = new Object();
document.getElementById('DivStatus').innerText = "Please Wait ...";
CallServer(arg, context) // AJAX
}
function ReceiveServerData(arg, context)
{
document.getElementById('DivStatus').innerText = arg;
}
</script>
</head>
The above code will only work on Internet Explorer and does not work on Mozilla.
Under Mozilla, when I click the button, the click event is never finished.
Does anyone have the same problem ? I have been fighting this for the last week.
Rookie Programmer
|
|
|
|
|
That is because you are using IE-specific code.
The document.all collection is not part of the standard, and only exists in IE.
---
b { font-weight: normal; }
|
|
|
|
|
Thank you for your help
I comment out all lines except one, but still have the same problem.
function CallServer2()
{
var arg = "xyz" //document.getElementById('DropDownListTrailer').value;
// var context = new Object();
document.getElementById('DivStatus').innerText = "Please Wait ...";
// CallServer(arg, context)
}
Rookie Programmer
|
|
|
|