Click here to Skip to main content
       

ASP.NET

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
AnswerRe: saving and retrieving recent activitiesmemberjkirkerx26 Feb '13 - 11:04 
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.
Generalasp.net export to excelmemberpppppsssss24 Feb '13 - 0:50 
In a asp.net page how do i give export to excel option using javascript .
GeneralRe: asp.net export to excelmvpSandeep Mewara24 Feb '13 - 1:18 
You should always try first and then post specific issue that you face.
 
For now, following similar discussion will help you: Export html table to excel using javascript[^]
Sandeep Mewara
Microsoft ASP.NET MVP 2012 & 2013

[My Blog]: Sandeep Mewara's Tech Journal!
[My Latest Article]: HTML5 Quick Start Web Application

AnswerRe: asp.net export to excelmemberryanb3126 Feb '13 - 10:37 
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.

Questionhow to linbutton's text on another page button click eventmemberMember 870181323 Feb '13 - 2:56 
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);
                    //Response.Redirect("?projectid=" + projectid);
                }
                
            }
            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
AnswerRe: how to linbutton's text on another page button click eventmvpSandeep Mewara23 Feb '13 - 3:28 
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.
Sandeep Mewara
Microsoft ASP.NET MVP 2012 & 2013

[My Blog]: Sandeep Mewara's Tech Journal!
[My Latest Article]: HTML5 Quick Start Web Application

GeneralRe: how to linbutton's text on another page button click eventmemberMember 870181323 Feb '13 - 6:55 
if it doesn't make sense....i vil change linkbutton's text on webform1.aspx
GeneralRe: how to linbutton's text on another page button click eventmemberMember 870181323 Feb '13 - 22:40 
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
GeneralRe: how to linbutton's text on another page button click eventmvpSandeep Mewara23 Feb '13 - 22:46 
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.
Sandeep Mewara
Microsoft ASP.NET MVP 2012 & 2013

[My Blog]: Sandeep Mewara's Tech Journal!
[My Latest Article]: HTML5 Quick Start Web Application

Questionhtml5 with vs2010membermanoranjan gupta23 Feb '13 - 2:07 
Wink | ;) how to create playlist in html5
i m using html5 along with visual studio2010
end of previous song next song should be start .....

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web03 | 2.6.130523.1 | Last Updated 23 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid