|
Hi,
Check for the CommandName of the button inside ItemCommand like this...
public void DataGrid1_ItemCommand(object sender, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
if(e.CommandName == "Insert")
{
do something...
}
}
Thank u..
-- modified at 5:25 Friday 14th April, 2006
|
|
|
|
|
Hi
I am doing a project in ASP.NET and i have 20 links on a page and i want when a user clicks a link its color will be changed and when he click the next one its color will be changed but this color should be different than the color of previous link. So after clicking all the links the color of all the links will be different.plz help me out of it , thankx in advance ,
regards,
tippu
|
|
|
|
|
try this:
var i=0;<br />
var arr = new Array();<br />
arr[0] = "blue";<br />
arr[0] = "red";<br />
arr[0] = "yellow";<br />
arr[0] = "#000000";<br />
<br />
function doClick(link)<br />
{<br />
link.style.color = arr[i];<br />
i = i%20;
}<br />
on page:
<a href="..." onclick="doClick(this);">link 1</a><br />
<a href="..." onclick="doClick(this);">link 2</a><br />
<a href="..." onclick="doClick(this);">link 3</a><br />
<a href="..." onclick="doClick(this);">link 4</a><br />
....
Im not sure but something like this.
|
|
|
|
|
how to form a tree in the webform from the sql database .
please help me ! its very urgent .
|
|
|
|
|
|
Hi
I am developing a web page which extract contents from another site say www.autocheck.com.
For getting contents from this site we need to pass it username,password and some other contents in URL.
My Question is that how can I get the contents of that URL in my own site.
Thanks in advance
Lets work it Out.........!
|
|
|
|
|
Hi
Using Request.Params u can get the contents of the URL
|
|
|
|
|
You may try using the HttpWebRequest[^] object to post data including username,password to that site, then try to read the content from the output stream of the HttpWebResponse object.
|
|
|
|
|
Hi,
I'm stuck with something, and I would really appreciate any help.
Here is what I'm trying to do:
I have a datagrid bound to a dataset(Schema) with columns(GroupModuleName,AccessRight,Description).
In AccessRight columns it's displaying AccessRights like this([]Insert[]Delete[]Select)
if i check the CheckBox and i click the Update Button, table should be update.
I would really appreciate any help or suggestions.
|
|
|
|
|
You can create an event handler for the ItemCommand event of the DataGrid control(if the Update button is placed inside the grid) or the Click event of the Grid. In the handler, you can access the CheckBox control and check the Checked property of the control.
|
|
|
|
|
In my Project One DataGrid in that AutoGenerated column is false. Only three Column i m binding with DataGrid
ModuleCode Description AccessRightd
in AccessRight Column i m placing PlaceHolder in that i m displaying AccessRight
in database AccessRight value like this i m storing( Insert|Delete|Select|View|...etc).
i m displaying in DataGrid like this([]Insert[]Delete[]Select[]view)
now i want to update the accessright,here i want help.
how to do,
second thing is that is there any other way to display like this .
help me ..it's urgent.
|
|
|
|
|
Have you tried what I said? Anyway, you can see the sample code from the site DataGridGirl[^]
|
|
|
|
|
hello guys,
i was wondering about the possibilities to show a web form as a pop up form (just for selection eg searching) and possibly get the ID of the selection when the user selects an item eg after search result
Anyone ever tryed?
thx
|
|
|
|
|
hi rahman,
just a bit of javascript coding is needed.
use window.open('mywindow','',formname.aspx,height=400,width=400)
have good times.
Tirthadip
|
|
|
|
|
Thank you,
however I think I needed to provide bit more details in the first place ...
ok, I have a page which is using a master page file. I want to click a button and then show another page eg 'popupform.aspx'.
Can i call the code you provided from the code behinde of my original form? I kept it in the html portion as below:
<asp:content id="Content1" contentplaceholderid="ContentPlaceHolder1" runat="Server">
function ShowWindow()
{
window.open('mywindow','','formname.aspx',height='400',width='400')
}
asp:Button ID="Button1" runat="server" Text="Button" "OnClick"="ShowWindow"
But it raises the error of: "Error 1 'ShowWindow' is not a member of 'ASP.getpostpage_aspx'."
it looks like it down't like that javascript part.
any ideas?
PS: I kept onclcik inside double quites becuase it was not allowed in the message
-- modified at 4:11 Friday 14th April, 2006
|
|
|
|
|
Rahman Mahmoodi wrote: asp:Button ID="Button1" runat="server" Text="Button" "OnClick"="ShowWindow"
<asp:Button ID="Button1" Runat="server" Text="Button"></asp:Button>
on Page_Load:
Button1.Attributes["onclick"] = "ShowWindow(); return false;";
That way is used for server control. However, you just add an HTML control is OK.
<input type="button" onclick.="ShowWindow();">
|
|
|
|
|
Yes, Thank you.
This one worked however the size is not working so it still shows the form as full screen but the max button is disabled.
|
|
|
|
|
Rahman Mahmoodi wrote:
window.open('mywindow','','formname.aspx',height='400',width='400')
window.open('formname.aspx','subwin','height=400,width=400,menubar=no,toolbars=no ,scrollbars=no');
|
|
|
|
|
When I send Email using:
SmtpMail.SmtpServer = "...";
SmtpMail.Send("webmaster@....", "gyokusei@inbox.com", "This is a test!", "Testing...... Thanks!");
It works fine but the mail message (.EML file) isn't delivered. It stores in Queue folder.
I configured the IIS well as MSDN showed. And I can use Outlook 2003 to send an email to webmail(inbox.com) with my IP address.
Can you help me solve this problem?
-- modified at 0:13 Friday 14th April, 2006
|
|
|
|
|
I want to make sure that all access to the Web Application is done thru the Secure URL. Is there a way to check this at the login page. I see that IIS has some settings to require secure communication but this is hosted and we have no control over this. Or do we need to ask the host to set this property in IIS.
Thanks
|
|
|
|
|
|
I want to make connect to a certian folder on a server and then
search the files inside it. Can anyone tell or point me to how it can be accomplished.
Any help is appreciated
Thanks,
|
|
|
|
|
Hi there
You don't tell us much
Is it a webserver we are talking about? In that case, unless the serveradministrator has allowed the "browse folders" function - then you won't be able to.
If it's a webserver you are administering yourself, then there are a couple of ways to do this. Let us know a bit more.
Kind regards - Jakob
*********************************************
Three kinds of people in the world:
- Those who can count..
- Those who can't!
10 kinds of people in the world:
- Those who understand binary
- Those who don't
|
|
|
|
|
yes, its a web server and I administer it.
I want to start at a main folder and search layers down for a particular file.
Could you let me know the ways we could do this.
Thanks,
|
|
|
|
|