|
Hi All,
Can any body please help me in writing a dialogue box, so that it will have some DropDown list box and a button in it. When the button is clicked it should return some values/value to the web form. Can any body give me an easy to understand blog or any code snippet. Any kind of help is thankfull.
Thanks,
Aleem Mohammad.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Your question doesn't make any sense to me. Are you trying to create a custom web control ?
|
|
|
|
|
Hi,
I have one web form and i want to put a dialogue box in it so that a selected value of the dialogue box should appear in the calling web form. Means two ways communication between form and dialogue box.
Doesnt it sense really Navneeth?
Thanks,
Aleem Mohammad.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
You can do it in a number of ways
1) use a div and javascript to do this.
<div id="test" style="visibility:hidden;">
Your content that need to be shown as a dig box
</div>
function showDialog()
{
document.getElementById("test").style.visibility = visible;
document.getElementById("test").style.top = event.clientY + "px";
document.getElementById("test").style.left = event.clientX + "px";
}
similarrly write the functiont o hide it by setting the visibility to hidden.
2) If you are using Ajax use the model popup extender that is comming with the ajax control tool kit.
demo is here
http://asp.net/AJAX/AjaxControlToolkit/Samples/ModalPopup/ModalPopup.aspx
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Hi Laddie,
Good Idea from you Laddie but I have tried with this already and putting it at appropriate place is difficult. So I have choosen to go for the dialog box of VB.Net or C#.Net so that it can be shown and when button is clicked it will return some value to the calling web form.
Thanks,
Aleem Mohammad.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
then why not try using Prompt("Enter a value") in java script
You can use like this....
var ret = Prompr("dsjgbfd");
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Hi Laddie,
Prompt will not work Laddie because I have to put some set of controls like combobox textboxes and button etc.
I tried with this but when I make the div1 invisible the div2 part should automatically occupy the div1 place. But here it is leaving some space. I tried to chenge it style position then its giving error. Any help if possible.
Thanks,
Aleem Mohammad.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
indian143 wrote: So I have choosen to go for the dialog box of VB.Net or C#.Net so that it can be shown and when button is clicked it will return some value to the calling web form.
After all the time you've been posting here, you still don't know how ASP.NET works ? You can't run a C# or VB.NET winforms dialog box from a web app.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Christian
Read from this link : http://microsoft.apress.com/asptodayarchive/73815/using-modal-dialog-boxes-in-aspnet-applications. And it is possible.
Please dont misunderstand me that I am asking wrong questions.
Thanks,
Aleem Mohammad.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Hi friends,
I want to bind my dataset to OWC 11 of pivot control. May i know how to use this and how can i bind the dataset to OWC pivot control.
Thanks in advance
Kavitha
|
|
|
|
|
i m using fckeditor for letter management,how to reduce line spacing in this editor?
|
|
|
|
|
Hi all,
I have one datagrid, i am binding the datagrid with records from DB.My need is if i click one of the binded record that particular record should be added to the another datagrid.
It should be on serverside only.
Can any body give idea to do this.
Thanks in advance,
eswar.
|
|
|
|
|
Handle datagrid's ItemCommand event. Caste datagrid's DataSource to a DataTable instance if you used it for binding. Find the row index from event handler parameters, fetch the row from DataTable using this index. Create new DataTable instance and add the DataRow (You need to clone it) to there. Bind the second grid with this new datatable.
|
|
|
|
|
Hi!
I have a project made up of asp.net website (2008) and a class library project.
my class library project is a DAL which is accessed via BLL that is in asp.net website.
DAL is made up of several tableadapters in a dataset.
I need to dynamically change connection properties of tableadapters in DAL if change is made in web.config file in asp.net website. I am just not sure how could i achieve this.
my BLL (which is not working currently)
------
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using myDAL.DAL;
[System.ComponentModel.DataObject]
public class EmployeesBLL
{
private myDAL.DAL.dsEmployeeTableAdapters.getEmployeeTableAdapter empTableAdapter = null;
private string ConnString
{
get
{
string conn=null;
return conn = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["db1ConnectionString"].ConnectionString;
Console.WriteLine(conn);
}
}
protected myDAL.DAL.dsEmployeeTableAdapters.getEmployeeTableAdapter Adapter
{
get
{
if (empTableAdapter == null)
empTableAdapter = new myDAL.DAL.dsEmployeeTableAdapters.getEmployeeTableAdapter();
return empTableAdapter;
}
}
[System.ComponentModel.DataObjectMethodAttribute
(System.ComponentModel.DataObjectMethodType.Select, true)]
public dsEmployee.getEmployeeDataTable GetEmployees()
{
return Adapter.GetEmployee ();
}
}
------
my DAL ( not sure if i am doing this correctly)
----
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
namespace myDAL
{
public partial class Employee
{
public DataTable getEmp(string ConnectionString)
{
SqlConnection conn =null ;
try
{
conn = new SqlConnection(ConnectionString);
DataTable dt = new DataTable();
DAL.dsEmployeeTableAdapters.getEmployeeTableAdapter eta = new myDAL.DAL.dsEmployeeTableAdapters.getEmployeeTableAdapter();
eta.Connection.ConnectionString = conn.ToString();
dt = eta.GetEmployee();
return dt;
}
catch (Exception ex)
{
Console.Write("Error in connection : " + ex.Message);
return new DataTable();
}
finally
{
conn.Close();
}
}
}
}
asp.net website aspx page
<asp:GridView ID="gvEmployee" runat="server" AutoGenerateColumns="False"
DataSourceID="ObjectDataSource1">
<Columns>
<asp:BoundField DataField="employeeid" HeaderText="employeeid"
InsertVisible="False" ReadOnly="True" SortExpression="employeeid" />
<asp:BoundField DataField="loginid" HeaderText="loginid"
SortExpression="loginid" />
<asp:BoundField DataField="title" HeaderText="title" SortExpression="title" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
OldValuesParameterFormatString="original_{0}" SelectMethod="GetEmployees"
TypeName="EmployeesBLL"></asp:ObjectDataSource>
please help
|
|
|
|
|
When you make changes in the web.config, your application will restart. Next time when you access the connection string, you will get the updated one.
|
|
|
|
|
hi all
i need some help about how to make a msg box in a web applications while using ajax controle (update panel) when i write a java script (responce.write) in the server side of the code on a control action that is in an update panel it gives me an error
thanks for any help
|
|
|
|
|
You need to tell us what the error is and show us some code, but it sounds like you don't understand what ASP.NET is, and does. A msgbox runs on the server, so it won't show on the client. Use javascript and alert, on the client side.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i need to show the msgbox after an action or a result in the server side and as we know the excuation of the client side is done befor the server side will if any other suggestion about how to use alerts but after a result in the server side
thenks any way
|
|
|
|
|
Well, the only way to get a message box to show after a server side call, is to use AJAX, or if you're doing a postback, to write javascript into the returned page to show the popup. If you're not using AJAX, I see no point in a popup over a message on the page, but either way, MsgBox runs on the server, you need to use javascript. End of story.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
You may probaby try using the modalpopup extender that comes with Ajax Control Toolkit
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
hi
i am trying to use the ajax ModalPopupExtender it worked but i need to display a result after an action on the server side
thanks for your help
|
|
|
|
|
|
hi anybody have the solution how to check the other sesion or how to check which one is online using session.
|
|
|
|
|
VISUAL STUDIO 2005
I HAD ADDED THE XML FILE & IMAGES INTO THE PROJECT BUT WHEN THE IMAGES WERE CHANGING ONLY WHEN I WAS CLICKING REFRESH BUTTON... WHAT CAN I DO FOR CHANGING IMAGES FREQUENTLY.. PLS HELP ME
|
|
|
|
|
Thats how that control works. You need to roll your own and use AJAX
don't shout.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|