|
how to disable close(x) button in a pop up window using javascript
|
|
|
|
|
javascript : document.getElementById('btnid').disabled = true;
this will do
|
|
|
|
|
Abhishek Sur wrote: javascript : document.getElementById('btnid').disabled = true;
this will not disabled the popup Close[X] button. .
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Oh .. My bad..
I have overlook on the Window close button.
Windows close button cannot be disabled.
|
|
|
|
|
It is not possible to disable the close(X) button of the pop up window using script.
|
|
|
|
|
Hi,
Are you talking about the standard javascript alert window or something customized one. If it is JavaScript one then I would say that its not possible but for customized one you can do it using document.getElementById(controlID).style.visible = false.
Either you love IT or leave IT...
|
|
|
|
|
Hi friends
i am using asp.net 3.5 i written mail sending functionality , sometimes i am getting following error msg
Mailbox unavailable. The server response was: Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Mail.SmtpException: Mailbox unavailable. The server response was: Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
can any one help me to fix this problem.
thank you
|
|
|
|
|
mayby you could post your code su we can see what the problem might be.
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
Before delivering the mail, handshaking[^] is happening and you are getting error there. So I believe, this could be a server issue.
|
|
|
|
|
Hi,
For JS i need the image button id which is in EditItemTemplate.I got the id which is in FooterTemplate by using
gvDataBase.FooterRow.FindControl("ibtnSave").UniqueID
Pls anyone tell how to get that id..........
|
|
|
|
|
(ImageButton) imgBtn = (ImageButton)e.Row.FindControl("YourImageButtonID");
EditItemTemplate is in your GridViewRow object!
In Word you can only store 2 bytes. That is why I use Writer.
modified on Tuesday, April 28, 2009 9:35 AM
|
|
|
|
|
Hi
i Have a application in which i have to sync two database from two other site Can i use two web.config file in one website
|
|
|
|
|
You can use more then 1 connection string with different key in single web.config file
|
|
|
|
|
But i have to change the Membership and role in both database
|
|
|
|
|
Ravi_21 wrote: i Have a application in which i have to sync two database from two other site Can i use two web.config file in one website
Yes. you can use multiple web.config file in your application. But, in this scenario, you don't need to use multiple web.config.
You can create multiple connection string for different database.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
HI
my requirement is different i have two website both have registration form i now i have to sync the data of both website
i have one another website which have the admin section through which i approve the Users that are register in both the two website
i m using asp.net membership and role
here is the problem
|
|
|
|
|
hello,
i have two textboxes on my web page. When focus is on 1'st textbox the input language was English when focus comes on 2'nd textbox and user want to enter the text the language was chinese...
If any one have the solution for it.. please help me.
thnx. in advance..
|
|
|
|
|
Following link can be useful for your problem:
http://forums.asp.net/t/1134838.aspx
Either you love IT or leave IT...
|
|
|
|
|
hi , i try to draw a virification image on my page
and i try some code and it worked alleady but the problem is all controls on the page not display
i want to draw this but without i lose the page controls
here the code i wrote
// Initialize graphics
Rectangle rectF = new Rectangle(0, 0, 100, 150);
Bitmap pic = new Bitmap(100, 150);
Graphics g = Graphics.FromImage(pic);
g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
g.FillRectangle(new SolidBrush(Color.White), rectF);
//g.DrawRectangle (Pens.Aqua , rectF);
Font font = new Font("Times New Roman", 12);
// Set font direction & alignmentString
StringFormat format = new StringFormat();
format.Alignment = StringAlignment.Center;
// Finally, draw the font
g.DrawString(GenerateRendomText(), font, System.Drawing.Brushes.Black, rectF, format);
//Response.ContentType = "image/jpeg";
// Set the content type
Response.ContentType = "image/gif";
// Output the image to the OutputStream by using the Save method
pic.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif);
// Dispose objects
pic.Dispose();
MD_NADA
|
|
|
|
|
GenerateRendomText()?
do you have a try/cach around this structure?
And does the catch nog get reached?
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
I am looking how to flip pages from thumbnail of a pdf or doc or rtf files in a particular folder.
I hope this is the right place for this post.
Thanks In advance
MJ
|
|
|
|
|
i have few columns in csv file. In one of the column, contains data like this
94122
94233-405
98766-987
6789
The data containing hypens is unable to read to datatable. It showing blank in datatabel in that place. please let me know, how can i get that data
if (_fileexten == ".csv")
{
string str = Path.GetFileName(_filename);
OdbcConnection conn = new OdbcConnection("Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=" + _fpath + "\\;Extensions=asc,csv,tab,txt;Extended Properties=\"HDR=YES;IMEX=1;\";Persist Security Info=False");
conn.Open();
string sql_select = "select * from [" + str + "]";
OdbcDataAdapter myCommand = new OdbcDataAdapter(sql_select, conn);
myCommand.Fill(myDataSet, "csv");
dt = myDataSet.Tables[0];
conn.Close();
myCommand.Dispose();
}
G. Satish
|
|
|
|
|
Steve Ballmer will deliver the keynote at Microsoft Tech-ed India 2009 Conference in Hyderabad. There will be announcements related to Windows 7, Silverlight 3, Microsoft Surface Computer, Tata Nano, IPL, etc. and Microsoft will also provide free certification to all onsite attendees.
What: Microsoft Tech-ed India 2009
Where: Hyderabad
When: May 13-15, 2009
Register: http://www.microsoft.com/india/teched2009
There is also a "Top Architect" contest being organized. http://virtualtechdays.com/toparchitect/default.aspx
|
|
|
|
|
Hi Manish,
Thanks for the useful information. Are they going to discuss about Visual Studio 2010, Sharepoint Server 2010 and Exchange Server 2010?
Either you love IT or leave IT...
|
|
|
|
|
Hi friends
i am using asp.net 3.5 i written mail sending functionality , sometimes i am getting this error msg
Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
can any help to fix this problem.
thank you
|
|
|
|