ASP.NET
|
|
 |

|
You don't have to use asp.net objects for all your html needs
Just use html, and then the asp.net objects just for the data fields, this is just a basic example.
There are 2 ways to set dimensions and alignments on html, one is using html, width="600" and the other using css style="width: 600px;".
I prefer using straight CSS, but when creating html for emails, you should use both.
<table cellpadding="0" cellspacing="0" border="0" width="600" style="width: 600px;">
<tr>
<td style="width: 295px; text-align: left; padding-left: 5px;">Your Object</td>
<td style="width: 295px; text-align: left; padding-left: 5px;">Your Object</td>
</tr>
</table>
FYI:
If you use padding, you have to subtract the padding amount from the total width of the element, some browsers will add the 2 together.
|
|
|
|

|
In a asp.net page how do i give export to excel option using javascript .
|
|
|
|
|

|
Javascript will somehow have to kick off server side code. But, using jquery's .ajax call you can do this. It will depend on how you have things setup. JS could pass the name of a stored proc that gets executed. Or it passes the value from a hidden field. Somehow you have to tell it what to export.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|

|
this is my code on webform1.aspx
<asp:GridView ID="GridView1" runat="server" Width="100%" SkinID="GridView"
OnSorting="GridView1_Sorting" OnDataBound="GridView1_DataBound"
OnRowDataBound="GridView1_RowDataBound" AutoGenerateColumns="false"
OnPageIndexChanging="OnPaging" ShowHeader="true" AllowPaging="True"
ShowHeaderWhenEmpty="True" AllowSorting="True"
onrowcommand="GridView1_RowCommand" PageSize="20">
<asp:TemplateField ItemStyle-HorizontalAlign="left" ItemStyle-VerticalAlign="Top">
<HeaderTemplate>Action</HeaderTemplate>
<HeaderStyle />
<asp:LinkButton ID="lnkverify" runat="server" Text="Verify" CommandName="Application_verify" CommandArgument='<%#Eval("RequestId") %>' />
<asp:LinkButton ID="lnkreject" runat="server" Text="Reject" CommandName="Appication_reject" CommandArgument='<%#Eval("RequestId") %>' />
on webform.aspx.cs
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
try
{
if (e.CommandName == "Application_verify")
{
int RequestId = Convert.ToInt32(e.CommandArgument);
Response.Redirect("~/ApplicationDetails.aspx?RequestId=" + RequestId);
}
if (e.CommandName == "Appication_reject")
{
int RequestId = Convert.ToInt32(e.CommandArgument);
}
}
catch (ApplicationException ex)
{
lblsuccess.Visible = true;
lblsuccess.Text = ex.Message;
}
catch (Exception ex)
{
StackTrace st = new StackTrace(new StackFrame(true));
StackFrame sf = st.GetFrame(0);
int line = sf.GetFileLineNumber() - 1;
if (ex.Message.StartsWith("Thread") == false) { Response.Redirect("~/HandleError.aspx?ID=" + ex.Message, false); }
}
}
on Applicationdetails.aspx page i have a button control.on this button click event ,i want to change linkbutton's(this linkbutton is on webform1.aspx) text from "verify" to "verified".pls help me
|
|
|
|

|
Member 8701813 wrote: on Applicationdetails.aspx page i have a button control.on this button click event ,i want to change linkbutton's(this linkbutton is on webform1.aspx) text from "verify" to "verified".
Does not make any sense. You are on another page and want some text to be changed on a page which is not currently in view!
What it sounds is, after you click this button, whenever you visit the 'Webform1.aspx', you should see a new text. If so, on button click, set a flag (store it somewhere if needed as per workflow) that is accessible in webform1 page. When loading that page, use this flag and based on it's value set the text.
|
|
|
|

|
if it doesn't make sense....i vil change linkbutton's text on webform1.aspx
|
|
|
|

|
could u tell me how to set a flag pls
i have written my code...when i visit webform1.aspx 2nd time ,that record is not shown .....ie verfied record...so i have to set linkbutton's text to "verifid"....pls help me...what is d syntax to get linkbutton's text...pls help me
|
|
|
|

|
Member 8701813 wrote: i have to set linkbutton's text to "verifid"....pls help me...what is d syntax to get linkbutton's text.
You sound totally lost/new and would be difficult to help like this. It would be better for you to read a book and start of. Know basics before starting to code. It would help you.
|
|
|
|

|
how to create playlist in html5
i m using html5 along with visual studio2010
end of previous song next song should be start .....
|
|
|
|
 |
|
|
General
News
Suggestion
Question
Bug
Answer
Joke
Rant
Admin