|
If you need separate windows to be separate identities, you can't use sessions or cookies to identify them. The identification has to follow the page, and be sent back and forth between the browser and the server for every request.
You can for example put an id in a hidden field in the form. That way the id goes into the page, and back to the server at postback.
---
single minded; short sighted; long gone;
|
|
|
|
|
My computer is connected to internet throw a DSL cable modem. ipconfig command says that the ip address is 192.168.1.64. I think this is the IP of lan card. "Network connection's" settings is as "Obtain an IP address automatically". By the way, ipconfig also says the "Default Gateway" is 192.168.1.1. This is the IP address of my modem. When I type is address in IE, the modem settings page is opened. That settings page says the IP is 88.213.51.58. I typed this on IE, It opened the modem settings page again. I tried the "ipaddress.com", it says my IP is 212.107.116.248. Each sources showing different IP. How can I find the correct one?
|
|
|
|
|
Mic Mathi wrote: 192.168.1.64.
Your System IP which is in LAN
Mic Mathi wrote: 88.213.51.58
may be static IP of your provider
Mic Mathi wrote: 212.107.116.248
This seems to be your real IP
|
|
|
|
|
Thank you for your information. My computer is located on Eastern Province, Saudi Arabia
|
|
|
|
|
use this and try to use google, dont be spon feeder.
ServerVariables["REMOTE_ADDR"]
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
Perhaps you should use google to look up the word hypocrite. At least he only posted the question to one forum...
Your Post[^]
Same post - different forum[^]
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
he can make use of <satips></satips> tag for his posts
|
|
|
|
|
Harsh...but funny...
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
And the best one is that he posted the .NET question in a C++/MFC forum
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
Open command winsow and type "ipconfig".this will display ur ip and other details
Regards
Bino
|
|
|
|
|
declare @noofdays as varchar(5)
declare @month as varchar(5)
declare @year as varchar(5)
declare @appdate as smalldatetime
set @appdate=8/1/2007
Set @noofdays=Day(DateAdd(Month, 1, '@appdate') - Day(DateAdd(Month, 1,'@appdate')))
set @month =datepart(month,'@appdate')
set @year=datepart(year,'@appdate')
select @noofdays,@month,@year
Hi in this i am getting error like "Syntax error converting datetime from character string."
How to solve that ...,
Plz help me,
Advance thanks...,
Regards,
Magi
|
|
|
|
|
Hi there,
definately this will give you the error.
The solution is to take field as datetime type, or if u dont want to take datetime type than u should have to convert the datetime value coming from source to your procedure to string.
also you can convert the datetime to string through function given below.
convert(varchar,column name,format code);
search more on this function u get result.
my sugestions:
Convert the datetime to string while tghe value is passing to stored procedure,
or tell me the actual requiremebnt so i can help u.
sulabh
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
Hi all,
I am displaying a flash file on home page of our site which is developed in asp.net 2.0.
Is there any way to read key values in web.config from flash file.?
Thanks in advance,
LVPrasad Y
|
|
|
|
|
Hi,
To my knowledge, no there is no way to access the web.config file from outside .NET code, but I could be wrong, that's why I suggest to wait for a second opinion.
What I can suggest also is that you place what you need in another XML file that could be easily read by the flash application.
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
Hello All,
I have created a website and used HTML as design base tool, i used table structure, in TD's and TR's i design a site,
the problem is when i want to take only one textbox and button on a page then they should be come at center
and to bring them center i have to give lot of
<tr><br />
<td><br />
<br />
</td><br />
</tr>
and the page is seems to be very lenthy and diffcult to read
is there any way to reduce the code
please help....
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
koolprasad2003 wrote: and the page is seems to be very lenthy and diffcult to read
I don't feel this as a problem. Browsers don't have any problem to read bulk HTML code, more over it's a good practice to use TR and TD's instead of using styles to align them.
|
|
|
|
|
Do you want to center vertically or horizontally? or did I completely misunderstand?
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
The best thing you can do is to give height to ,even if its deprecated. Or what u can do is provide padding style to ex:
Regards
Bino
|
|
|
|
|
Thankx a lot to all
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Hi,
Language: Visual Studio 2.0, ASP.Net, C#
Case:
1) Datagrid Bound columns generated at runtime and populated from the dataset.
2) Datagrid contains a select button. When the select button is pressed a new report is generated.
Problem: During the first page_load grid is populated properly but when it is postback Datagrids items and cells are not visible in the select buttons itemcommand method.
I know ASP.NET 2.0 uses partial classes, but
how the old InitializeComponent method
can be eliminate from the code-behind class and partial
class be used in its place?
A quick reply will be really helpful.
Please feel free to revert in case of any clarification.
Thanks!
|
|
|
|
|
The problem is ASP.NET is not maintaining viewstate for the controls created runtime. I assume that you are creating columns in page_load . When page_load event raises, ASP.NET had already loaded viewstate for the controls. So to solve your problem, you need to bind your grid before page_load event. Then ASP.NET will maintain viewstate for your dynamic controls. May be PreLoad event.
|
|
|
|
|
Thanks for your reply Navaneeth,
The solution u provided is not working. I am creating the Bound columns at runtime from a method which i am calling in the page_load if the page is not postback. By referring the articles in the google i came to know that i should not be using page_load, instead i should call the method in the initializecomponent() , but since i am working on .Net 2.0 it does not have initializecomponent method.
Thanks
|
|
|
|
|
Anees Mitha wrote: page_load if the page is not postback. By referring the articles in the google i came to know that i should not be using page_load, instead i should call the method in the initializecomponent() ,
Try PreLoad event, This is new to ASP.NET 2.0
|
|
|
|
|
Hi there, are u getting the dat set on page load. if yes than i think this will not create problem.
Also u can try with calling the loadgrid function on page load as well as rowitem command.
better way to create function and call it any where u want and seems creating problem.
this is final solution
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
Navaneeth, I have tried PreLoad and its not working.
Please find below my sample code so that u get a better idea.
protected void Page_PreLoad(object sender, EventArgs e)
{
if (!IsPostBack)
{ getdata(); }
.....
}
public virtual void grdvwCheckbox_ItemCommand(object s, DataGridCommandEventArgs e)
{
if (e.CommandName == "Select")
{
e.Item.BackColor = System.Drawing.Color.Wheat;
DataGrid dg = (DataGrid) s;
.........
}
}
public void getdata()
{
DataSet ds = new DataSet();
string rptDetails;
rptDetails = txtRptDetails.Text;
GridReports objBO = new GridReports();
ds = (DataSet)objBO.GridData(rptDetails);
grdvwCheckbox.AutoGenerateColumns = false;
foreach (DataColumn c in ds.Tables[0].Columns)
{
grdvwCheckbox.Columns.Add(CreateBoundColumns(c));
}
...................
}
Hope this helps u to help me.
If u have any working sample code in .Net 2.0 where Bound columns are created at runtime and ItemCommand event
is fired then please forward it to me.
Thanks guys for your reply!
|
|
|
|