|
I am not sure that we can give alert msg after data submitted into database. But It is possible that when submitting the record like "Are you want to save the records".
Server side action is happened when you try to insert records into database. Why do you try the client side for that time?
Balasubramanian K.
|
|
|
|
|
I have a gridview that has a template column.in it this template column I have an upload control and .in edit mode I want to upload a picture for every row .name of picture in database and picture in server.but I don't know how to use findcontrol method to do this work.and what event should I use .please help me.I use asp.net with c#.I use this gridview in the admin of site and I am a starter .please help I confuse.
modified on Thursday, July 10, 2008 2:24 PM
|
|
|
|
|
|
I have the same problem and for now no sulution. Hope someone vil answer
|
|
|
|
|
Hi,
How can i find index a of a TreeView node?
Please help .
Thanks in advance...
cheers,
Abhijit
|
|
|
|
|
|
Can any tell how to add new rows to datagrid but the main issue is all the other rows should be retained.
So plz if someone is online know so that i can get solution now.
|
|
|
|
|
The easiest way to do this is to bind the grid (initially) to a dataTable.
When you want to add a new row Create a clone (or empty) version of the initial table.
On the event where you want the new row, iterate through the grid adding a new row to your empty table for each row in the grid assigning the values based on the cells in the grid.
Then add a new row to the datatable that has blank or default values.
Rebind the grid to your new datatable.
I didn't get any requirements for the signature
|
|
|
|
|
Scenario,
I have an Asp.Net page which has 3 panels, with 3 different pages, Left, Middle and Right. I have a user control in Right panel, and am raising an event in that. I want to Handle that event in my Middle panel without including the user control without including the user control in the Middle panel. Is there a way I can do it ?
Hope it is clear !
Thanks in advance !
|
|
|
|
|
Could you explian a little bit more ?
Actually what is there in Middle Panle (server controls)?
that you need to modify
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... "
Check My Blog
|
|
|
|
|
Hi All...
I am making an application which require to write news in mixed font. I am using Freetextbox for this purpose. Can anyone plz guide me how to get the support for arabic font, how to install it and how to use it.
Please guide me if there is any other resource as well.
Thanx
Bye
|
|
|
|
|
Hi,
I have two buttons in my page. one button is to navigate for the next page and one is for previous page.
I want to trigger those buttons using right and left direction keys in key board.. Is there anyway to trigger this Event?
Santhapur
|
|
|
|
|
Place this code on Page_Load()
form1.Attributes.Add("onkeydown", "var btnLeft=document.getElementById('" + <big>btnLeft.ClientID </big>+ "');var btnRight=document.getElementById('" + <big>btnRight.ClientID</big> + "');if(btnLeft && event.keyCode==37){btnLeft.click()};if(btnRight && event.keyCode==39){btnRight.click()};}")
btnLeft and btnRight are the IDs of your left/right buttons.
|
|
|
|
|
I am using image,label and button in update panel.My page inherit master page.I have made button height and width "0". so that button don't show in page. i'm calling a javascript function show() from anchor tag onclick(). anchor tag is not in update panel.
In show() i made the button click()
like this :--
document.getElementById('ctl00_ContentPlaceHolder1_Button1').click();
and in button1_click()
I am filling label and image from data base.
Label data and image show in browser IE(6.0) perfectly.But in browser Firefox mozila and in opera label data only show.Image not showing.
Plz help me as soon as possiable.
Thanks in advance.
Thanks & Best Regards
Ajita Kumar Satpathy
|
|
|
|
|
Ajita Kumar Satpathy wrote: I have made button height and width "0". so that button don't show in page.
Bad Idea. Why you cant give visible property to false or Style="display:none;"?
Ajita Kumar Satpathy wrote: document.getElementById('ctl00_ContentPlaceHolder1_Button1').click();
You can call server side function in JS.
Google[^]
Ajita Kumar Satpathy wrote: But in browser Firefox mozila
Install Firebug[^] And find out problem
EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.
|
|
|
|
|
fiend,
this is not my question. Please understand the question carefully.
My page inherit master page.I've a update panel. Inside update panel there is an image control, a label, a button (say Button1). There is an anchor tag outside the update panel. My motto is to show image (in image control) & data (in label) on clicking the link(anchor tag). For this I've called the onclick() event of the Button1 in anchor tag ike this :--
document.getElementById('ctl00_ContentPlaceHolder1_Button1').click();
And code is written in Button1_Click event.Actually there is no necessity of Button1 to show to user. So I've made its height & width to zero. (Your suggestion is right i.e. make visible false of the Button1).
When I click the the anchor tag, in IE, both data & image is displayed. But in Firefox Mozilla, only data is displayed. Image is not displayed. This is actual problem.
Thanks in advance
Thanks & Best Regards
Ajita Kumar Satpathy
|
|
|
|
|
i have this code, when i run this page, this reader dont bring the first record. i ran this sql(SELECT) on the sql database and runs fine, and if i put the seme SELECT in a Sqldatasource and bind the griview, it works fine too. what is wrong with this reader?
******************
any idea.
THIS WORKS
SqlDataSource1.SelectCommand = "SELECT products.pid, products.pname, flavors.fl_name, product_flavors.flavor_icon FROM product_flavors LEFT JOIN flavors ON product_flavors.flavorsid = flavors.flavorsid LEFT JOIN products ON product_flavors.pid=products.pid WHERE products.pid = 84"
ProductListView.DataSource = SqlDataSource1
ProductListView.DataBind()
**********************
THIS NOT BRING ALL THE RECORDS. ALWAYS LEAVE ONE OUT.I THINK THE FIRST ONE.
Dim conn As SqlConnection
Dim cmd As SqlCommand
Dim cmdString As String = "SELECT products.pid, products.pname, flavors.fl_name, product_flavors.flavor_icon FROM product_flavors LEFT JOIN flavors ON product_flavors.flavorsid = flavors.flavorsid LEFT JOIN products ON product_flavors.pid=products.pid WHERE products.pid = 84"
conn = New SqlConnection(ConfigurationManager.ConnectionStrings("eConnectionString").ToString)
cmd = New SqlCommand(cmdString, conn)
conn.Open()
Dim myReader As SqlDataReader
myReader = cmd.ExecuteReader()
myReader.Read()
GridView1.DataSource = myReader
GridView1.DataBind()
conn.Close()
|
|
|
|
|
orsini wrote: myReader.Read()
I think the above line is the problem
When you Use Read reader move to next record.
Instead of binding the reader try to bind DataTable.
orsini wrote: cmd = New SqlCommand(cmdString, conn)
conn.Open()
Dim myReader As SqlDataReader
myReader = cmd.ExecuteReader()
myReader.Read()
GridView1.DataSource = myReader
<br />
Dim adp as new SqlDataAdpter(cmdString,conn);<br />
Dim dt as new DataTable<br />
adp.Fill(dt);<br />
GridView1.DataSource = dt<br />
EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.
|
|
|
|
|
bah - your answer wasn't there when I started writing mine!
|
|
|
|
|
EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.
|
|
|
|
|
Try removing the line
myReader.Read()
before binding it to the GridView
The DatReader is a forward-only cursor and you have moved it one record on by reading from it.
You might want to check that ANY rows are returned first though - use
If myReader.HasRows Then....
|
|
|
|
|
thank you so much, both answer are great, both worked fine, thanks again.
I am trying to get away from those fance interface user and get more into the code behind.
so, when I bind that productlistview. with the reader, i have a funcion that return the selected value.
Public ReadOnly Property prodid() As String
Get
Return ProductListView.SelectedValue
End Get
End Property
which i retrieve it in the next page. how can i tell the productlistview, that the datakeynames = myrreader("pid")
from the code behind.
thanks for your help.
|
|
|
|
|
I need to use asp.net to access and capture video from webcam but i want to make it browser independent and OS independent on client side.
I have seen in many articles calling avicap32.dll and also if I use DirectShow API of .net, will it be OS independent?
Or there any other solutions for the problem??
Shall be grateful if you help.
|
|
|
|
|
My application is in Asp.net 2.0.
In my applicaton,
There is one Repeater contorl.
in Repeater there is a button.
I have to disable that button with javascript.
can any one help me.
how can i find bytton id in javascript.
thanks
|
|
|
|
|
When you want to disable?Or In which event?
You need to pass the button id MyButton.ClientID to the JS Function.
EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.
|
|
|
|