|
Fair enough. I am not hiring anyone right now, but if I need someone, I will let you know. Actually, I may have a website job coming up.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Christian Graus wrote: Actually, I may have a website job coming up.
Thanks. I am looking forward for that
|
|
|
|
|
Interesting that you got the same answer again, even if you deleted your original question and gave me a 1 vote for trying to help you.
I suggest buying a basic book on VB.NET, and reading it, because it's clear there are some fundamentals you do not understand ( like what 'shared' is )
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
|
A shared ( that's static in VB land, right ) datatable is a very poor design IMO. You need to make your DATABASE the static point, where data is stored permanently across all users. However, I'm not sure how to help you, I'm not sure what your question is. You're surprised that static data is visible to all users ? You expected it to be, but it's not ? What is the problem ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 hate it when people delete their post, and 1 vote people trying to help them. This was his question, for the record
haved declared datatable as shared and when two users are using that page to add data to the datatable the data visible to other user after the postback....
Help me regarding this
Christian Graus
Please read this if you don't understand the answer I've given you
"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 wrote A code like an exercise that let two Clients make a chat .
How Can I make the two pages send info between each others
And I need To tell some of the two clients that the other one has stopped the conversation By closing the web browser ???????
Is there Any remoting Stuff in this subject or ???? ..
You have To Search About The Truth Of Your Life
Why Are you Here In Life ?
|
|
|
|
|
OK - you're obviously in over your depth. The two instances have no relation to each other. Basically, you can store the association between two users on the server, and you can use AJAX to check for/send messages, so that the page doens't post back all the time. The server needs to negotiate who is talking to who tho, and cue up the messages for each client.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Hello friends
How to integrate paypal button in aspx page ?
i am having a code associated with it ..but unable to integrate please advice me how to do it
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
few hidden fileds +
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
Problem Solved ....
I removed the form tags ...took a button .. set postback url to the action url of the above tag ...its working fine .........
Sorry for posting such a silly question
Happy Programming
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
cell8.Controls.Add(new LiteralControl("<A onclick=" + "window.open('../a.html','_blank','height=200,width=330,menubar=yes','top=40');return false;" + " <span style=" + "font-size:9pt;" + "></span>print</A>"));
i want when i move the mouse on print the pointer convert a hand? can any body help me?
|
|
|
|
|
use
cursor:pointer;
cursor: hand;
in your css. cusror:pointer will not work in firefox. so you have cursor:hand for firefox and cursor:pointer for IE.
|
|
|
|
|
thanks, right. i use cursor:hand in IE and it work
|
|
|
|
|
I have used crystal reports in my web application.
When I am printing the font size is very small in the printed output. On screen I can see it clearly but in the printout the font is very small. I tested it from few machines. Only on some machines I am facing this problem. On other machines it is working properly. Can someone let me know the reason for this?
Uma
|
|
|
|
|
I would suggest a read of this article:
http://aspalliance.com/509[^]
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Thank you for the link. But did not get solution for my problem.
But the acticle is very informative.
Regards,
Uma
|
|
|
|
|
hi ,
I m Using the master page and the content page in my application i m attaching both page's html. My problem is that when i was browsing this page in the IE 7 named PNTInformation at that time it was loaded perfectly but while i was using another tab in same window at that time this page was placing some blank space at the top at that point at where the content page is just started and the page was looking dull so pls give me the solution for that.
---Master Page HTML-----
<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>GCM Master</title>
<link href="Common/StyleSheet.css" type="text/css" rel="stylesheet" />
</head>
<body class="MasterTable" style="margin: 0px">
<form id="form1" runat="server">
<table border="0" style="width:100%; height:100%" >
<tr style="height:1%">
<td>
<table style="width:100%;height:100%">
<tr>
<td style="width:10%;font-family:Tahoma;font-size:20pt;text-align:left;">
CMMView™
</td>
<td style="width:65%;vertical-align:middle;text-align:center">
<asp:Label CssClass="NormalMenu" runat="server" ID="lblTitle" />
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
</td>
<td style="width:25%;text-align:right;vertical-align:middle">
<table cellspacing="3">
<tr>
<td style="width: 54px">
<asp:LinkButton ID="lnkChangePassword" CssClass="NormalMenu" onMouseover="this.className='HighlightMenu'" onMouseout="this.className='NormalMenu'" runat="server" ForeColor="#666633">Password</asp:LinkButton>
</td>
<td>|</td>
<td>
<asp:LinkButton ID="lnkChangeDetail" runat="server" CssClass="NormalMenu" onMouseover="this.className='HighlightMenu'" onMouseout="this.className='NormalMenu'" ForeColor="#666633">My Profile</asp:LinkButton>
</td>
<td>|</td>
<td>
<asp:LinkButton ID="lnkLogout" runat="server" CssClass="NormalMenu" onMouseover="this.className='HighlightMenu'" onMouseout="this.className='NormalMenu'" ForeColor="#666633">Logout</asp:LinkButton>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr style="height:1%">
<td style="vertical-align:top;text-align:center">
<table cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;text-align:left" id="tblMenu" >
<tr>
<td id="TDLeft" align="center">
<asp:Panel ID="Panel1" runat="server" Width="100%">
<table style="width:100%;height:100%">
<tr>
<td>
<asp:Image ImageUrl="Images/Manage.gif" id="btnManage" runat="server" Width="155px" onmouseover="this.src='../Images/Manage_over.gif';document.getElementById('ctl00_tblManage').style.visibility='visible';" onmouseout="this.src='../Images/Manage.gif'" Visible="false" />
<cc1:HoverMenuExtender ID="hmeManage" runat="Server" PopupControlID="pnlManage" PopupPosition="Bottom" TargetControlID="btnManage" PopDelay="25" />
</td>
</tr>
</table>
</asp:Panel>
</td>
<td align="center">
<asp:Panel ID="Panel2" runat="server" Width="100%">
<table style="width:100%;height:100%">
<tr>
<td>
<asp:Image ImageUrl="Images/Communications.gif" id="btnNotes" runat="server" Width="155px" onmouseover="this.src='../Images/Communications_over.gif';document.getElementById('ctl00_tblNotes').style.visibility='visible';" onmouseout="this.src='../Images/Communications.gif'" style="cursor: hand" />
<cc1:HoverMenuExtender ID="hmeNotes" runat="Server" PopupControlID="pnlNotes" PopupPosition="Bottom" TargetControlID="btnNotes" PopDelay="25" />
</td>
</tr>
</table>
</asp:Panel>
</td>
<td align="center">
<asp:Panel ID="Panel4" runat="server" Width="100%">
<table style="width:100%;height:100%">
<tr>
<td>
<asp:Image ImageUrl="Images/StateP&TInformation.gif" id="btnStateInfo" runat="server" Width="193px" onmouseover="this.src='../Images/StateP&TInformation_over.gif';document.getElementById('ctl00_tblStateInfo').style.visibility='visible';" onmouseout="this.src='../Images/StateP&TInformation.gif'" style="cursor: hand" />
<cc1:HoverMenuExtender ID="hmeStateInfo" runat="Server" PopupControlID="pnlStateInfo" PopupPosition="Bottom" TargetControlID="btnStateInfo" PopDelay="25" />
</td>
</tr>
</table>
</asp:Panel>
</td>
<td align="center">
<asp:Panel ID="Panel3" runat="server" Width="100%">
<table style="width:100%;height:100%">
<tr>
<td>
<asp:Image ImageUrl="Images/ContactAdmin.gif" id="btnContactAdmin" runat="server" Width="155px" onmouseover="this.src='../Images/ContactAdmin_over.gif';document.getElementById('ctl00_tblContactAdmin').style.visibility='visible';" onmouseout="this.src='../Images/ContactAdmin.gif'" />
<cc1:HoverMenuExtender ID="hmeContactAdmin" runat="Server" PopupControlID="pnlContactAdmin" PopupPosition="Bottom" TargetControlID="btnContactAdmin" PopDelay="25" />
</td>
</tr>
</table>
</asp:Panel>
</td>
</tr>
</table>
</td>
</tr>
<tr style="height:96%">
<td style="width:90%;text-align:left;vertical-align:top;">
<div style="height:90%;overflow:auto">
<asp:contentplaceholder id="phMaster" runat="server"></asp:contentplaceholder>
</div>
</td>
</tr>
</table>
<asp:Panel ID="pnlManage" runat="server">
<asp:Table ID="tblManage" runat="server" CellPadding="0" CellSpacing="0" BorderWidth="1" BackColor="White" style="visibility:hidden" />
</asp:Panel>
<asp:Panel ID="pnlNotes" runat="server">
<asp:Table ID="tblNotes" runat="server" CellPadding="0" CellSpacing="0" BorderWidth="1" BackColor="White" style="visibility:hidden" />
</asp:Panel>
<asp:Panel ID="pnlStateInfo" runat="server">
<asp:Table ID="tblStateInfo" runat="server" CellPadding="0" CellSpacing="0" BorderWidth="1" BackColor="White" style="visibility:hidden" />
</asp:Panel>
<asp:Panel ID="pnlContactAdmin" runat="server">
<asp:Table ID="tblContactAdmin" runat="server" CellPadding="0" CellSpacing="0" BorderWidth="1" BackColor="White" style="visibility:hidden" />
</asp:Panel>
</form>
</body>
</html>
-----ContentPage PNTInformation----------
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="PntInformation.aspx.vb" Inherits="StateInfo_PntInformation" title="CMMView : P & T Information" %>
<asp:Content ID="Content1" ContentPlaceHolderID="phMaster" Runat="Server">
<table cellspacing="0" cellpadding="0" style="height:440px;text-align:center" width="100%" border="0" >
<tr style="height:5%">
<td class="FormHeader" colspan="3">P & T Information</td>
</tr>
<tr style="height:1%">
<td style="width:100%">
<hr class="Line"/>
</td>
</tr>
<tr style="height:2%">
<td style="width:100%">
</td>
</tr>
<tr style="height:89%">
<td style="width:100%;text-align:center;">
<div style="width:100%; height:100%;overflow:auto;text-align:center;" runat ="server">
<asp:datagrid id="dgPnTinfo" runat="server" Width="97%" BorderColor="Black"
AllowSorting="True" AutoGenerateColumns="False" HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False">
<SelectedItemStyle CssClass="TableCellSelected"></SelectedItemStyle>
<AlternatingItemStyle CssClass="TableCell"></AlternatingItemStyle>
<ItemStyle CssClass="TableCell"></ItemStyle>
<HeaderStyle CssClass="TableHeader"></HeaderStyle>
<Columns>
<asp:TemplateColumn HeaderText="State Name" SortExpression="StateName">
<ItemStyle HorizontalAlign="Center" Width="10%" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" VerticalAlign="Middle"></ItemStyle>
<ItemTemplate>
<asp:HiddenField ID ="hdnPNTNo" runat ="server" Value ='<%# DataBinder.Eval(Container.DataItem,"PNTNo") %>' />
<asp:LinkButton id="lnbStateName" runat ="server" Text ='<%# DataBinder.Eval(Container.DataItem,"StateName")%>' CommandName="AddP&T" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"StateID").ToString + "~" + DataBinder.Eval(Container.DataItem,"StateCode").ToString %> '></asp:LinkButton>
</ItemTemplate>
<HeaderStyle Width="10%"/>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Meeting Date" SortExpression="MeetingDate">
<ItemStyle HorizontalAlign="Center" Width="15%" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" VerticalAlign="Middle"></ItemStyle>
<ItemTemplate>
</ItemTemplate>
<HeaderStyle Width="15%"/>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Committee" SortExpression="StateCode">
<ItemStyle HorizontalAlign="Center" Width="25%" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" VerticalAlign="Middle"></ItemStyle>
<ItemTemplate>
</ItemTemplate>
<HeaderStyle Width="25%"/>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="PDL" SortExpression="StateCode">
<ItemStyle HorizontalAlign="Center" Width="25%" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" VerticalAlign="Middle"></ItemStyle>
<ItemTemplate>
</ItemTemplate>
<HeaderStyle Width="25%"/>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Comments" SortExpression="ExternalComment">
<ItemStyle HorizontalAlign="Center" Width="25%" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" VerticalAlign="Middle"></ItemStyle>
<ItemTemplate>
<asp:Label ID="lblExtComment" runat="server" Text=' <%# DataBinder.Eval(Container.DataItem,"ExternalComment")%>'></asp:Label>
</ItemTemplate>
<HeaderStyle Width="25%"/>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>
</div>
</td>
</tr>
<tr style="height:2%">
<td style="width:100%">
</td>
</tr>
<tr style="height:1%">
<td style="width:100%">
<hr class="Line"/>
</td>
</tr>
</table>
</asp:Content>
Hiren Dave
|
|
|
|
|
I believe the different tabs in the same IE window can share the same session state however a new IE window (other than launching via CTRL+N) would have a totally new session created.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
I use gridview binding with contents of one table from oracle.It displays record in gridview well but i got problem while storing that record into another table in oracle.Remember my source for gridview and destination of store are different.So please help for that.My code like as...
DataTable dtlocal = new DataTable();
dtlocal = (DataTable)GridView1.DataSource;
dtlocal.TableName = "LOCAL";
ds.Tables.Add(dtlocal);
string qry = "INSERT INTO EMP1 VALUES(?,?,?,?)";
conn.Open();
OracleCommand ocmd = new OracleCommand(qry, conn);
foreach (DataRow dtr in ds.dtlocal["LOCAL"].Rows)
foreach (DataColumn dcl in ds.dtlocal["LOCAL"].Columns)
{
//assigning values for parameters
}
|
|
|
|
|
What is the error you are getting ?
|
|
|
|
|
Hi all
I am using asp.net , C# ( VS2005)
I fill dropdownlist using method defined in class on page load event it sucessfully fill the data in dropdownlist. as there is customer requirment to show different class of people in different color as well as tooltip of data. i succesffully managed to fill this with below shown code . but issue is when i fires other controls postback event. this dropdownlist loses its color as well as tooltip .
Please suggest how to maintain the style of dropdownlist.
code to fill dropdownlist
public void Fillemp(DropDownList ctrl, string procedurename, string conn, SqlCommand cmd)<br />
{ <br />
try<br />
{<br />
if (con == null)<br />
{<br />
this.openconnection(conn);<br />
this.con.Open();
}<br />
if (con.State == ConnectionState.Closed)<br />
{<br />
this.openconnection(conn);<br />
con.Open();<br />
}<br />
DataTable dtcompany = new DataTable();<br />
ctrl.Items.Clear();<br />
dtcompany = GetDataTable(procedurename, cmd);<br />
ctrl.Items.Add(new ListItem("Select One", "0"));<br />
ctrl.Items.Add(new ListItem("All" , "1"));<br />
ctrl.Items.Add(new ListItem("Self" , "2"));<br />
foreach (DataRow row in dtcompany.Rows)<br />
{<br />
ListItem item = new ListItem(row["emPname"].ToString(), row["er_emp_code"].ToString());<br />
item.Attributes.Add("title", row["empname"].ToString());<br />
int lvl = int.Parse(row["er_user_lvl"].ToString());<br />
switch(lvl)<br />
{<br />
case 8:<br />
<br />
item.Attributes.Add("style", "color:green");<br />
break;<br />
case 7:<br />
item.Attributes.Add("style", "color:blue"); <br />
break;<br />
case 6:<br />
item.Attributes.Add("style", "color:red"); <br />
break;<br />
case 5:<br />
item.Attributes.Add("style", "color:purple"); <br />
break;<br />
default :<br />
item.Attributes.Add("style", "color:BLACK"); <br />
break;<br />
<br />
}<br />
ctrl.Items.Add(item); <br />
<br />
<br />
<br />
}<br />
<br />
<br />
}<br />
catch (Exception ex)<br />
{<br />
throw ex;<br />
}<br />
finally<br />
{<br />
if (con != null)<br />
{<br />
con.Close();<br />
}<br />
}<br />
}<br />
page load event where i fill the dropdownlist
if (!(IsPostBack)) <br />
{<br />
SqlCommand cmd = new SqlCommand();<br />
cmd.Parameters.AddWithValue("empcode", Membership.GetUser().UserName);<br />
Doctor dr = new Doctor();<br />
dr.Fillemp(Ddlzse, "SpGetPredecessor", "bbraunemisconnectstring", cmd);<br />
dr.FillctrlList1(Ddlsubdiv, "SPGETSUBDIV_GIVENEMP", "bbraunemisconnectstring", cmd, 0);<br />
<br />
<br />
}<br />
and dropdownlist is defined as
<br />
<TD id ="tdddlzsm" style="BORDER-BOTTOM: gray 1px solid; TEXT-ALIGN: left ; width: 490px;" align ="center" ><br />
<asp:DropDownList id="Ddlzse" runat="server" Width="480px" Font-Bold="False" Font-Size="9pt" Font-Names="Arial" AppendDataBoundItems="True" ></asp:DropDownList><br />
</TD><br />
<br />
regards
imran khan
|
|
|
|
|
I am a beginner.
I want to bind part of fields from DataTable to GridView.
data of the datatable from Three different "select".
How do?
Thanks.
|
|
|
|
|
public void binddata()
{
conn.Open();
OracleCommand cmd = new OracleCommand("SELECT * FROM EMP", conn);
OracleDataReader odr = cmd.ExecuteReader();
dt1.TableName = "FXD";
dt1.Load(odr);
ds.Tables.Add(dt1);
GridView1.DataSource = ds.Tables["FXD"];
GridView1.DataBind();
conn.Close();
}
in this way u can bind datatable to gridview..
|
|
|
|
|
I only need to show them one or two Columns.
|
|
|
|
|
Hi,
Use gridview BoundField like this:
<asp:gridview>
<columns>
<asp:boundfield>
AccessibleHeaderText="string"
ApplyFormatInEditMode="True|False"
ConvertEmptyStringToNull="True|False"
DataField="string"
DataFormatString="string"
FooterText="string"
HeaderImageUrl="uri"
HeaderText="string"
HtmlEncode="True|False"
InsertVisible="True|False"
NullDisplayText="string"
ReadOnly="True|False"
ShowHeader="True|False"
SortExpression="string" Visible="True|False></asp:boundfield></columns></asp:gridview>
Set BoundFields then bound grid view with your data table such as previous reply shown.
|
|
|
|