|
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
|
|
|
|
|
Hi,
I want to create different shapes and show it in web form dynamically. I did the same in vb.net to create shape as region and assign to button.region.
Thanks.
Be simple and Be sample.
|
|
|
|
|
You can use flash objects, animated gif, images, CSS or JavaScript animation instead of that.
Thomas
|
|
|
|
|
A web page is simply a text document of HTML markup, this is what ASP.NET sends to client, it is completely different from a WinForms application. There is no such thing as a 'shape', just buttons, text boxes, divs, spans etc.
|
|
|
|
|
hello all
i m developing a website. it is runing properly on www.but i hav to use a ajax control into a particular page and tht gives me following error
Ambiguous match found.
so anyone help me abut this error.
best regards
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Hi Deepak,
I searched this in google site.
Are you using VB.Net as code behind language?
Then it seems like you have two variables in your page that differ only in the
case. For example, in your aspx page, you might have
<asp:textbox id="UserID" runat="server">
and in the code behind file you might have
private Int32 userID = 0;
Double check your code.
Harini
|
|
|
|
|
hi harini
tnx a lot buddy i appreciate u.
i m using C# in VS2005
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|