|
hi
i am using IE 7 browser.
i am using javascript for popup window.
this is worked on Microsoft internet explorer.
but same code not worked on IE7.
pls help me
my code
function openForm()
{
window.open("NewScore.aspx","Title","status=no,resize=no,toolbar=no,scrollbars=no,width=700px,height=580px,maximize=no,always on top=100 left=400");
}
and in codebehind----
btnAdd.Attributes.Add("OnClick", "openForm()");
so pls help me.
Gayatri
|
|
|
|
|
niki_nilu wrote: this is worked on Microsoft internet explorer.
but same code not worked on IE7.
IE7 and Microsft Inetrnet Explorer are same.
Probably you have popup blocker on.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Any javascript error you are getting?
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
hi
i have no error.
pls tell me what's problem.
its imp for me
gayatri
Gayatri
|
|
|
|
|
Try changing the settings in Internet Options, Open Popup windows in New Window/ New Tab. (by default tab). Change it to open in new window
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
I hope this will solve your problem...
btnAdd.Attributes.Add("OnClick", "openForm(); return false;");
puranonnet@hotmail.com
www.ibrinte.com
|
|
|
|
|
i need a text box by which user can enter time in hour:Min Formate
Ex 08:24 (Hr:Min)
i mean Text Box Which Allow user to Enter only 2 number Before : and 2 num after :
Raghvendra
|
|
|
|
|
Use regular expression to find value is in expected pattern. If you use this kind of textbox in many forms, I suggest making it as a custom control with all validation logic embedded. You can reuse it by dragging and dropping from toolbox.
|
|
|
|
|
Sir i need A test Box Which shows fromate Like( : )
So user can enter only 2 num Before : and 2 After : ,
so sir how i will make hole custom textbox , i mean could u plz give me some related code for it
Raghvendra
|
|
|
|
|
Member 4659001 wrote: So user can enter only 2 num Before : and 2 After : ,
You can hook JS keypress events of the texbox and check for the pattern. Regular expressions can be used here to check user has entered in the expected format. Here is a good RegEx tutorial, http://www.regular-expressions.info/[^]. Consider getting a good book on ASP.NET and Java Script.
|
|
|
|
|
Sir this time i m very specific, i need to create control , The control provides the dots between the numbers automatically. An example is the IP address control in many Windows networking dialogs, which is a combination of four three-character fields that accept only numbers.
i need same
Raghvendra
|
|
|
|
|
Here is javascript function may help u to solve ur problem...
var cnt=0;
function Format(e)
{
if(e.keyCode <= 57 && e.keyCode >= 48 )
{
var str=new String();
str=document.getElementById("txt").value;
if(str.length<=4)
{
cnt=cnt+1;
if(cnt==2 || str.length==2)
{
var str=document.getElementById("txt").value;
str=str+":";
document.getElementById("txt").value=str;
}
if(document.getElementById("txt").value=='')
cnt=0;
if(cnt>3 && str.length>4)
e.keyCode=0;
}
else
e.keyCode=0;
}
else
e.keyCode=0;
}
|
|
|
|
|
Hi ! All
How to screen sharing over Internet by using destop or webbase application
harun
|
|
|
|
|
Don't repost. This is considered as rude.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
You can use Microsoft SharedView. Here is the link:
SharedView
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
I am using repeater control in my page and repeater control has nested checkboxlist control,on one button click inside same repeater control,i am adding listitems to the checkboxlist control. the listed items add successfully into checkboxlist control.now i am want to get checkboxlist items checked value on another button inside repeater control.
Plse give me sugession on this.
My Handler for checkboxlist is not working.
Dim Cbl_Groupname As CheckBoxList = CType(ri.FindControl("ChkLst_Groupname"), CheckBoxList)
AddHandler Cbl_Groupname.SelectedIndexChanged, AddressOf Me.ChkBoxLsGroupName
I add this handler in repeater control itemcreated event.
|
|
|
|
|
Instead of handler, try ItemCommand event of repeater. Also use CommandArgument and CommandName in combination with this to solve further issues. In the same event, you can find checkbox list by ...
((CheckBoxList)e.Item.FindControl("ControlName"))
puranonnet@hotmail.com
www.ibrinte.com
|
|
|
|
|
Hai all,
i have a wep page and written some code within try catch block.
i have a messagebox(javascript) and i want to show ,if any error occurs in my page
try
catch ex as exception
msgbox(ex.message)
exit sub
end try
but my msgbox is not showing my error,instead it is displaying nothing.
but if i do with response.write in catch block,it is displaying the error.
If i want to show only in messagebox,
how can i display,
r information i am usig vs2003 with sqlserver2000.
It is possible in vs2005 but how to do in vs2003
if any body have idea,plz let me know.
thanks in advance
kissy
|
|
|
|
|
Kissy16 wrote: try
catch ex as exception
msgbox(ex.message)
exit sub
end try
You can not show a message box from code behind, as it is executed on sever.
What you need to do is that if there occurs an error, render the error message to client side and call the javascript function there to show the message box.
Kissy16 wrote: r information i am usig vs2003 with sqlserver2000.
It is possible in vs2005 but how to do in vs2003
Approach will be same for both the versions.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hello,
I have a Datalist.and i have taken textbox, radiobutton,fileUpload control as my requirement. I want to Give JavaScript validation on these control. which is in EditItemTemplate of DataList..How to Give javaScript validation?
|
|
|
|
|
hi all,
I wud like to export data from asp.net gridview to pdf format.Can any1 let me know how to go abt it?i tried response.addheader method its not working..is there any other way?
T.Balaji
|
|
|
|
|
Hi,
You could the the techniques in the following article to iterate through the data:
http://www.c-sharpcorner.com/UploadFile/DipalChoksi/exportxl_asp2_dc11032006003657AM/exportxl_asp2_dc.aspx?ArticleID=000c64fb-8a22-414a-8247-984335aaa0eb
And then use the following free library, iTextSharp, to put it into PDF format:
http://itextsharp.sourceforge.net/
This should do the trick for you.
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
how to remove the time part in the date display wen displayed in the datagrid ... when the columns are created during the runtime . the code snippet is
oledb.Open();
OleDbDataAdapter ad =new OleDbDataAdapter("select PTID as [Patient Id] ,PTName as [Patient Name],AppHospId as [Approved Hospital],AppDocId as [Approved Doctor],AppDt as [Approved Date ] from APPT where ICID='"+Ah+"'and UHID Is Null and AppSpecId='"+ SpecId.SelectedItem.Text.ToString()+"'and AppDt>=DateValue('"+F_txt.Text +"') And AppDt<=DateValue('"+T_txt.Text +"')",oledb);
DataTable ds=new DataTable();
ad.Fill(ds);
DataGrid1.DataSource=ds;
DataGrid1.DataBind() ;
DataGrid1.Visible=true;
oledb.Close();
i want the Approved Date column to display only the date not the time part like (12/09/2008) and not as (12/09/2008 12:00 am).. can anyone help me out with this
|
|
|
|
|
You can convert it in the query. Look at the CONVERT function if you are using SQL server.
jaya86 wrote: select PTID as [Patient Id] ,PTName as [Patient Name],AppHospId as [Approved Hospital],AppDocId as [Approved Doctor],AppDt as [Approved Date ] from APPT where ICID='"+Ah+"'and UHID Is Null and AppSpecId='"+ SpecId.SelectedItem.Text.ToString()+"'and AppDt>=DateValue('"+F_txt.Text +"') And AppDt<=DateValue('"+T_txt.Text +"'
Ever heard about SQL Injection?
|
|
|
|
|
hi jeyaraman,
give like this
select convert(varcghar(10),approveddate,103) as appddate from .....
T.Balaji
|
|
|
|