|
Hi,
I have a grid view and one of the templatefield header is for "delete image". I want to remove this TemplateField column for print purpose.
Please suggest
Pavas
|
|
|
|
|
Just have a 'print view' setting, and use that to dynamically include that column or otherwise. Not sure if the grid view will play nice with you, but I do this with repeaters all the time.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I did not understand the concept. Could you please tell me what does dynamic means...
Is there a sample code where I can look at.
Pavas
|
|
|
|
|
mpavas wrote: Could you please tell me what does dynamic means...
It means that you write code to set the visibility of the column based on a code behind variable.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Hello Everyone,
Can anybody let me know how to save and retrieve the images from the database into the datagrid
in ASP.NET with C#
Thnx
|
|
|
|
|
The Knowledge wrote: how to save
You can store image in the server side using Fileupload control and just you need to store image path or image name in the database.
The Knowledge wrote: retrieve the images
Take Image control in Itemtemplate and give image path from the database
i.e.
<ItemTemplate>
<img src='<%# Eval("ImagePathField")%>' />
</ItemTemplate>
bEST rEGARD
pATHAN
please don't forget to vote on the post that helped you.
|
|
|
|
|
As you need to use IMG tags to display them, you really want to store the images on your file system and store the paths to them in your database.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Can u tell me one thing
U exactly want to store image in databse or only path of the image and image on your disk?
|
|
|
|
|
Yes i really want to store the images in my Database and want to display those images in my DataGrid
.............
The Knowledge
|
|
|
|
|
HIii!!
I have been assigned a source code to edit and make certain changes . But whenever I write anything
, say even response.write("hello"); , on building i get build error .
What might be the possible reason for the same
Mrinal
|
|
|
|
|
what is the Description of the build error?
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
hi!1
suppose if the the aspx page which i edit is -> abc.aspx
, i change the text associated with labe1 in axpx.cs page as label1.text="hello123"
I get an error that aspx page is not found or something like that .
It seems I am not able to edit the source code at all.
.
Mrinal
|
|
|
|
|
can you tell me the use of asembly references in web config.plz help me.
and what is the publickeytoken?
Cijo
|
|
|
|
|
Dd you try google ? In what context are you asking ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i am having problem with mail sending i have written below code
MailMessage memail = new MailMessage();
memail.From = TextBox2.Text;
memail.To = TextBox1.Text;
memail.Subject = TextBox3.Text;
memail.Body = TextBox4.Text;
memail.Priority = MailPriority.High;
try
{
SmtpMail.Send(TextBox2.Text,TextBox1.Text,TextBox3.Text,TextBox4.Text);
Response.Write("mailsent");
}
catch (Exception ex)
{
Response.Write(ex.Message);
in sending mail i hvae written the code below
but i am getting error that "The transport failed to connect to the server. " so please any one can give solution to me
satish
|
|
|
|
|
1 - why do you create a MailMessage object that you never use
2 - this code is unreadable. How can you be sure that the problem is not that the textboxes are in the wrong order ? Give them real names
3 - response.write ? Surely not ? Use a label
4- where do you set up a mail server that can deliver your message ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
MailMessage mailFor = new MailMessage();
mailFor.From = txtFrom.Text;
mailFor.To = txtTo.Text;
mailFor.Subject = txtSub.Text;
mailFor.Body = txtBody.Text;
mailFor.Priority = MailPriority.High;
try
{
SmtpMail.Send(mailFor);
lblMessage.Text="Your Mail Has Been Sent Successfully .";
}
catch (Exception ex)
{
lblMessage.Text="Mail Sending Fail. " +ex.Message;
}
Thanks & Regards
Tarini Singh
Sr. Software Engineer. (IT)
tksingh@zenta.com
|
|
|
|
|
how to add javascript function dynamically?? any special methods available..
Karthick.N
|
|
|
|
|
RegisterClientScriptBlock is what you want.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
karthick.n.mca wrote: how to add javascript function dynamically?? any special methods available..
In ASP.NET 1.1
ServerControl.Attributes.Add<br />
Page.RegisterStartupScript<br />
Page.RegisterClientScriptBlock
In ASP.NET 2.0
ServerControl.onClientClick<br />
ClientScript.RegisterStartupScript<br />
ClientScript.RegisterClientScriptInclude
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Hi,
Can u just tell me the code to retrieve particular cell value from datagrid.I mean 2nd row 3rd column etc.,
Thank u
|
|
|
|
|
if you are using athird party grid control then u ill be having lot of grid properties...though if ,net native controls then u should write ud function to achive..these things...
|
|
|
|
|
Try this:
this.GridView1.Rows[1].Cells[2].Text
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|