|
Hi,
Thanks for replying.
I am not sure on how to redraw the grid. i mean, i am not sure on which event to use for creating the controls, so that the controls are available for itemcommand.
Can u please provide a bit more detail.
Thanks again.
Mark
|
|
|
|
|
Hey Friends, I have found one new website for free online test and interview questions http://www.smarttestguru.com/[^]
Do visit its useful.
Nikhil Bandekar
Mumbai,
India
|
|
|
|
|
You might be trying to help but your thread is against CodeProject rules. It looks like you are advertising a website of yours or your friend. Kindly avoid the same.
P.S.: Based on your profile and last activity done by you in 2007, it most certainly looks like a sudden advertising message from you!
|
|
|
|
|
Hi, all,
I have an empty data message if there is no any records available. My problem is that the message is always put at top left, even I already HorizontalAlign="Center" and VerticalAlign="Middle".
Can you tell me how can I put it in the middle of Gridview?
Thanks
|
|
|
|
|
Use the CSSClass property to assign a style. You will have much better control over appearance.
|
|
|
|
|
I am using .Net Framework 3.5, VS2008, C#, and ASP.Net
I cannot access a class that I defined in a class library project from an aspx.cs code-behind file. I am using the namespace "BusinessServices" in the class library, but when I try to use the namespace in the aspx.cs codebehind file (i.e "using BusinessServices") I get the error "The type or namespace name 'BusinessServices' could not be found (are you missing a using directive or an assembly reference?)".
I added a reference to the BusinessServices.DLL from the Add Reference Project tab, and I even tried to do it by browsing to the DLL. Nothing helps.
I am not sure what step I am missing.
Thanks.
Adam
|
|
|
|
|
Hi,
maybe the namespace you wish to use has no public classes/elements. Check, if the class you wanna
use is public.
Other than that, i suggest you create a simple sample project and try to reference the assembly and use the namespace there. Maybe this way you can exclude possible "maybe-problems" or provide us your sample.
Good Luck
|
|
|
|
|
Do you have an assembly directive similar to this ...
<%@ Assembly Name="assemblyname" %>
<%@ Assembly Src="pathname" %>
|
|
|
|
|
Hello everybody,
In my code i m checking list item is selected or not. if it is selected i m calling a function. however i m not getting lstname.Item[i].selecteditem = true till i select one of the item from list.
for(i=1;i<=lstname.items.count;i++)
{
if(lstname.Item[i].selected)
{
gotosomefunction();
}
}
Thanking you in advance...
modified on Tuesday, April 27, 2010 1:23 PM
|
|
|
|
|
sandympatil wrote: i m not getting lstname.Item[i].selecteditem = true till i select one of the item from list.
Well, dah! Do you expect ASP.NET to magically read your mind and know what item you intend to select
Also, you should use lstname.Item[i].selected not lstname.Item[i].selecteditem
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Maybe you can rephrase your question and provide a working codeblock?
I'm trying to understand the problem, but unfortunately, i'm failing.
In general, if indeces of selected items cannot be retrieved, i would double check
the databinding on that listbox. if the listbox is rebound on that postback, you may lose
the selected item indeces.
try putting your databinding in an "if(!IsPostback)" block - if youre binding of course.
Good Luck
|
|
|
|
|
sandympatil wrote: however i m not getting lstname.Item[i].selecteditem = true till i select one of the item from list.
So whats wrong in that.
|
|
|
|
|
Hi,
I am using ASP.net 2.0 and C# as code behind , there is a requirement where i need to convert a string value to PDF, if anyone has solution please let me know, appreciate your help. This is very urgent need.
Thanks
ashish
|
|
|
|
|
Download SharpPDF, and check out the tutorials[^]
I are Troll
|
|
|
|
|
Hi everybody.
I need some help with a problem.
Can anybody say what's wrong with my script?
When executing, IE says that there is an error on the line with the __dopostback.
I do not have knowledge on javascript, but I copied the code and made it work sometimes.
Right now, I'm going crazy with it. Thanks in advance.
<script language="javascript">
var sFeatures='dialogWidth: 500px;dialogHeight: 200px;status:no;scroll:no';
var Resp = window.showModalDialog('PopUpMsg.aspx', window,sFeatures);
if (Resp == True)
{
__doPostBack('btnBorrar','1');
}
</script>
It is supposed to show a modal window called PopUpmsg.aspx, where I'll answer Yes or No. That works fine. But after answering, I need to reload the page, and the postback does not seem to work.
|
|
|
|
|
|
garfield185 wrote: if (Resp == True)
should be
if (Resp == true)
|
|
|
|
|
hi , iam using asp.net with c#,
in my page iam displaying old image and new image . then iam uploading and updating the images .the new image will be the newlly uploaded and display in new image control and previous image was displaying in new image control will display in
old image control .
the problem is when i am redirecting to other pages and came back to same page then modified images are not displayed
old images are displaying.... how to solve this problem can you give me example which helps me
<body>
<form id="form1" runat="server">
<div>
<asp:ImageButton ID="New" runat="server" Height="256px" ImageUrl="~/Nectarbig.JPG"
OnClick="ImageButton1_Click" Style="z-index: 100; left: 0px; position: absolute;
top: 0px" Width="336px" />
<asp:ImageButton ID="Old" runat="server" Height="192px" Style="z-index: 101;
left: 424px; position: absolute; top: 56px" Width="288px" />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Style="z-index: 102;
left: 120px; position: absolute; top: 432px" Text="Button" />
<asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" Style="z-index: 105;
left: 880px; position: absolute; top: 24px">next</asp:LinkButton>
<asp:FileUpload ID="FileUpload1" runat="server" Style="z-index: 104; left: 96px;
position: absolute; top: 392px" />
</div>
</form>
</body><code>protected void Button1_Click(object sender, EventArgs e)
{
string fn=FileUpload1.PostedFile.FileName;
string[]fi=fn.Split('\\');
string name=fi[fi.Length-1];
FileUpload1.PostedFile.SaveAs(Server.MapPath("images/"+name));
Old.ImageUrl = New.ImageUrl;
New.ImageUrl = "~/images/" + FileUpload1.FileName;
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("resizableextender.aspx");
}
</code>
|
|
|
|
|
Might be due to this browser cache. Are you uploading images with same name. If yes, try every time new name.
|
|
|
|
|
hi
i am developing desktop application using vb dotnet. my application downloads files from url specified. i want to display message in baloon above system tray when application completes download, similar to download manager... can any on help me...
thanks
|
|
|
|
|
|
Hi,
U can use a control called NotifyIcon, it displays ballon Icon with message in the system tray.
Tej Aj,
http://www.opexsolution.com/forum/
|
|
|
|
|
hy ,
i have a requirment in which i have to open a drop down on enter evnt using java script.i can open it using alt+keydown but i dont know how to fire the event on enter event.
Even if i am able to open it from code behind...It would be good
Thanks & Regards,
Raghvendra Panda
|
|
|
|
|
Save the in test.html and try
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<script type="text/javascript">
function op()
{
var s = document.getElementById("theList")
s.multiple="multiple";
s.size=5;
}
</script>
</head>
<body>
<select id="theList">
<option value="1">a</option>
<option value="2">b</option>
<option value="3">c</option>
<option value="4">d</option>
</select>
</body>
call op() on pressing enter.
|
|
|
|
|
i have a webApplication form in visual studio 2008 , i want to have a tools in my form that i can scan my document in my webForm, how can i create a scan tool in my form, can anybody help me???
I want to provide a feature to my application that connects to the scanner to scan the images.
Could anyone guide me on this scenario ?
Thanks in advance.
|
|
|
|