|
Well, this one opens new pop up window for me. try it in your code.
also notice return false; this will prevent postback
Button1.Attributes.Add("onclick", "window.open('www.codeproject.com'); return false;");
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
thanks Yusuf, I'll try it out...
I just wondered wether the conversion in Visual Studio worked correctly...
|
|
|
|
|
I want to validate each page controls which is inherited from master page. i call this javascript in master page, it is not working, my question is how can we pass each page id to the javascript function when we run the website all the pages form id is showing as aspnetForm.
|
|
|
|
|
call this function and simply add the id of some control.. like i have on button control ...
btn_add.Attributes.Add("onclick", "return abc('" + fu_file.ClientID + "','"+ddl_sub.ClientID+"');");
i call a function which is on master page and pass two id of two controls.. and in fuction use this id and do watever u want to do.
|
|
|
|
|
what is this
fu_file.ClientID and ddl_sub.ClientID. Is it a controls id, then how the javascript file find the form of this controls.
what is "fu_file" and what is "ClientID"
|
|
|
|
|
they find id of these controls and u can find id of any control and in java script u can get id of any control like this
function abc(ID,id)
{
return confirm('Are you sure you want to save the file '+ document.getElementById(ID).value + ' in process '+document.getElementById(id).value+ "." );
}
|
|
|
|
|
|
Object cannot be cast from DBNull to other types.
code is flag = System.Convert.ToInt32(ord["flag"]);
i have declared it as int and it can be null in table.
can any body give solution for this.....
quickly.......
|
|
|
|
|
use
int flag = (ord["flag"] == DBNull.Value ? default(int) : ord["flag"]);
please replace the datatype of flag in default(int) to the data type of flag
|
|
|
|
|
|
take Abhishek reply and apply casting.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
yah..
need to cast means
Convert.ToInt32(ord["flag"])
Now It will work.
|
|
|
|
|
here you have declare the variable as nullable.
<nullable> int
try it.
|
|
|
|
|
Hi...
Is there any DateTimePicker Control in ASP.NET....I am using VisualStudio2008...
Thanks..
|
|
|
|
|
use ajax calender control....
|
|
|
|
|
How to use AJAX control....I have't worked on AJAX yet..
Please provide me few sample codes...
Thanks...
|
|
|
|
|
just search on google u can find many free datetime picker control..
|
|
|
|
|
http://www.asp.net/learn/ajax-videos/video-124.aspx
is there links like..
get vb code
get c# code
|
|
|
|
|
see this article[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hello friends,
i'm new to sharepoint developing with asp.net
i need to customize the microsoft's contact management system without creating new
project
how can i proceed this ?
thanks in advance
|
|
|
|
|
Please can anybody tell me,
how to check background printing is enabled or not in client browser through code either in javascript or C#. I have to enable it or atleast to show message to end user to enable it for proper output.
|
|
|
|
|
I have a website hosted in Server which I want to expose it to one client(outside network).I have opened a server side port.Do I need to open client side port also.If not what is the thing which needs to be done?
Thanks in advance
Rao
|
|
|
|
|
You can do it by restricting IP Address in IIS for that site.
|
|
|
|
|
avi_dadi2002 wrote: I have a website hosted in Server which I want to expose it to one client(outside network).I have opened a server side port.Do I need to open client side port also.If not what is the thing which needs to be done?
Does it any thing related with ASP.Net. If you want to share your sites only with your one client, then you have to place the site in a same network. The better option is contact with your Network Team, they can give you better idea to host the side.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
you need to change ur local IP to static IP(contact sys admin)
Then u can access your site over the Internet..
or u just share your desktop to UR client..using logmein or teamviewer..etc
Regards
Rajeesh MP
|
|
|
|