|
Why does the delete button have to be outside the row ? That just makes it harder to do. I guess you need checkboxes in the grid then, so you can work out on postback which items were selected.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
That is true...But it is a business decision..Hence not much of a choice.
|
|
|
|
|
How can we add a asp.net textbox dynamically using java script
|
|
|
|
|
You can't, obviously. How can you add a server side control, on the client ? Even if you do it on the server, your viewstate is not going to contain it unless you add it before page load. Your best bet is to have a server hidden control and to store the details of your dynamically added controls in that.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hello every one,
Guys does anyone know how to create or upload and connect to sql database in godady.com, just any how any way please...., my problem is that I don't know how to properly copy my local host database to the public server which godady. Connection method is provided as a fixed connection string with already set username, but there is no way of uploading specifically for a database that can be connected accept the asp schema. Please help.
hawari
hawari
|
|
|
|
|
That's right, you need to run SQL to create your DB on the server.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Erreur : Sys.WebForms.PostBackAction is not a constructor
hello i'm trying to execute postback action manually
using :
<script type="text/javascript"><br />
var postBack = new Sys.WebForms.PostBackAction();<br />
postBack.set_target('btn_valider');<br />
postBack.set_eventArgument('');<br />
<br />
postBack.performAction();<br />
</script>
but in the navigator i have this error message.
thank you for your help
|
|
|
|
|
Check the code that's generated already and copy that. I've done this, and I'm sure the code didn't look like that. Just create a button with an event on a form and look at the html.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hello all,
I have a formview (which is bind with the result of a LINQ Query) and I want to update the datasource by clicking the "edit button" which is an ImageButton.
When I click on it the page reloads but nothing happens. I added the "frmOverzicht_ItemCommand" in the code behind but this is never entered.
Can someone help me out on this issue ??
Here's the code :
Within the <itemtemplate> i have the following line of code :
<itemtemplate>
<asp:imagebutton id="EditButton" commandname="Edit" alternatetext="Editeer Dossier" runat="server" imageurl="../Images/Update_Dossier.jpg" xmlns:asp="#unknown">
In the code-behind file i have the following function :
Protected Sub frmOverzicht_ItemCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewCommandEventArgs) Handles frmOverzicht.ItemCommand
If e.CommandName = "Edit" Then
msgbox("ok")
End If
End Sub
Can someone help me ?
|
|
|
|
|
add onclick="Overzicht_ItemCommand" to the <asp:imagebutton xmlns:asp="#unknown">
I didn't get any requirements for the signature
|
|
|
|
|
Hi,
I created a simple graph that will display the Altitude of a unit, but I can not figure out how to change that ugly white background color to something else...
Note, I find that almost every color is configurable except the white background behind the background behind the graph...
<asp:Chart ID="Chart1" runat="server" Height="270px" Width="898px" BackColor="#005375"
BorderColor="26, 59, 105" BorderDashStyle="Solid" Palette="Fire" BackSecondaryColor="Gainsboro"
BackGradientStyle="TopBottom" BorderWidth="2"
BackImageTransparentColor="#003366" BorderSkin-BackColor="#003366"
BorderSkin-BackImageTransparentColor="#003366"
BorderSkin-BackSecondaryColor="#003366" BorderSkin-PageColor="#003366"
BorderSkin-SkinStyle="None">
<Titles>
<asp:Title Font="Trebuchet MS, 14pt, style=Bold" Text="Trip altitude information"
Name="Title1" Alignment="TopCenter" ForeColor="200, 200, 200, 200">
</asp:Title>
</Titles>
<Legends>
<asp:Legend IsTextAutoFit="False" Name="Default" BackColor="Transparent" Font="Trebuchet MS, 8.25pt, style=Bold">
</asp:Legend>
</Legends>
<BorderSkin SkinStyle="Emboss"></BorderSkin>
<ChartAreas>
<asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BackSecondaryColor="Black"
BackColor="#56818E" ShadowColor="Transparent" BackGradientStyle="LeftRight">
<Area3DStyle Rotation="0" Perspective="0" Enable3D="True" Inclination="10" IsRightAngleAxes="False"
WallWidth="0" IsClustered="False" />
<AxisY LineColor="64, 64, 64, 64" Title="Altitude [m]">
<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
<MajorGrid LineColor="64, 64, 64, 64" />
</AxisY>
<AxisX LineColor="64, 64, 64, 64" Title="Time">
<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
<MajorGrid LineColor="64, 64, 64, 64" />
</AxisX>
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
Any help would be much apprecitiated...
|
|
|
|
|
Are you using .NET 3.5 SP1 and Microsoft Chart Control ?
|
|
|
|
|
yes....
I "fixed" it by setting the border like this...
<borderskin skinstyle="None"></borderskin>
Tnx ^_^
|
|
|
|
|
Hello
I have a very simple aspx page
Webform1.aspx
The content is :
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="findMe.WebForm1"%>
This form is called by a command like this
http://194.7.96.51/webform1.aspx?imei=807252&rmc=$GPRMC,154729.000,A,5100.5004,N,0054.0390,E,67.37,264.11,011208,,*3E,AUTO
Then the form is calling a compiled dll
What I want to do :
Is find a way to get the incoming url BEFORE the process into the findme.dll (but it can be after too)
So I can make additionnal process on that information but into another Csharp service running on the same server.
Of course I'm doing in on the server side
Is is possible ?
If yes do someone have the patience to show me a little code example from the form in example ?
From my little knowlege, I see two possibilities
1- Insert code into the existing Webform1.aspx
2- Add a dummy WebForm1.aspx and rename the original one ?
|
|
|
|
|
Hi, i am using virtual earth.
<asp:content id="Content1" contentplaceholderid="head" runat="Server" xmlns:asp="#unknown">
<script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2"></script>
<script type="text/javascript">
var map = null;
var tampines1 = new VELatLong(1.3765917840991528,103.94714355468751, 0, VEAltitudeMode. RelativeToGround);
var tampvalue = document.getElementById('TextBox1');
function GetMap()
{
map = new VEMap('myMap');
map.LoadMap(new VELatLong(1.3608034433485081,103.86062622070314),11, VEMapStyle.Road, false);
var tampines = new VEShape(VEShapeType.Pushpin, tampines1);
map.AddShape(tampines);
tampines.SetTitle("Tampines");
tampines.SetDescription(tampvalue.value);
}</script></asp:content>
as u can see in my code "var tampvalue = document.getElementById('TextBox1');"
i am storing a value from a textbox which is extracted from the database.
This is my .cs file for the Page_Load method
protected void Page_Load(object sender, EventArgs e)
{
CasesDetails detail = CalculateCasesAccess.CountCases();
TextBox1.Text = detail.number.ToString();
}
When the page loaded, it will extract the value from database and store it to textbox1. After that the javascript will get the value and set the description "tampines.SetDescription(tampvalue.value);"
But this method issint working. When i open the page, i can see the value in the textbox but it does not set it in my javascript
|
|
|
|
|
Hi Benjamin ,
Put whole thing in a Function and call that function on body onload
|
|
|
|
|
Nishant Singh wrote: Hi Benjamin ,
Put whole thing in a Function and call that function on body onload
Why ?
|
|
|
|
|
As, TextBox1 is a Server Side Control, You can't get Data Directly by GetElementByID.
First of all You need to read ClientID then Try to use the same.
benjamin yap wrote: var tampvalue = document.getElementById('TextBox1');
var TestID="<%=Texbox1.ClientID%>"<br />
tampvalue=document.getElementById(TestID).value;
This will work for you.
|
|
|
|
|
thanks for ur help
|
|
|
|
|
Hi,
Girdview paging with checkbox
I have select the items in gridview checkbox.the selected items are
list in another gridview.Please help me.How to solve this task.
|
|
|
|
|
On what event the Items should be loaded in other GridView ,
Is it on Some Button Click or any other Server side event
If yes then
Put selected GridViewRow in a GridViewRow Object and add that Row object to Second GridView
eg
GridView2.Rows.Add(GridViewRow Object)
|
|
|
|
|
shanthi jothi wrote: Hi,
Girdview paging with checkbox
I have select the items in gridview checkbox.the selected items are
list in another gridview.Please help me.How to solve this task.
Good.
Then what is your problem ?
|
|
|
|
|
I'm displaying questions into a gridview.Now I want to take answers for questions into text box for each question ie for each row.I have around 80 questions and I'v to use paging(10 per page).But when i answer the question for 1st page and click the PageIndexButton the first page information is lost.so how can i take the answers of each page and insert into a database table.
|
|
|
|
|
Hi coders,
I dont know if this question has something to do with ASP.NET because I dont know my problem is causing because of ASP.NET or it is some CSS problem.
I am working on .NET 3.5. I have a .aspx page with lots of DIVs. When I run my project, it rus properly and displyed properly if my screen resolution is 1024*768... but when i change my screen resolution to any other value, some DIVs move here n their randomly. I couldnt figure out the reason after many tries. I am sure my HTML coding is perfect ( all DIVs and other tags are closed properly).
I would be thankful for any help and concern.
Thanks,
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
hello..
i have datalist in which thumbnail images are shown i want to show large image on particular image mouseover as tooltip...
|
|
|
|