|
a.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<p><a href="index.htm?id=1982">New Page 1</a></p>
</body>
</html>
b.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<script language=javascript>
function chkQueryString(){
document.getElementById('myid').innerHTML = "Result : " + getQueryVariable('id');
}
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if (pair[0] == variable) {
return pair[1];
}
}
alert('Query Variable ' + variable + ' not found');
}
</script>
</head>
<body onload="chkQueryString();">
<div id="myid">
</div>
</body>
</html>
Hopefully. it would help.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Thank you.
|
|
|
|
|
i have a usercontrol and there is a datalist and one imagebutton is there in datalist.when i am clicking on image button inside the datalist then itemcommand is not firing.plzz help me to solve this probs.
tbhattacharjee
|
|
|
|
|
use "LinkButton" instead of button..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Thank you.
|
|
|
|
|
i have given inetmgr in run my iis opened .I created one virtualDirectory and placed one.html and one.aspx files with same content.
i am able to run one.html from browser .
but i am getting page can't be displyed error for one.aspx page.
My main problem http://localhost couldn't display default server page .
So pls tell me what i have to do.
Thanks inAdvance.
|
|
|
|
|
Hi,
1. If you are adding any .aspx, that file should be a valid .aspx file. i.e Page should have '<% @Page Language='C#' %>. Otherwise it will not display.
2. If the page is valid then you need to set default page.
Open Inetmgr -> Right Click your web application -> Go to second tab 'Documents' -> Remove all files from the list -> And add your default page name.
3. If application files are in main folder (i.e wwwroot/inetpub) .. then it can be accessed using the link 'http://localhost.
4. If in some other folder then 'http://<virtual directory> (make sure that you have added default document as given in step 2).
Hope this helps.
Harini
|
|
|
|
|
Check and make sure that C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll is assigned to the Aspx extention in you application mapping dialog. You may have not installed .NET
nothing
|
|
|
|
|
in the databound gridview i want a hyperlink . on click of which it should go to another form carrying a querystring.
urgent !!
thanks in advance
|
|
|
|
|
To accomplish this you need to override the Gridview OnItemDatabound.
Then find your Hyperlink control and set his NavigateURL to your desired databound field from the parameter “e”.
Can you tell us what you have done or accomplished. This will help us to determine what particular problem/mistake you have.
Regards,
Mark
|
|
|
|
|
Or your can use a HyperLinkField and have the grid view do it all for you
|
|
|
|
|
Hello all,
I am new to .net, m developing a small application, the problem i face is whenever there is a postback on my page the font size of the whole page increases. How can i avoid this ??
Any help would be appreciable.
Thanks in advance.
Deepak
|
|
|
|
|
Strange !!! Never Seen
Have you writen any code in Post back ?
<l>Thanks and Regards
Sandeep
|
|
|
|
|
Hi Deepak,
If font size increases after postback, it means there is some javascript error.
If it so, but how to check?? Then double click on the left corner of your web browser. (Instead of text 'Done', text 'Done with some errors' will be displayed if there is an error in your .aspx). Error may be syntax error or Braces not enclosed etc...
Check it now. Hope you got it.
- Harini
|
|
|
|
|
May be the possible cause of this problem is you have improper html tags, I mean no closing tags.
How will this happen.
1.You have a literal control then you set his value to this Literal1.Text =”<H1>My H1” when page load was trigger.
2.You have a label and you set his value to this Labe1.Text = “This is a <B>Bold”.
3.GridView or Datagrid Item has a HTML value with no closing Tags.
4.You have generated a DHTML code with no closing Tags. Eg. InnertHTML or OuterHTML.
I think there are much more reason out there.
Check your browser view code now to verify if your HTML conform to HTML standards or XHTML.
Regards,
Mark
|
|
|
|
|
do you hav firebug installed in your firefox browser?
if you dont have then maybe you can install this extension..
this is really powerful tools for web development. you can use this tool for debugging javascript, logging, inspecting HTML DOM and CSS...
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Thank you.
|
|
|
|
|
Click on the View Tab of the Internet Explorer
then, Select the Text size to Medium.
Hope this will help you out of your problem.
Regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|
|
Often times, in my world, this occurs when you have a response.write() sort of deal in your code on postback() that is breaking the intended render of your page.
Check to be sure your postback debugging sort of response/writes aren't causing the issue.
Best of Luck,
Bill Dodd
bill.dodd{at}gulf-technology.com
Gulf Technology
www.gulf-technology.com
|
|
|
|
|
I had this same problem. Issue was caused by a post back that involved a response.write()(or-not). I resolved the issue by changing my 'Font-Size' from 'large' to an actual integer such as 16, or from 'small' to '10'
|
|
|
|
|
when we get an error how we can store that in sqlserver database
|
|
|
|
|
Write a Logger class and a static method to store log details.
In the business layer, you can call this method when exception occurs(inside catch block)
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
you can do as same as you do when you are adding new records to database.
Or. maybe you may try to use Enterprise Logging Library or log4net library..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Thank you.
|
|
|
|
|
can you give me one example
|
|
|
|
|
Take a look at this: log4net. A google search on 'getting started with log4net' will give you plenty of examples. It also means you can safely ship your code with debug statements still in.
|
|
|
|
|
Manual logging.
public bool SaveSomething(string something){
try{
using (SqlConnection connection = new SqlConnection(
connectionString)){
SqlCommand command = new SqlCommand("INSERT INTO Table1 VALUES('" + something + "'", connection);
command.Connection.Open();
command.ExecuteNonQuery();
}
}
catch(Exception ex){
LogError(ex.Message)
}
}
public void LogError(string msg){
using (SqlConnection connection = new SqlConnection(
connectionString)){
SqlCommand command = new SqlCommand("INSERT INTO LogTable VALUES('" + msg + "'", connection);
command.Connection.Open();
command.ExecuteNonQuery();
}
}
If you wanna know how to use "log4net" or "Enterprise Logging Library", please google with these keywords "log4net sample" or "Enterprise Logging". cuz it's not that easy to post a lot of code here..
hope, it would help..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Thank you.
|
|
|
|
|
Hi,
I have created region using graphic in VB.net and assign that region as button.region = region.
my code as,
Dim polyPath As New GraphicsPath(FillMode.Winding)
Dim pts() As Point = { new point(0,0), new point (50,0), new point(50,50), new point(0,50)}
polyPath.AddPolygon(pts)
Dim rotation_matrix As New Matrix
rotation_matrix.RotateAt(0, New PointF(25, 25))
'Transform the GraphicsPath.
polyPath.Transform(rotation_matrix)
Dim polygon_region As Region
polygon_region = New Region(polyPath)
button1.region = polygon_region
This works fine in vb.net, thru this i can able to create new square shape in button control. I want to reuse this code in ASP.net. Any help on this.
Thanks in advance.
Be simple and Be sample.
|
|
|
|
|
Asp.net is a different technology. Every time the page loading the dll rendered an html page. So this code won’t work in asp.net. Actually what is your requirement?
Thomas
|
|
|
|