|
U will have to use datakeys for this as in 2005 u will not get the value of hidden column...
|
|
|
|
|
have you any examples of doing this?
|
|
|
|
|
try this on item datacommand event:
Try
Dim oGridViewRow As GridViewRow
oGridViewRow = CType(CType(e.CommandSource, Control).NamingContainer, GridViewRow)
ID = CInt(GridView1.DataKeys(oGridViewRow.RowIndex).Value)
If e.CommandName = "DeleteTrans" Then
DeleteRecord()
BindGridView()
ElseIf e.CommandName = "Edit" Then
Response.Redirect("frmLoanPayOffView.aspx?id=" & ID & "&info=" & e.CommandName)
End If
Catch ex As Exception
End Try
Hope it helps u??
|
|
|
|
|
U have to use javascript.... try this
<br />
<script type="text/javascript" language="javascript"><br />
function fupdate(id)<br />
{<br />
location.href='NewPage.aspx?Id=' +id;<br />
}<br />
|
|
|
|
|
And in Template Field...
<br />
<asp:TemplateField><br />
<ItemTemplate><br />
<a href="javascript:fupdate('<%# DataBinder.Eval(Container.DataItem, "Id") %>')">Edit</a><br />
</ItemTemplate><br />
</asp:TemplateField><br />
|
|
|
|
|
Got this working.
Thanks for the help.
|
|
|
|
|
How can we return a url from one form to another form?
|
|
|
|
|
Can you please elaborate a little?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Instead of using response.redirect we can use return url method....but i dint know abt return url....so i cant give enough info abt it...
|
|
|
|
|
Kasi Viswanathan wrote: How can we return a url from one form to another form?
Passing values from one form to another ? Use Querystring
|
|
|
|
|
Can u send me one example for tat.... if possible?
|
|
|
|
|
What difference between and ?
and
What difference between 'paddin' and margin?
|
|
|
|
|
Its better to check yourself i think by creating a new web applciation
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
padding is on the inside whereas margin is on the outside of a box:
padding: distance between content and border of container.
margin: distance of an object to its neighbours.
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
HI,
I have been facing the problem since some days.....
When i am Binding a gridView to a List<myclass> the column orders in the gridView comes in Alphabetical order... But I want the column orders as I have Added to the List<myclass>.....
How can I do this......
Any idea....
heartly welcomed
Sangram
(A battle with self)
Life is simple, we are the ones makes the living difficult
|
|
|
|
|
Hi,
Is there any free msi file creator utility for asp.net web applications available, could you provide information on such tools?
I tried using VS.NET deployment project, but its confusing when adding dlls. Our application fetches dlls from a directory, which is placed with the aspx files. While adding these to the deployment project, it gives lots of dependency errors and most of the dlls are duplicated, while building. And it takes around 30 minutes for the build to finish.
Regards,
Blumen
|
|
|
|
|
Hi All,
Can any one tell me what is the problem here? I am using ASP.NET 2005 and on menu click event I need to open page which is nothing but a div tab and it contains few combo and a textbox with ok and cancel button.
Everything works fine but I need a proper GUI as it contains Country, Select Sector, select sub industry and select company this should all come in proper way as show below:
Country combo
Select Sector combo
Select Sub Industry combo
Select Company combo
textbox
But it shows something like this:
Country combo
Select
Sector combo
Select Sub
Industry combo
Select
Company combo
textbox
I want left column in one line is Select Sector should in one line.
Please help me...
Following is the code:
<div id="p1" style="display: none; background-color:#FBFBFB ;border:1px solid Blue">
<table width="40%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="text" width="250px">
Country</td>
<td>
</td>
<td align="left">
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown1" runat="server" TargetControlID="ddlcountry"
Category="Country" PromptText="Select a Country" ServicePath="AutoComplete.asmx"
ServiceMethod="GetCountry" />
<asp:DropDownList ID="ddlcountry" CssClass="text" runat="server" Width="250px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="left" class="text">
Sector</td>
<td>
</td>
<td >
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown2" runat="server" TargetControlID="ddlSector"
ParentControlID="ddlcountry" Category="Sector" PromptText="Select a Sector" ServicePath="AutoComplete.asmx"
ServiceMethod="GetSector" />
<asp:DropDownList ID="ddlSector" runat="server" CssClass="text" Width="250px"> </asp:DropDownList> </td>
</tr>
<tr>
<td align="left" class="text">
Sub Industry
</td>
<td>
</td>
<td>
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown3" runat="server" TargetControlID="ddlSubIndustry"
ParentControlID="ddlSector" Category="Sector" PromptText="Select a SubIndustry"
ServicePath="AutoComplete.asmx" ServiceMethod="GetSubIndustry" />
<asp:DropDownList ID="ddlSubIndustry" runat="server" CssClass="text" Width="250px"> </asp:DropDownList></td>
</tr>
<tr>
<td align="left" class="text">
Company Name
</td>
<td>
</td>
<td>
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown4" runat="server" TargetControlID="ddlCompany"
ParentControlID="ddlSubIndustry" Category="Company" PromptText="Select Company"
ServicePath="AutoComplete.asmx" ServiceMethod="GetTicker" />
<asp:DropDownList ID="ddlCompany" runat="server" CssClass="text" Width="250px"> </asp:DropDownList> </td>
</tr>
<tr>
<td align="left"> </td>
<td>
</td>
<td>
<asp:TextBox ID="myTextBox" runat="server" autocomplete="off"
CssClass="text" Height="14px" Width="249px">
</asp:TextBox>
<ajaxToolkit:AutoCompleteExtender runat="server" ID="autoComplete1" TargetControlID="myTextBox"
ServicePath="AutoComplete.asmx" ServiceMethod="GetCompletionList2" MinimumPrefixLength="0"
CompletionInterval="1000" CompletionSetCount="12" />
</td>
</tr>
<tr>
<td align="left">
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td align="left">
</td>
<td></td>
<td align="right">
<input type="button" class="button" id="btnOk" onclick="myfunct1();" value="OK" />
<input type="button" id="btnCancel" class="button" value="Cancel" runat="server" onclick="myfunct();" />
</td>
</tr>
<tr>
<td align="left">
</td>
<td>
</td>
<td align="left">
</td>
</tr>
</table>
</div>
|
|
|
|
|
For the left column (first one) give the width in percentage not in pixals and try to give in every row first column then check i think thats the problem
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Thanks for the reply sandeep, but I have tried that also. Actually I am using it as a PopupControlExtender of Ajax..
|
|
|
|
|
Are you writing any javscript to hide and show that div tag
the div tag's style should be like this
(when you are showing)
style="Display:'';visibility:visible;"
(when you are hiding)
style="Display:none;visibility:hidden;"
try this
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Since its a PopupControlExtender I just need to pass the id of div tag and it works fine. I am just writing javascript on cancel button and the code is below:
function myfunct()
{
document.getElementById('p1').style.display='none';
return false;
}
What might be the problem I dont know???
|
|
|
|
|
Problem is div tag is not properly formated
try this one because i had same faced issue in past
your div tag style should look like this
visibility:hidden;display:none (hidden)
visibility:visible;display:''(Show)
javscript to hide
var divTag=document.getElementById(divId);
divTag.style.display="none";
divTag.style.visibility="hidden";
javascript to show
var divTag=document.getElementById(divId);
divTag.style.display="";
divTag.style.visibility="visible";
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
|
Sorry but can you explain one more time What are you trying to so .......
If i m not wrong you have a div tag that contains one table and this div tag you have to make hide and show .. but you are facing some alignment issues ok ..
can you post your whole aspx page ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Can you post your funct1() javascript method ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|