User Profile
Collapse
-
i tried puttin a seperate function for each extension also like pdf,xls and doc but it still asks if i wanna save...is it not possible to open the file directly? -
open file without saving
im trying to open a document...but every time i get a dialoge box asking if i want to pen,save or cancel.i just want to open the document.can someone tell me wot im doing wrong?here's my code
Code:if (objView.extension == ".pdf" || objView.extension == ".xls" || objView.extension == ".xlsx" || objView.extension == ".doc" || objView.extension == ".docx") {
-
How to display binary data as pdf
im storing a pdf file in binary format (image) in db.any idea how to retrieve the binary data and display it as pdf? -
i'l keep that in mind...
i dont know how to do the delete.can you suggest some way?...Leave a comment:
-
Delete Row in GridView
ok,i managed to do this.now im having a problem deleting a record.can you tel me what to do.here's my code
Code:<asp:GridView ID="GridView1" runat="server" onrowdeleting="GridView1_RowDeleting" > <Columns> <asp:CommandField ShowDeleteButton="True" HeaderText="Delete"> <HeaderStyle HorizontalAlign="Left" /> </asp:CommandField>
-
Put value from textbox to grid without using database
Can somebody tell me how to put values from a hidden field into a grid without using a database on click of add button.basicall y im entering some values into textboxes and i've to put these values into a gridview first.so i was taking all the values in a hidden field and trying to put them in a grid.but i have no idea how to do it. -
yes,ImageButton "imgDlEvnt" causes the postback.and yes when i say the whole page posts back i mean i notice, in the browser, that everything is submitted to the server and that everything is refreshed upon returning?...Leave a comment:
-
-
the imageselect event that i'd posted earlier is the 1 that causes the postback...ther e is no other function and the datalist dlEvent is within the update panelLeave a comment:
-
-
-
can you tell me how.i did the following
Code:<div style="width: 550px; float: left;"> <asp:UpdatePanel ID="updpEvnt" runat="server" UpdateMode="Conditional"> <ContentTemplate> <table> <tr>
Leave a comment:
-
i tried puttin the panel in a seperate table also as follows:
Code:<div style="width: 550px; float: left;"> <asp:UpdatePanel ID="updpEvnt" runat="server" UpdateMode="Conditional"> <ContentTemplate> <table> <tr>
Leave a comment:
-
i commented out the line...but still no difference.the whole page is still getting refreshed...Leave a comment:
-
this is my onItemCommand code for the datalist
Code:protected void imageSelect(object source, DataListCommandEventArgs e) { dlEvnt.SelectedIndex = e.Item.ItemIndex; // string id = dlEvnt.DataKeys[dlEvnt.SelectedIndex].ToString(); BLL_NewsAndEvents objNE = new BLL_NewsAndEvents(); objNE.Id = dlEvents.DataKeys[dlEvents.SelectedIndex].ToString(); objNE.Key
Leave a comment:
-
yes it is....it is a datalist
Code:<tr> <td colspan="4" style="width: 540px"> <asp:UpdatePanel ID="updpEvnt" runat="server" UpdateMode="Conditional"> <ContentTemplate> <%--OnSelectedIndexChanged="selectedIndexChanged"
Leave a comment:
-
ajax updatePanel
Hi.i want to use a ajax updatepanel.on postnack i only want the datalist "dlEvnt" to get refreshed.but thats not happening.can anybody tell me what to do.
Here's my code
edit: massive code block removed. --insertAlias -
How to enlarge image on mouseover in gridview
hi;
Im using a gridview to display images in 1 of the column...but the size of the images is very small.is there anyway to enlarge the image on mouseover or even without mouseover by adjusting the column width or something.i would prefer doing it by mouseover.can anybody help me...my code is below
Code:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="news_evnts.aspx.cs" Inherits="news_evnts"
-
nested datalist and link button
how to open datalist containing multiple images on click on link button in selectedIndexCh anged
Code:protected void SelectedIndexChanged(object sender, EventArgs e) { dlEvntImages.Visible = true; BLL_NewsAndEvents objNE = new BLL_NewsAndEvents(); objNE.title = dlEvents.DataKeys[dlEvents.SelectedIndex].ToString(); objNE.getImageDetails();
-
how to find a label control within nested datalist on selectedIndexChanged?
how to find a label control within nested datalist on selectedIndexCh anged?
Code:protected void SelectedIndexChanged(object sender, EventArgs e) { dlEvntImages.Visible = true; BLL_NewsAndEvents objNE = new BLL_NewsAndEvents(); objNE.title = dlEvents.DataKeys[dlEvents.SelectedIndex].ToString(); objNE.getImageDetails(); if (objNE.tests)
No activity results to display
Show More
Leave a comment: