|
what are the possible keywords for spam mail?
Kovuru Sreedhar
|
|
|
|
|
it amy be any exe
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
hi
i m created one component inj windows application i can give the reference in my window application and can add this control in tool box in my windows application only.
but in my web application i can add reference this component dll i can be added. but i can not add this control in tool box .
please share your ideas with me how can i add user created windows component in web application
please help me
with regards,
bretto
|
|
|
|
|
The Page_PreInit() method should be invoked before the Page_Load() is called right ? As per the ASP .NET Page lifecycle PreInit is before Load. However when I try to debug that is not the case. My code in Page_PreInit() never gets called and the execution is passed directly to Page_Load(),
Any suggestions ?
|
|
|
|
|
Make sure it's hooked up right or that auto hookup is turned on and it's spelled right.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
I think there is some problem in spelling .Please check it from
protected void Page_PreInit(object sender, EventArgs e)
{
//write your code here
}
Cheers!!
Brij
|
|
|
|
|
can you please show the code of what you doing?
|
|
|
|
|
I am developing an ASP.Net web application using C#. The application will display information on the page in a Datagrid. The application will have a "Save" button that will allow the user to save the information in the Datagrid into a CSV file on the client's desktop. I tried using Server.MapPath(), but all I get are paths on the server. Is there a C# function I can call to give the path to the client's desktop or do I need to use some Javascript function? Thanks.
|
|
|
|
|
javascript has no idea what a desktop is, and sure is not allowed to wander the clients file system. You can't do it.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Can you tell what class or function I need to use to get the "Save As" dialog box to pop up when the save button is press in ASP.Net using C#? Thanks.
|
|
|
|
|
|
Hi,
I am using window.print() to print the current window from Asp.net(VB) but now i want to set page size,printer name ,Orientation etc Programatically
Please help me.
Darshana Pathak
|
|
|
|
|
u can set printer settings from the dialog box that comes when window.print is invoked... Check Properties...
You cant change the default settings of the PRint dialog box from code. Its because of security issue..
But there is a way for IE users to call WScript.Shell. try out the code:
<pre>var shell;
function SetPrintProperties() {
try {
shell = new ActiveXObject("WScript.Shell");
shell.SendKeys("%fu");
window.setTimeout("javascript:SetPaperSize();", 400);
} catch (e) {
alert('Please verify that your print settings have a Landscape orientation and minimum margins.');
}
}
function SetPaperSize() {
shell.sendKeys("%a{TAB}.2{TAB}0{TAB}0{TAB}0{ENTER}");
}</pre>
But I dont recommend this as its browser specific and not a good practice to change settings without users consent....
Abhishek Sur
|
|
|
|
|
i tried it but its not working
Darshana Pathak
|
|
|
|
|
JS can't do this. Might be some activex controls can do.
|
|
|
|
|
Hi all,
In my web application i need to show a small message using a div in user registration form,message mean when user while moving to textboxes to insert data div should focus infront of that purticular textbox(message should dynamically change).Pls help me to do this
Thanks
|
|
|
|
|
tell me what is the problem with this...
just set the position of the div correctly using Style="left:##px;top:##px;Z-Index:#" of the div using Javascript on focus... and u are done...
No problems with this.... Simple as water
Abhishek Sur
|
|
|
|
|
Thanks,This working fine,but there is javascript error "Type Mismatch" in IE6.
Thanks
|
|
|
|
|
Hi All,
Simply i want to fetch gridview header row (heading in column) from button click
note that button is outside from that grid.
|
|
|
|
|
you can use this code
<asp:GridView ID="GridView1" runat="server">
<Columns>
<asp:ButtonField ButtonType="Button" Text="Button" />
</Columns>
</asp:GridView>
|
|
|
|
|
|
onbutton click
dim st as String
'check which is it's property Cells or Items
st=Gridview1.Rows(0).Cells(0).HeaderText
or
st=Gridview1.Rows(0).Items(0).HeaderText
'Here Cells(0) or Items(0) means the 0th index Column
So u have to do it for all Columns i.e.Cells(0),Cells(1),Cells(2),Cells(3).....
Darshana Pathak
|
|
|
|
|
Good Afternoon Guys
Let me start here. i have been Builidng Win App and this was an easy task there. Now i have a Page that has a Datagridview and am Displaying this from a DataTable Through a SP like this
Create Proc [sde].[Check_Active_Valuation]
as
select LIS_KEY,FUNC_KEY,
SUBSTRING(CONVERT(VARCHAR,V2.ADD_DATE,1),1,13)AS [ADD DATE]
,V2.NEW_IMPROVED_VALUE AS [MARKET VALUE],
SUBSTRING(CONVERT(VARCHAR,V2.EFFECTIVE_DATE,1),1,13)AS [EFFECTIVE_DATE] ,
CASE V2.VAL_STATUS_ID WHEN
1 THEN 'PREVIOUS'
WHEN 2 THEN 'ACTIVE'
WHEN 3 THEN 'PROCESSED'
WHEN 4 THEN 'COMMITED' END AS [STUTUS]
from sde.Property_Summary p1 INNER JOIN SDE.VALUATION V2
ON V2.PROPERTY_ID =P1.PROPERTY_ID
where 1< (select count(v1.val_status_id)
from sde.valuation v1
where v1.property_id = p1.property_id
and v1.archive_date is null
ANd v1.val_status_id = 2
AND V1.EFFECTIVE_DATE > '2002/07/01')
As you can see my SP, Value of Last Field am Displaying is Derived from the Value of that Field. So now, My Users Will see this on the grid will Previous ,Commited and Processed, and thats Fine, now i cant Edit that,i want my users to be able to Double Click and this Field should turn to be a Combobox and they Should Select the Appropriate between Previous , Processed and Commited, The Save part i can hendle.
Thank you
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
You need to include the column (Lets call it StatusID) with the numeric values: 1, 2, 3, 4... in your select statement
For your gridview:
Add an edit column to the gridview
Convert the StatusID column into a template field
Go into edit templates (Edit mode for the StatusID column), insert a dropdownlist and remove the deafult textbox and add the items to this dropdownlist (value and text: 1 Previous, 2 Active...) or set its datasource to a select statement containing all your statuses
Bind the selectedvalue of the dropdownlist: SelectedValue = '<%# Bind ("StatusID") %>'
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AutoGenerateEditButton="True" AutoGenerateSelectButton="True">
<Columns>
<asp:BoundField HeaderText="Col1" />
<asp:TemplateField HeaderText="Col2">
<EditItemTemplate>
<asp:DropDownList ID="DropDownList1" runat="server" SelectedValue='<%# Bind("StatusID") %>'>
<asp:ListItem Value="1">Status 1</asp:ListItem>
<asp:ListItem Value="2">Status 2</asp:ListItem>
<asp:ListItem Value="3">Status 3</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
Alexei Rodriguez
|
|
|
|
|
I have a web user control that creates a graph based on values passed to it once it has finished it displays the control in the top left corener of the browser where as I would like to display it inside a <td> tag of a table. I have put the reference to the control on the page and added the usercontrol inside the <td> Like so:
<td colspan="6">
<uc1:LineGraph ID="LineGraph" runat="server" EnableViewState="false" />
</td>
But when I run the program it appears over the rest of the information thats meant to be displayed in the table and is in the top left corner.
Thanks for the help.
"When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson
|
|
|
|