|
I currently using asp.net with vb.net, I have used control TextBox to send memo on my website, when user type some text and they want to break line as codeproject forum for new message, I don't know to replace it.
Please help me.
................
|
|
|
|
|
Replace the line breaks when you display the text:
daControl.InnerHtml = Server.HtmlEncode(daText).Replace(Environment.NewLine, "<br/>");
---
b { font-weight: normal; }
|
|
|
|
|
How do i access the dropdownlist inside the GridView from the Page_Load event
I have the Grid View like this
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns ="False">
I created a template field column inside this gridview and inserted a dropdownlist in it using
<asp:TemplateField HeaderText="Select">
<ItemTemplate> <asp:DropDownList ID="DDList1" runat="server"></asp:DropDownList>
</ItemTemplate>
<HeaderTemplate>
Select
</HeaderTemplate>
</asp:TemplateField>
I would like to access this dropdownlist and assign the listitems during the pageload event programmatically. How do i do it
|
|
|
|
|
I am not sure but i have seen that you have access that gridview cell first and then use Fincotrol method
like
Gridview1.Rows[0].cells[0].findControl("DropDownList1")
etc.
sorry if it doesn't help you.
-- modified at 6:49 Monday 4th September, 2006
Naveed Kamboh
|
|
|
|
|
Hi everybody,
I was given a job of developing a function which accepts 3 parameters i.e., an assembly path, a class with namespace, and a method in that assembly. the function should return the value that is being returned by the method that iam invoking(the one which we passed as a parameter)
iam using system.reflection namespace.
The problem is, i also need to pass arguements to the method that iam invoking but it is just not working the i way i want. this is how iam calling my function ..
public int myreflect("..the path of the assembly..", "...calss name with namespace..say N.C1..","..method name..say M1..", 2,4) // 2,4 are the arguments iam passing to my method M1//
This is how iam defining my function
public int myreflect(string a, string b, string c, params int[] list)
Everything is working except that i need to somehow extract the arguements which are in the param array i.e., list.
I need to capture those arguments and store them in another array..say int[] args..and use this args in Invokemember function, as parameters to invoke my M1 method. I hope I have done a fair job in explaining my problem. A little help would be greatly appreciated. Thanks in advance....
Sonu
|
|
|
|
|
You could copy all the elements in the array:
int[] args = new int[list.Length];
Array.Copy(list, args, list.Length);
Or you could just copy the reference to the array:
int[] args = list;
Or why not just use the list array?
---
b { font-weight: normal; }
|
|
|
|
|
Thanx for the reply Guffa!!
i tried using list directly, but its not working..
anyways i will try the other two ways you suggested...
thanks once again....
Sonu
|
|
|
|
|
If one array doesn't work, neither will the other.
Standard question #1:
What do you mean by "not working"?
Standard question #2:
What error message do you get?
---
b { font-weight: normal; }
|
|
|
|
|
hii alll i want to know that how can we insert any asp.net control in an asp.net datagrid and do there operations. for example , i hv taken a datagrid in page and showing all data from database in that.now i also want to modify that data by modifying in that datagrid . plz send me the code which can do this type of
event in datagrid.
thanking u : tanmaya nanda
Tanmaya Nanda
|
|
|
|
|
Hello, I've a question about URL Authorization and may be you can help me. I've a site with some users that could create folders in a site and upload files to that folders, and this user could create other users with lower rights (only see some folders that the user who create it could define). For example:
UserA -> create folderA, folderB and folderC
UserA -> create UserB -> with rigths on folderB
UserA -> create UserC -> with rigths on folderC
So for example UserB could not access to folderA and folderC.
I'm using winform authenticaton. This users are dynamic created. I want to create this folder and files authorization. I thought in URL Authorization using <location> in the web.config, but I don't know if I could do that throw programming.
Any ideas of how to resolve this issue?
Thanks a lot !!!
|
|
|
|
|
Sir,
I want to invoke a alert message box by writing the code into the code behind file in addition to this ,any string should be passed i mean when i call the fuction i can pass any string into the function.Now i am declaring a java script function in head tag
function(var str)
{
alert(str)
}
Can u help ? how to call the function written in the java script by writing the code in the code behind file.
Thanks
|
|
|
|
|
Use the RegisterStartupScript method to add Javascript to the page from code behind.
In framework 1.x Page.RegisterStartupScript, in framework 2.x Page.ClientScript.RegisterStartupSript.
---
b { font-weight: normal; }
|
|
|
|
|
u can call any javascript function from ur code behind i.e vb.net or c# using
Page.RegisterStartupScript("clientScript", ScriptText) method
even u can write ur javascript code for alert using Page.RegisterStartupScript()
like
Page.RegisterStartupScript("clientScript", "function('abc');")
or
Page.RegisterStartupScript("clientScript", "var str; str = 'abc'; alert(str);")
hope it'd help u
Regards,
Rashida
http://www.akaas.net[^]
|
|
|
|
|
i have a camera that takes an image 10 per second
how can i show this images sequantialy to make a vedio representation
from this image collection .
and how can i update this image for all person hwo see my site.
can i ;
thank you
dead
|
|
|
|
|
hello
plz any body can tell me that how can i measure the bandwidth of high downloads
usage in my asp.net application.
thanx
|
|
|
|
|
hello
any body can tell me how can i integrate the PHP Modules
into Asp.Net.
thanx
|
|
|
|
|
How to change the active logging format of IIS log files.
If right now system time is 4pm then while writing Log files it is writing time as 11am.
How to overcome this problem ?
Abhi
|
|
|
|
|
Control Panel > Administrative Tools > Internet Information Services
from there select you website and right click on it select properties and from "Web Site" tab you can change the format of IIS log files for ur web site and u can as well change properties of logging
hope it'd help
Regards,
|
|
|
|
|
I want to set my XAML application output as per screen resolution.How to do that?
|
|
|
|
|
hi! i have created 6 input file server control using java script at client side using following script: ...
function generateRow()
{
var d=document.getElementById('div');
d.innerHTML+="<table><br>";
for(i=0;i<6;++i)
{
d.innerHTML+="<tr><td><input type='File' id='File" + i + "' runat=server /></tr></td><br>";
}
d.innerHTML+="</table>";
}
but now how i find IDs of these file server controls for manupulation on the server whent form is submited?
samir
|
|
|
|
|
The Request.Files collection contains the uploaded files.
---
b { font-weight: normal; }
|
|
|
|
|
Perhaps you should have studied for the test?
---
b { font-weight: normal; }
|
|
|
|
|
plz can u explain me how, iam just confused (it could be a)
Pradeep Reddy
|
|
|
|
|
Your quetion looks like an exam question (for a Microsoft Cerfication course). Guffa was indicating that instead of asking exam questions here you should study for the course.
By the way, A is not the answer.
|
|
|
|
|
I sent A mail With Smtp but in my local it's Ok but in The server i recept This ERROR
The message could not be sent to the SMTP server. The transport error code was 0x800ccc6a. The server response was 451 ESMTP MailEnable Service temporarily refused connection at 09/02/06 11:48:06 from IP (127.0.0.1) because the server is too busy.
Please Answer Me as soon as possible
MHf
|
|
|
|