|
Hai,
Can u please suggest me how to build a context menu in asp.net 2.0....
-Priya
|
|
|
|
|
A context menu is made using client script (e.g. Javascript), so ASP.NET doesn't really have anything to do with it.
---
b { font-weight: normal; }
|
|
|
|
|
|
Hi,
Nothing is a stupid qn. I dont know which version u r using. You can achieve this by,
In the Design window, Select the Gridview and goto Properties. In that select Events....and Double Click on the appropiate enent u want from the left side event listing.
Hope u got it easily...
Regards,
Jay
|
|
|
|
|
Thanks Jay.
another simple solution
|
|
|
|
|
Is it possible to set Visual Studio 2005 so that I shouldn't indicate UTF-8 coding in Advanced Settings for each new *.aspx and *.aspx.cs ?
If somebody knows, answer, please!
-- modified at 3:24 Friday 11th August, 2006
HilSoft
|
|
|
|
|
How to do string encryption and decryption in ASP.NET using C#.
sudheer
|
|
|
|
|
probably you want to have a look at these links:
http://www.dotnetthis.com/Articles/Crypto.htm
http://www.example-code.com/csharp/aesEncryptCC.asp
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi!
How can we achieving Paging in DataList?
Send me a sample coding....
T.Prabu
|
|
|
|
|
You can use custom paging in datalist.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi!
I want to pass the value from one page to another page:
In my maker page i used datagrid and i hv to take that dg's row value (through., DataRowView) i transfered that value to nxt page:
Here in ItemDataBound event i wrote the coding for get the values to the DG's Row..
here i retrieve the value frm the DAtaRowView in a variable in a name as temp.
In ItemCommand Event i wroth that Response.Redirect("Models.aspx")
Now this temp value also transfer to that Models Page.., I tried the QueryString
like: Response.Redirect("Makers1.aspx?val="+temp); but its in Item Command event., but
that value in ItemDataBound Command so., It assigns only null value to that one..,
Here i can't use session also...
How can we solve this one...?
T.Prabu
T.Prabu
|
|
|
|
|
You can use command argument property to first set the value and then in itemcommand event you can access that value and use it.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Can you let me know abt that command argument?...
|
|
|
|
|
suppose you are having an image button whose click event you are trying to capture in itemcommand event, then that image button will be having a property called command argument which you can set in the item bound event of the datagrid. And in itemcommand event you can access that command argument property, it will give you the corresponding value of that row.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi Apurva.,
I am newer. i want toretrieve that imagebutton's imageurl wheich is in the datagrid.
I can retrieve that value only in databound event using datarowview...
I want to pass this value to next page...
In item command event only i can use response.redirect... with the query string..
I tried as u say, commandargument in itemcommand event it shows only the null value..,
If possible send me the sample coding...,
And also for the Paging in datalist also...
Thanks & Regards!..
T.Prabu
|
|
|
|
|
suppose you are having an image button in a template column of datagrid, then this code you have to put in your onitembound event:
<br />
ImageButton ii = (ImageButton)e.Item.FindControl("imgbtn");<br />
ii.CommandArgument=drv[0].ToString();
here drv[0] is datarowview and the value which you need to put.
And in itemcommand event you can retrieve that value like this:
string str = e.CommandArgument.ToString();
Prabs frm PGP wrote: And also for the Paging in datalist also...
For custom paging you can get so much of article on net. you just need to search through google.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi!
Thanks Apurva...
I got the solution with the help of u..
Thanks.,
Bye...,
T.Prabu
|
|
|
|
|
always welcome....
Best Regards,
Apurva Kaushal
|
|
|
|
|
i am creating a project in which i am creating a navigation links .which is use to redirect from page to page.
I want to create navigation links such a way that links should appear based on user rights.
For example if a person is login as administrator he will see all 30 links
If he is user he will see only 4 links. I am fetching the urls from database
Pls help me it is urgent
|
|
|
|
|
You can dynamically generate hyperlink control and then display it, depending upon the count from the database.
Best Regards,
Apurva Kaushal
|
|
|
|
|
U can put these Hyperlinks in rows or column dependinf on u...
then in javascript what u can do is check whether user is admin or not..
write these Code:
<%if(session("user")="Admin" %>
t1.style.display='block';t2.style.display='block';
<%end if%>
<%if(session("user")="NOTADMIN" %>
t1.style.display='none';t2.style.display='none';
<%end if%>
--t1,t2 here stands for ids of row1,row2 respectively
--Block will display the row and none will not display that row
--this way u can do for n number of rows
|
|
|
|
|
Hi, How to Sort Sort a DataGrid on Client Side.
|
|
|
|
|
Ask this girl[^] for the sample code.
|
|
|
|
|
Hi,
I have an aspx page which refers to a master page. In the child page, I have to refer and retrieve the text of a server side textbox of the same page.And this text should be displayed in the browser's status bar.To display the text in status bar, I can use window.status in javascript. But, how can we access that server control's value from script??
Any suggstions....Please welcome....Thanq
-Priya
|
|
|
|
|
I usually solve this by typing out the value from the server control to the page to a javascript variable that i can use by the script later. Typically:
myLiteral.Text = ""
myLiteral.Text += "var myVar=" + theValue;
myLiteral.Text += ""
Controls.Add(myLiteral)
Then use the variable myVar on the client!
|
|
|
|