|
Firdous wrote: What is guid and uvid?and the uses
A GUID is a globally unique identifier. If you generate one it is guaranteed to be unique. You would use one where you want an identifier to be generated regardless of the computer it is being generated from.
An UVID is an Ultra Violet Identifier. It is an identifier that shows up under ultraviolet light. You would place one on your property to make it easier for the police to locate and harder for a theif to sell.
|
|
|
|
|
|
|
Don't delete your messages, it is rude and really messes up the forums. Now look at that trail of crap you've left behind with all of those [Message Deleted] posts.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
|
By using the return keyword:
Like this:
[return: AttributeForTheReturnValue]
|
|
|
|
|
Don't delete your message it is rude.
|
|
|
|
|
Why clr allows private to access Main Method
|
|
|
|
|
Firdous wrote: Why clr allows private to access Main Method
Does it? private means that no other class or struct can access the private member. It can only be accessed from the class in which it had been defined.
When your application starts up, which class is accessing the Main method?
|
|
|
|
|
Have EditModule.aspx form and an helpMod.aspx(popup) form.
when image button clicked in Editmodule.aspx, helpmod.aspx opens.
Helpmod.aspx is loaded with 2 field "id and name" in grid using sql query.
id is kept as link button in the grid.
When linkbutton "id" clicked, i need the id must be placed in the "textfield" of EditModule.aspx.
Kindly help in this regard.
dhana
|
|
|
|
|
What method are you trying to pass id ? You could do a cookie or session variable.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
I am using session variable
dhana
|
|
|
|
|
Well, in your edit file, you do a Session("id")=id , and in the the help file you do a id=Session("id") . Since session variables are not strong typed, you can actually declare a string before the Session(...) containing the name of the session variable. This helps prevent typos in the session variable name. ID, iD, id are all different variable names as far as sessions are concerned.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
kindly write me a clear coding for that, As i am a new programmer. plz
dhans
|
|
|
|
|
The follwing is the coding in Editmodule.aspx
protected void Page_Load(object sender, EventArgs e)
{
if (Session["username"] == null)
{
Response.Redirect("PMSessionExpiry.aspx");
}
string strAccess, Filename;
strAccess = null;
Filename = System.IO.Path.GetFileName(HttpContext.Current.Request.CurrentExecutionFilePath);
strAccess = PTSGeneral.File_Found(Session["username"].ToString(), Filename);
if (strAccess == "")
{
Response.Redirect("PMAccess.aspx");
}
if (!IsPostBack)
{
//Fill project name, module name to dropdownlist.
PTSGeneral.DDlGetData("select pr_id,pr_name from project_mst order by pr_id", DDLProjectName, "pr_name", "Pr_id");
ProjectId = DDLProjectName.SelectedValue.ToString();
lblModId.Text = CModule.getMaxModuleID();
//PTSGeneral.DDlGetData("select mo_id,mo_name from module_mst where pr_id='" + DDLProjectName.SelectedValue.ToString() + "' order by pr_id,mo_id", lblModId , "mo_id", "mo_name");
PTSGeneral.getUserDetails(ddlModifiedBy);
//call script for only accept only numeric value in no.of developer field
txtNoofDeveloper.Attributes.Add("onKeypress", "javascript:return inputNumbers()");
}
}
2. source contains the following
<a href="javascript:OpenPopupPage('HelpMod.aspx','<%= txtModIdSearch.ClientID %>','false');">
<img id="imgHelpMod" onclick="return imgHelpMod_onclick()" src="images/help4.jpg" style="width: 19px" height="19" /></td>
3. helpmodule.aspx has the following
No coding.
only grid which contains "module id, module name"
Kindly give a clear coding how to do and where to write. plz
dhans
|
|
|
|
|
how to get the current calender name that selected in the PC from the controle panel
how can i determine if the calnder is hijri or gregorian?
regards
|
|
|
|
|
Hi all
can anyone explain me about autopostback property.
pintoo
|
|
|
|
|
|
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.
|
|
|
|
|