|
girmay wrote: what do you know about serach engines by asp or other
try to find out and give with the uniserver then I will apreciate you..!!!!!!
|
|
|
|
|
hi all,
got a nasty one. Trying to get the selecteditem that a user clicks in an gridview, however the gridview is in an update panel. At first i thought the problem was with the session state - but what actually happens is the update panel does a postback sends everything back to the server but the server only sends back whats in the update panels.
The main problem is when a user clicks the button, this causes an asynchronous postback the event fire in a different order to normal so i detected the button that was pressed after the page load event has fired and therefore miss capturing from session.
Has anyone solved this?
Here is my code: -
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load<br />
<br />
Dim selectedItemID As Integer = CType(Session("SelectedItemID"), Integer)<br />
<br />
End Sub
Protected Sub itemsGridView_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles itemsGridView.RowCommand<br />
<br />
Try<br />
<br />
Dim selectedItemID As Integer = CType(Session("SelectedItemID"), Integer)<br />
'Check for custom CommandName Argument<br />
If e.CommandName = "SelectItem" Then<br />
<br />
' Convert the row index stored in the CommandArgument<br />
' property to an Integer.<br />
Dim index As Integer = Convert.ToInt32(e.CommandArgument)<br />
<br />
' Retrieve the row that contains the ImageButton clicked<br />
' by the user from the Rows collection.<br />
Dim row As GridViewRow = itemsGridView.Rows(index)<br />
<br />
' Get a handle on ImageButton clicked<br />
Dim imgbtnItem As ImageButton<br />
imgbtnItem = row.Cells(13).Controls(0)<br />
<br />
<br />
selectedItemID = row.Cells(0).Text<br />
<br />
'Session("SelectedItemID") = selectedItemID<br />
<br />
End If<br />
Catch ex As Exception<br />
MsgBox(ex.Message.ToString, MsgBoxStyle.Information, "ItemsGridView RowCommand Error!")<br />
End Try<br />
<br />
<br />
End Sub
|
|
|
|
|
i have a girdview inside a panel, i have include css
.TblHeaderFixed
{ position:relative;
top:expression(this.offsetParent.scrollTop-2);
}
in GridView i have inclued as shown
HeaderStyle-CssClass="TblHeaderFixed"
i find the header fixed but it creeps out of the div or panel in which the grid is placed. The DataRow of the grid however remains within the div. but only the header is out.
Note this same concept works in .net 2003 but header creeps out in .net 2005. please help.......
|
|
|
|
|
I have a project which consist of updatepanel. In that panel i have a popup
Inside popup I have text boxex which are validated using required field validator. In the same popup I have save button.
Actually I those validator doesnt work.
When I click save button with one text box empty I post the page and save the balnk data of that popup.
Actually I need to remain in same popup in any text box is empty.
I have browse the page in IE and firefox but It doesn't work.
please tell me what the problem and Its solution.
BUT In my friends computer It works well.
|
|
|
|
|
Hi all
I am developing function upload file by asp.net
But have problem when i choose file > 5MB after that click submit
My IE or Firefox have error:
Firefox:
The connection to the server was reset while the page was loading.
* The site could be temporarily unavailable or too busy. Try again in a few
moments.
* If you are unable to load any pages, check your computer's network
connection.
* If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.
IE :
Most likely causes:
You are not connected to the Internet.
The website is encountering problems.
There might be a typing error in the address.
Diagnose Connection Problems
|
|
|
|
|
ASP.NET defaults the upload limit to 4MB. You can increase this in the web.config file. See this[^]
|
|
|
|
|
Hi
You can upload larger files by changing maxrequestLength in Web.config section.
<configuration>
<system.web>
<httpruntime executiontimeout="1800" maxrequestlength="400000">
Bhanu
|
|
|
|
|
iam having a textbox where i stopped to write some thing in the text using onkeydown return fale but how i can stop the user if the user select complete text and cilck right click mouse and select delete or cut
using javascript
|
|
|
|
|
I don't know how to handle specific to textbox but you can enable it for the whole page add removed="return false" to the body tag and check
If you don't want alter the textbox value better to make that textbox readonly
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
try<br />
{<br />
draw = new System.Drawing.Bitmap(intWidth, intHeight);<br />
g = System.Drawing.Graphics.FromImage(draw);<br />
g.Clear(System.Drawing.Color.White);<br />
<br />
<br />
System.Drawing.Bitmap bitmap = null;<br />
string temp = "";<br />
for (int i = 0; i < 25; i++)<br />
{<br />
for (int j = 0; j < 25; j++)<br />
{<br />
if (arrInformation[i, j] != temp)<br />
{<br />
bitmap = new System.Drawing.Bitmap(Request.MapPath(arrInformation[i, j]));<br />
g.DrawImage(bitmap, 25 * i, 25 * j, 24, 24);<br />
temp = arrInformation[i, j];<br />
}<br />
else<br />
{<br />
g.DrawImage(bitmap, 25 * i, 25 * j, 24, 24);<br />
}<br />
}<br />
}<br />
<br />
Response.ContentType = "image/gif";<br />
draw.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif);
arrInformation is a string array with the paths the the images that need to go in the slots
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Most of the GDI+ classes are slow and performance costly. You should call it's Dispose() method when you are done with the instance. This forces instant memory claim. Wrap your instances in "using" keyword, which ensures the disposal.
For more information visit Bob Powells GDI+ FAQ[^]
|
|
|
|
|
Hello all, I have two queries related to user control.
One, how can i include a .js and .css file in an .ascx page? Are we allowed to use tag, if yes then can I just include them as usual by using tag?
Two, I have an HTML(not aspx) page which i want to convert to a user control. I have javascript functions being called on the "load" and "onmousedown" event for the body of the HTML page. But since user contriol do not have body so how do I implement it...?
Please help...
|
|
|
|
|
om pr wrote: One, how can i include a .js and .css file in an .ascx page? Are we allowed to use tag, if yes then can I just include them as usual by using tag?
Yes you can do that. Or you can include them in the page where you will use them.
om pr wrote: Two, I have an HTML(not aspx) page which i want to convert to a user control. I have javascript functions being called on the "load" and "onmousedown" event for the body of the HTML page. But since user contriol do not have body so how do I implement it...?
HTML you can convert to user controls. Since it doesn't have a body tag, you should call OnLoad events inside the page where you use them.
|
|
|
|
|
Hi,
i created one user control, in that control i called function. But it is not working when i used that user control in my form.
But the same coding can be working in pages.
Can any one help me?
In my user control i created one table like this,
I write the code in server side as follows,
HtmlTableRow htr,htr1;
HtmlTableCell htc;
htr = new HtmlTableRow();
htc = new HtmlTableCell();
htc.InnerHtml = "Sutheesh Visible";
htr.Cells.Add(htc);
SampForum.Controls.Add(htr);
htr1 = new HtmlTableRow();
htr1.ID = "Hello";
htc = new HtmlTableCell();
htc.InnerHtml = "Sutheesh Invisible";
htr1.Cells.Add(htc);
htr1.Style.Add("display", "none");
htr.Attributes.Add("onClick", "ShowHide('" + htr1.ClientID+ "')");
Ftable.Controls.Add(htr1);
JavaScript:
function ShowHide(cell)
{
alert(cell);
if(document.getElementById(cell).style.display=="none")
document.getElementById(cell).style.display="inline";
else
document.getElementById(cell).style.display="none";
}
|
|
|
|
|
Why isn't it working? You haven't stated what the problem is.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Thanks for ur reply friend.
The page cannt find document.getElementById(cell), because it (cell) is created in usercontrol.
|
|
|
|
|
Member 4755319 wrote: because it (cell) is created in usercontrol.
Have you checked the page source ? Verify the alert is giving the same name which is there in the page source.
|
|
|
|
|
Thanks Navaneeth, Finally i got the answer by ur clue, i saw the page source it was different from the id. It includes usercontrolname_id.
Now my user control is working fine.... Thanks alot..
|
|
|
|
|
Hi all,
iam generating a report and binding it to a grid view. This grid contain too many reports. When iam using window.print the whole report is printed on 1 page with a very very tiny font. while i want the report to go on second and third page etc... if it has too many columns in it.
thanks
|
|
|
|
|
Hi dears,
I have a website with ASP.NET 2.0
in my website each user has an album that can upload her photos on it.
User should be able to delete images(my website i s hosted on my dedicated server).But its impossible. I did grant delete access for aspnet user to PhotoAlbum directory on server, but I can`t delete any file.
the aspnet user in server is member of users group not administrators group.
I want to know how can I fix this problem ?!
thx for your help,
www.behzadi.net
|
|
|
|
|
Try impersonating user before you delete and undo the impersonation after you are done. Check this[^] MSDN article for getting an idea on this.
|
|
|
|
|
i have a girdview inside a panel, i have include css
.TblHeaderFixed { position:relative; }
in GridView i have inclued as shown
HeaderStyle-CssClass="TblHeaderFixed"
i find the header fixed but it creeps out of the div or panel in which the grid is placed. The DataRow of the grid however remains within the div. but only the header is out. Kindly help...
ranji varghese
|
|
|
|
|
hi friends
this is my code for check the system LAN connected or not
Dim server As String = "207.46.134.222"
Try
Dim hostInfo As IPHostEntry = Dns.GetHostByAddress(server)
Catch ex As Exception
Response.Write("OFF, host turned off")
End Try
here i connect the 20 machines through LAN.here i give all the machine IP in code behind(same as above code)
if i run the application ,the application performance is poor display the LAN details 5 min
how can i improve my applicaton peformance
Regards
saravnan
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
Plz help....
While i'm clicking the linkbutton i'll get N=A or N=D in Url box...
Thanks in advance
|
|
|
|
|
I want to display a message box with Ok and Cancel buttons in Asp.Net using C#. Can anyone help me in this?
Thanks in advance..
Thanks & Regards,
Radha
|
|
|
|