|
|
autopost back property of any control on aspx page
indicates whether to submit the page to server on the specific event
of that control or not.you can set this property either true or false.
rahul
|
|
|
|
|
For understanding AutoPostBack, we need to know , what a PostBack
Then, what is AutoPostBack, Autopostback is the mechanism, by which the page will be posted
Back to the server automatically based on some events in the web controls. In some of the web controls, the property called auto post back, which if set to true, will send the request to the server when an event happens in the control
For example.
Dropdown Box (Combo box) web control has the property autopostback, if we set the property to true, when ever user selects a different value in the combo box, and event will be fired in the server. i.e. a request will be send to the server.
Why we need to send a request to the server in this case?
Consider this scenario where the web page is used for entering the user information. The page contains two combo box controls State and Town. When user selects the state, the appropriate towns should be filled in the town combo box which is loaded from the database. For achieving this requirement, we can set the autopostback property of state combo box to true. If we do that we can handle the event in the server side and write code to populate the town combo box with the values from the database.
This is how we use the autopostback property. I will give another example for the autopostback usage with another control which will give much better understanding.
Consider a login page, which contains text fields User ID, User Name and Password fields. User name text box will not be editable. So the requirement will be like this, when user enters the user id and clicks tab, his name should be displayed in the User Name text field. For achieving this we have to make autopostback property of the user id textfield to true and handle the event in the server side, In the event handler, we have to write code to fetch the user name from the database for the user id ,which we will be getting from the user id text box
dhans
modified on Friday, January 04, 2008 2:07:23 AM
|
|
|
|
|
HtmlElementCollection links = webBrowser1.Document.GetElementsByTagName("a");
foreach (HtmlElement link in links)
{
//if link links to some interested URL, navigate to link
}
Which property may I use to get the "a href=some url"?
|
|
|
|
|
Hi,
Look here[^]
May be it will help you
Regards.
"If I were not myself, I would like to be somebody like myself."
|
|
|
|
|
hi.
i have creat a flat earth by below code.
but it s withe.
i wan t to texture it by a bmp file.
i don t khow how i can do it.
please help me.
thanks.
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.DirectX;
using Microsoft.DirectX.Direct3D;
using System.Drawing;
namespace Directx1
{//in this class we creat a 100*100 flat earth .
class GameEngine
{
private GraphicInitiator graphicInit;
private Device device3d;
private Form1 form;
private VertexBuffer vb;
private short[] indices
private IndexBuffer ib;
private int WIDTH = 100;
private int HEIGHT = 100;
private int[,] heightData;//we set the heightdata to 0 bc we want a flat surface
private CustomVertex.PositionColored[] vertices;
private void IndicesDeclaration()
{//in index buffer we set the indecses
//by this code we diclear a 100*100 earth
ib = new IndexBuffer(typeof(short), (WIDTH - 1) * (HEIGHT - 1) * 6, device3d, Usage.WriteOnly, Pool.Default);
indices = new short[(WIDTH - 1) * (HEIGHT - 1) * 6];
for (int x = 0; x < WIDTH - 1; x++)
{
for (int y = 0; y < HEIGHT - 1; y++)
{
indices[(x + y * (WIDTH - 1)) * 6] = (short)((x + 1) + (y + 1) * WIDTH);
indices[(x + y * (WIDTH - 1)) * 6 + 1] = (short)((x + 1) + y * WIDTH);
indices[(x + y * (WIDTH - 1)) * 6 + 2] = (short)(x + y * WIDTH);
indices[(x + y * (WIDTH - 1)) * 6 + 3] = (short)((x + 1) + (y + 1) * WIDTH);
indices[(x + y * (WIDTH - 1)) * 6 + 4] = (short)(x + y * WIDTH);
indices[(x + y * (WIDTH - 1)) * 6 + 5] = (short)(x + (y + 1) * WIDTH);
}
}
ib.SetData(indices, 0, LockFlags.None);
}
private void LoadHeightData()
//
{we want a flat surface and we set the the heiatdata =0
heightData = new int[WIDTH, HEIGHT];
for (int x = 0; x < WIDTH; x++)
{
for (int y = 0; y < HEIGHT; y++)
{
heightData[x ,y]=0;
heightData[x ,y]=0;
heightData[x, y] = 0;
}
}
}
public GameEngine(Form1 Frm)
{
form = Frm;
graphicInit = new GraphicInitiator();//creat a grafic card
graphicInit.initDevice(ref device3d, form);
LoadHeightData();//hamashon sefran
VertexDeclaration();
IndicesDeclaration();
CameraPositioning();
}
public void clear()
{
device3d.Clear(ClearFlags.Target, Color.DarkSlateBlue, 1.0f, 0);
}
private void CameraPositioning()
{
device3d.Transform.Projection = Matrix.PerspectiveFovLH((float)Math.PI / 4, form.Width / form.Height, 1f, 300f);
device3d.Transform.View = Matrix.LookAtLH(new Vector3(0, -50, 15), new Vector3(0, 0, 0), new Vector3(0, 0, 1));
device3d.RenderState.Lighting = false;
device3d.RenderState.CullMode = Cull.None;
}
private void VertexDeclaration()
{
vb = new VertexBuffer(typeof(CustomVertex.PositionColored), WIDTH*HEIGHT, device3d, Usage.Dynamic | Usage.WriteOnly, CustomVertex.PositionColored.Format, Pool.Default);
vertices = new CustomVertex.PositionColored[WIDTH*HEIGHT];
for (int x=0;x< WIDTH;x++)
{
for (int y=0; y< HEIGHT;y++)
{
vertices[x+y*WIDTH].Position = new Vector3(x, y, 0);
vertices[x+y*WIDTH].Color = Color.White.ToArgb();
vertices[x + y * WIDTH].Position = new Vector3(x, y, heightData[x, y]);
}
}
vb.SetData(vertices, 0 ,LockFlags.None);
}
public void drawWorld()
{
CameraPositioning();
device3d.BeginScene();
device3d.Transform.World=Matrix.Translation(new Vector3(-50,5,-20));
device3d.VertexFormat = CustomVertex.PositionColored.Format;
device3d.SetStreamSource(0, vb, 0);
device3d.Indices = ib;
device3d.DrawIndexedPrimitives(PrimitiveType.TriangleList, 0, 0, WIDTH * HEIGHT, 0, indices.Length / 3);
device3d.EndScene();
device3d.Present();
}
}
}
|
|
|
|
|
Clicky[^]
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
Also clickety has a tutorial on creating a textured skin.
Regards
Guy
You always pass failure on the way to success.
|
|
|
|
|
hi
i wrote a chat aplication . it works for cliens that use diffrent internet account , because they have two diffrent IPAddress in that way.
but my problem is when clients use a share internet (for example they are in cafenet or catenet) my aplication couldn't RECOGNIZE the true client ,
because it found sevral clients with same IPAddress . could you help me how i can get real IPAddress of each clients? thank you .
|
|
|
|
|
Is your chat application installed in client's machine? If yes, I think it's possible to get the real IP Address.. but if your application is web application, I don't think it's possible..
|
|
|
|
|
No ,the server of chat install and run in server of one website , and client just have the exe of client chat
|
|
|
|
|
Hi All
I Create new activex control by using C#.Net
the new activex control is New textBox By Name SmartTextBox
i add to this control new properites as Type(int,Decimal,String....).
and i wount to add new proper to this control the proper is language as a combobox have 2 items or mor as Arabic ,English .....
but i dont know how i can add this items to combo bx as a propertes
the ConboBox Is the same as the proper for the TextBox .Net
(ComboBox)AlimgentText (Left ,Center, Right)
(I wount to add language as proper have (Arabic,English......))????.
Who I Can Do This Option ?
Thanks For any body hellp me
Thaer
|
|
|
|
|
i need to record and reply the action on a browser.
could any one help me .in addition i want to get the control ids from the html page.
with regards
Balagurunathan.B
|
|
|
|
|
balakpn wrote: i need to record and reply the action on a browse
You mean, like macro recording?? if yes, there is one firefox addon that can record the user inputs..
|
|
|
|
|
not simple macro like . i want to do like how a testing tool does.
with regards
Balagurunathan.B
|
|
|
|
|
Hi all Friends how i can Show the Record Like this
1
2
3
4
5
6
7
8
//////////////////////////////
i want to show the Record in this manner
1 2 3 4
5 6 7 8
How i can do this plz any body tell me
wasim khan
|
|
|
|
|
Hai i have a doubt were can i draw 2D lines rather than bitmap and window form,can any one suggest me the better way to draw and save them
|
|
|
|
|
The best way, is just to draw to a new Bitmap / Image, and then use its save method. And there's only 2 places you can draw: The Screen, and an offscreen image.
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
If you want to conserve space you could create a vector file.
That is a file that saves the coordinates of the line (start point, end point, line thickness, line colour, anti-aliasing etc) and then just read the file each time you need to a draw the line(s) according to the vectors in the file.
Regards
Guy
You always pass failure on the way to success.
|
|
|
|
|
hi,
My aim is to deploy a c#.net desktop application
I know two ways to make a setup
1. creating a setup project
2. Simply publishing it
now in my project i am using a DLL .i want to make a setup of this project by the Way 1.. when i tried with publish it woked ..i dont have any idea how to do it by using a setup project ...
***In simple words how can we add dll file to the GAC of the Client System using a msi **
Plz Plz ....do let me know
Sindhu tiwari
Merry Xmas
|
|
|
|
|
|
thank u for replying ..
i have searched on google b4 also as i dint find the solution i posted this question .......i want to know how to deploy a dll in the clients system and regestering it to GAC .....?
i know deploying
this thing is working fine wid the publishing but not wid the setup and deployment
regards
sindhu tiwari
its me sid
|
|
|
|
|
Actually, there are two deployment options in VS. You can create either ClickOnce setup or normal setup... If you are using ClickOnce, you won't be able to registry the dlls to client's GAC..As you were saying about publishing things, I think you are using Clickonce that isn't possible to install dll to GAC..
|
|
|
|
|
|
Ummm,, with code behind when you add data to the datagridview. Can't really give an example since we have no idea what your database structure looks like.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|