|
As you may already know that the Microsoft TreeView controls renders differently with IE and non-Microsoft browsers, and IMO you'll have 2 options here:
+ Keep using the control, but you need to edit the source code of the control to make it work with non-Microsoft browsers like Netscape.
+ Don't use the Microsoft IE controls, use a third party control instead which support multiple browsers, you can check out the control gallery[^].
|
|
|
|
|
i have 2 tables, table1 and talbe2, these table have relationship: master-detail, for example:
talbe1: id_dept
dept_name
......
table2: id_staf
staf_name
id_dept
i use a datagrid to diaplay data from table1, when i click to id_dept at each rows in datagrid, i want to move detail_page2.aspx and it will display all infomation about staf in dept that has that id_dept. how can i do it??? i want to use Session variable. pl help.
thanks alot.
still alive
|
|
|
|
|
HI,
Why do u want to use session variable.U can Directly use Templete column on 1st page and on ItemDataBound Event u can use this:
if(e.CommandName == "Select")<br />
{<br />
Response.Redirect("detail_page2.aspx?id_dept="+ e.Item.Cells[0].Text);<br />
}
Try this.
Thanks and Regards.
|
|
|
|
|
ok, i will try. thanks any way.
still alive
|
|
|
|
|
I have tried to do this problem but it do not work. the CommandName function does not exist.
you can tell me agian, ok? thanks alot.
still alive
|
|
|
|
|
hi try this :
<asp:TemplateColumn SortExpression="checklist_isoclause" HeaderText="ISO Clause"><br />
<HeaderStyle Font-Bold="True" ForeColor="Black"></HeaderStyle><br />
<ItemStyle Width="300px"></ItemStyle><br />
<ItemTemplate><br />
<asp:LinkButton runat="server" CssClass="GridItemLink" CommandName="Select" Text='<%# DataBinder.Eval ( Container.DataItem, "checklist_isoclause" ) %>'/><br />
</ItemTemplate><br />
</asp:TemplateColumn>
All the best.
|
|
|
|
|
<asp:LinkButton runat="server" CssClass="GridItemLink" CommandName="Select" Text='<%# DataBinder.Eval ( Container.DataItem, "emp_name" ) %>'/>
Put this all in Templete column.
|
|
|
|
|
<asp:LinkButton runat="server" CssClass="GridItemLink" CommandName="Select" Text='<%# DataBinder.Eval ( Container.DataItem, "emp_name" ) %>'/>
Put this all in Templete column.
|
|
|
|
|
Hi
how can i get the processes running in remote system
can someone please help me with this.
Jiny
|
|
|
|
|
|
hey Thanks
i have done this but it works only on ones own machine ,
if the hostname or ip adrress is of remote machine, it says access denied
how do we come over it
|
|
|
|
|
I'm sorry not to see your preponse, but I was offline right after posting the reply at the end of the day, I then had some beers with my friends and watched World Cup football games.
Here, there are a couple of things that I'm not clear and you might want to check:
+ Does the remote machine sits in the same domain as yours?
+ Does the ASP.NET process identity has access to the remote machine. Basically, your ASP.NET application runs under the local account (ASPNET or NETWORK SERVICE) which has limited privilege, so you try to impersonate a domain acount which can access the remote machine when you use the Process class. For more information, see ASP.NET process identity[^]
Btw, if you cannot wait until seeing my reply, you feel free to post a new thread with your new access denied issue so that other people can shed some light on it.
|
|
|
|
|
hello
i keep the dropdownlist in formview in EditItemTemplate and have the sqldatasource of both(dropdownlsit and FormView) is different.i want to update the detail of person along with dropdownlist selecteditem through inline coding. i did specified the commands (insert, update, select, delete ) in configuration mode.
Regards,
srinandan mall
-- modified at 3:46 Friday 23rd June, 2006
|
|
|
|
|
There are a couple of ways to do that:
+ You can use the data binding expression with the Bind method to set the SelectedValue property of the dropdownlist.
+ You can define an Update parameter for the SqlDataSource control, and provide the event handler for the Updating event of the datasource control or the ItemUpdating event of the FormView. In the handler, you can get reference to the dropdownlist to get the selected item, then assign the value to the Update parameter.
|
|
|
|
|
Hi all,
I am working in C#.NET.I want to pick a file name on Button Click event.
Actually when I click on the Button it should open a open file Dialog box as we have when we want to open a document in MS Word or any other and that link should get display in the textbox.
Please help me this.
Thanks in advance.
|
|
|
|
|
protected void button1_Click(object sender, System.EventArgs e)
{
Stream myStream;
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.InitialDirectory = "c:\\" ;
openFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*" ;
openFileDialog1.FilterIndex = 2 ;
openFileDialog1.RestoreDirectory = true ;
if(openFileDialog1.ShowDialog() == DialogResult.OK)
{
if((myStream = openFileDialog1.OpenFile())!= null)
{
// Insert code to read the stream here.
TextBox1.Text = openFileDialog1.FileName;
myStream.Close();
}
}
}
Praveen
-- modified at 9:30 Friday 23rd June, 2006
|
|
|
|
|
Hi! All,
I used the dropdownlist control to binding the data from database. But I couldn't display all DataTextField because the data too long to display and I can not enlarge to the size of the web control. then I am thinking how the dropdownlist can be displayed all of text. Then I decided to use the tooltip to show the text in downdownlist when the data is binded.
Is there someboby know how to use the tooltip in dropdownlist control in ASP.NET 2.0
thank you for advance
Jib
|
|
|
|
|
probably this article will help you.
http://www.codeproject.com/useritems/xNetComponents.asp
Best Regards,
Apurva Kaushal
|
|
|
|
|
i hv a datagrid ,in that grid i hv dropdwonlist and the list is dynamically populated through database..i wnt to validate the dropdwn list through javascript,the problem is that the dropdwnlist is underthe datagrid and their ids is change hw can i pick that id of the dropdownlist..
and some one tell me that u can pass the id as the parameter...Would some one help me...........
thanks
|
|
|
|
|
One more thing what you can do is call the function on onchange event of the dropdownlist in the ObItemDataBound event of the datagrid and there pass the client ID to the function.
Best Regards,
Apurva Kaushal
|
|
|
|
|
if u dont mind plz send me the code ,bcz i m new in asp.net...how can i use obitemdatabound event of datagrid...plz send me some code snippts
waiting for ur rply
thks
|
|
|
|
|
Onitemdatabound is the event which fires for all the items of the datagrid. In that event first you need to find out the dropdownlist control and then attach the on change event to that.
Here os the code for the onitemdatabound event of the datagrid:
<code>public void test(object sender, DataGridItemEventArgs e)
{
if(e.Item.ItemType==ListItemType.Item || e.Item.ItemType==ListItemType.AlternatingItem)
{
DropDownList dd = (DropDownList)e.Item.FindControl("ddl");
string str = "javascript:return ValFunc(" + dd.ClientID.ToString() + ");";
dd.Attributes.Add("onChange",str);
}
}</code>
And here is the code which will be there in html section:
<code><asp:DataGrid id="DataGrid1" style="Z-INDEX: 101; LEFT: 248px; POSITION: absolute; TOP: 144px"
runat="server" Width="464px" Height="80px" OnItemDataBound="test">
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<asp:DropDownList ID="ddl" Runat="server">
<asp:ListItem>oooo</asp:ListItem>
<asp:ListItem>aaa</asp:ListItem>
<asp:ListItem>bbb</asp:ListItem>
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid></code>
And this is the javascript function for validation:
<code><script language=javascript>
function ValFunc(ss)
{
alert(ss.value);
return false;
}
</script></code>
Best Regards,
Apurva Kaushal
-- modified at 3:22 Friday 23rd June, 2006
|
|
|
|
|
thks alot ,u solve my prblem
i m really thnkfull to u?
|
|
|
|
|
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi all,
I am developing website using 2005.when I run my webpage it works fine.BUt when I tried to find my .dll file I could not find it out.
Normally in .net 2003 .dll present in working folder,But this is not true for .net 2005.
Now when I uploading website My web.config file shows error,I think this is due to absence of .dll file.
Error IS
Server Error in '/' Application.
--------------------------------------------------------------------------------
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customerrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customerrors> tag should then have its "mode" attribute set to "Off".
<configuration>
<system.web>
<customerrors mode="Off">
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customerrors> configuration tag to point to a custom error page URL.
<configuration>
<system.web>
<customerrors mode="RemoteOnly" defaultredirect="mycustompage.htm">
Any help is really appreciated.
Regards,
-- modified at 3:41 Friday 23rd June, 2006
|
|
|
|