|
nagendrathecoder wrote: dim LastValue as String = value.Substring(value.Length - 1)
That'd be:
dim LastValue as String = value.Substring(value.Length - 1, 1)
-= Reelix =-
|
|
|
|
|
I don't think 2nd parameter would make any difference here but its looking simple to understand. 
|
|
|
|
|
dim str1 as string=textbox1.text
dim str2 as string=str1.substring(str1.length-1)
|
|
|
|
|
Thats it, u can even make it without str1 by directly using TextBox1.Text. 
|
|
|
|
|
Hi,
Is it possible to make the menu items displayed from right to left.So the first url in the sitemap will be the first item in the menu from the right?
I am too late but i will never give up
|
|
|
|
|
I dont really understand what you want, its easy to display right to left just put them in a different order.
But i dont think you mean that.
|
|
|
|
|
Iam using a sitemap datasource.I want the first URL in the sitemap appears in the menu from the right not like the default(from the left).If I put the URLs in the sitemap in an opposite order it will work but it will be realy confusing.Isn't there any setting to change the menu direction?
I am too late but i will never give up
|
|
|
|
|
I am facing a problem in increasing session time out value. I want to maintain session value upto 6 hours. I written this code in web.config file but its not working. Its automatically get 20 minutes.
sessionState mode="InProc" cookieless="false" timeout="360"
I did setting in IIS also but its not working.
Actually my applicatin have two webserver ( load balancing). Can it possible it create a problem. I written in webconfig file even did settings in IIS but it running perfectly on local server but not on production server.
Thanks
Do hard work, you will get your result sure !
|
|
|
|
|
I think it would be best to change the timeout on the other server although Im not def sure it would affect this.
Check this forum message out
http://www.dotnetspider.com/forum/ViewForum.aspx?ForumId=17
|
|
|
|
|
I have the following code attached to my Login Button:
Session.Timeout = 300;
Hope that helps
-= Reelix =-
|
|
|
|
|
Hi,
Could I make my treeview control read its links from the sitemap file for static links and from the database for dynamic links
I am too late but i will never give up
|
|
|
|
|
Hi, as my requirement is i want to develop a 2-tier application using ASP.Net 2.0 with C#. Any suggestions please post it.
|
|
|
|
|
Start reading up on 2-tier/n-tier application development. There are good articles on this site if you do a search for them
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi Guyz Good Morning,
I want to know the following for loop is corrcet or not,
Everything going on well in that for loop...,
But i feel for each data table the loop is going on more than once...,
Its possible to do any modification in that...,
Plz give me ur suggestion abt this:
for (int i = 0; i < DS.Tables.Count - 1; i++)
{
System.Web.UI.WebControls.DataGrid grid = new System.Web.UI.WebControls.DataGrid();
grid.HeaderStyle.Font.Bold = true;
foreach (DataRow dr1 in DS.Tables[i].Rows)
{
foreach (DataRow dr2 in DS.Tables[i + 1].Rows)
{
if (dr1["MID"].ToString() == dr2["MID"].ToString())
{
if (!Directory.Exists(_path + "\\" + dr1["EID"].ToString() + @"\"))
{
Directory.CreateDirectory(_path + "\\" + dr1["EID"].ToString() + @"\");
string _XLSPATH = _path + "\\" + dr1["EID"].ToString() + "\\" + dr1["Name Of Employee"].ToString() + ".xls";
using (StreamWriter sw = new StreamWriter(_XLSPATH))
{
using (HtmlTextWriter hw = new HtmlTextWriter(sw))
{
grid.DataSource = DS.Tables[i];
grid.DataBind();
grid.RenderControl(hw);
}
}
}
else
{
string _XLSPATH = _path + "\\" + dr2["EID"].ToString() + "\\" + dr2["Name Of Employee"].ToString() + ".xls";
using (StreamWriter sw = new StreamWriter(_XLSPATH))
{
using (HtmlTextWriter hw = new HtmlTextWriter(sw))
{
grid.DataSource = DS.Tables[i + 1];
grid.DataBind();
grid.RenderControl(hw);
}
}
}
}
else
{
if (!Directory.Exists(_path + "\\" + dr2["EID"].ToString() + @"\"))
{
Directory.CreateDirectory(_path + "\\" + dr2["EID"].ToString() + @"\");
string _XLSPATH = _path + "\\" + dr2["EID"].ToString() + "\\" + dr2["Name Of Employee"].ToString() + ".xls";
using (StreamWriter sw = new StreamWriter(_XLSPATH))
{
using (HtmlTextWriter hw = new HtmlTextWriter(sw))
{
grid.DataSource = DS.Tables[i + 1];
grid.DataBind();
grid.RenderControl(hw);
}
}
}
else
{
string _XLSPATH = _path + "\\" + dr1["EID"].ToString() + "\\" + dr1["Name Of Employee"].ToString() + ".xls";
using (StreamWriter sw = new StreamWriter(_XLSPATH))
{
using (HtmlTextWriter hw = new HtmlTextWriter(sw))
{
grid.DataSource = DS.Tables[i];
grid.DataBind();
grid.RenderControl(hw);
}
}
}
}
}
}
}
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Hi,
How to color some cells of table? I mean that i have for suppose 48 cells in a single row how i color some cells based upon condition ?
Regards
Thanks in advance
|
|
|
|
|
Is that ASP.NET table or HTML table?
You can iterate through the cells in ASP.NET table.
HTML table - Tricky...
|
|
|
|
|
Thanks for response
actually iam using asp.net table kindly write few lines of code that how i do that .
i want to color few cells for example 4 to 8 i want to color cells othere reamins same .
tahnks
|
|
|
|
|
For Each row As TableRow In MyTable.Rows
For I As Integer = 4 To 8
' Do some color formatting
Next
Next
|
|
|
|
|
Dear
I using Windows Vista with IIS7.0, but i can't run ASP and ASP.NET,
Please help me, how can i do?
Socheat
|
|
|
|
|
Have you installed IIS 7 fully or just the default?
By default IIS 7 installs without the support for ASP, ASP.NET, etc. You can turn it on from Control Panel. There is an option called "Turn off or on Windows programs". As far as I used it does not ask for OS CD/DVD.
Let me know if you still have the problem.
|
|
|
|
|
In IIS7, I check all in sub item, but in sub item I don't see where to enabled ASP or ASP.NET at all
Socheat
|
|
|
|
|
Really?
What Type of Vista you are having?
|
|
|
|
|
I found ASP and ASP.NET already, but after I installed it, I still can't use it, the error message as Internal Server Error
1. Disabled Client Impersonation
2. Disable the error
3. Move this application to an application pool using the Classic.Net(PREFERED).
so, how can I fix it?
Socheat
|
|
|
|
|
Socheat.Net wrote: but after I installed it, I still can't use it, the error message as Internal Server Error
Since IE is not showing the error exactly, its difficult to predict. But you can still get the exact error message by turn off the "Show friendly error messages" in Internet Options of the Internet Explorer. This idea may not help sometimes. Just give a try...
|
|
|
|
|
hi, I hosted this website on the server and it's working fine. Now I need to add a virtual directory for another asp.net webapplication and I should access it using "www.mysite.com/forum" but the problem is that the site first goes to the main hosted website and fails to jump to the virtual directory.
I created a folder in the main webiste called forum and in the properties of this folder, I redirect to the virtual directory of the forum.. but he first goes to the main website since its the default on the server and he can't seem to know how to reach the forum virtual directory.
can someone help?
|
|
|
|