|
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 )
|
|
|
|
|
Hi,
Use Ajax controls, put your adrotator controls in those Ajax containers and remainig is same. Probably you can get what you want.
Thanks,
Aleem Mohammad.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
i upload the default.aspx file along with web.config and default.cs files after uploading ......default.aspx page show the below error
Server Error in '/' Application.<br />
--------------------------------------------------------------------------------<br />
<br />
Runtime Error <br />
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. <br />
<br />
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".<br />
<br />
<br />
<!-- Web.Config Configuration File --><br />
<br />
<configuration><br />
<system.web><br />
<customErrors mode="Off"/><br />
</system.web><br />
</configuration><br />
<br />
<br />
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.<br />
<br />
<br />
<!-- Web.Config Configuration File --><br />
<br />
<configuration><br />
<system.web><br />
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/><br />
</system.web><br />
</configuration><br />
-----------------------------------
how i launch the .aspx files on my webpage without any error
|
|
|
|
|
Turn CustomErrors off. You will get the error message.
|
|
|
|
|
hi,
but.....where and how can i turn CustomErrors off.....
may you explain me........THANKS
|
|
|
|
|
The error message you got is very friendly. Don't you able to understand from that ?
|
|
|
|
|
yes........i don't know that what happened ....therefore i
ask....please give some hints ...so that i able to understand the problem
|
|
|
|