|
|
Thanks For Reply Abhijit,
I tried that linq yesterday.But my problem remains as it is.
Life Is Beautiful
|
|
|
|
|
How to allocate SqlParameter instance if in db table the column defined as varbinary(MAX)?
cmd.Parameters.Add(new SqlParameter("@SomeField", SqlDbType.VarBinary, ??MAX??));
Чесноков
|
|
|
|
|
cmd.parameters.AddWithValue("@variablename",SqlDbType.VarBinary)
try this..
might help you
Regards
Keyur Satyadev
|
|
|
|
|
hi all,
i want to integrate blog feature in my web application. i got some open source blog site
but i am not able customize it. i want to customize it because the person who register with
my site can automatically access the blog.
i try
http://blogengine.codeplex.com
dasblogs etc...
i try google too.
so anyone know about the open source blog system which can be customizable, please send me link or suggest.
thanks in advance.
Regards
Keyur Satyadev
|
|
|
|
|
keyur satyadev wrote: i got some open source blog site
but i am not able customize it.
Every opensource project having it own community forum . It would be better if you asked the question on that forum it slef. Becuase This is all about customization part, and I think those guys will answered you better
|
|
|
|
|
that i already did. i want something from you is just link (which is customizable) that you know for blog.
Regards
Keyur Satyadev
|
|
|
|
|
There is no property ConnectionStrings in WebConfigurationManager (Vista IIS7.0) am I missing another assembly added?
string connectionString =
WebConfigurationManager.ConnectionStrings["Northwind"].ConnectionString;
error, no ConnectionStrings property in the WebConfigurationManager
There is only single method WebConfigurationManager.GetSection(). Wierd???
Чесноков
|
|
|
|
|
|
I've clicked help on the manager and it showed microsoft one instead. So I was led astray a bit.
Чесноков
|
|
|
|
|
Try this
string connectionString =
System.Web.Configuration.WebConfigurationManager.ConnectionStrings["Northwind"].ConnectionString;
|
|
|
|
|
many thanks that works also but a bit lengthy
Чесноков
|
|
|
|
|
Hi,
I am currently working on creating a custom listbox control in asp.net and c#, I used as an example to work from a project found here
Custom List Box with Cool Effects[^
I want to edit this so that the image and text call onclick events in the C# behind them, does anyone have any idea of how to do this, the problem is the way the code works is that it adds HTML, so I cannot simply place <asp:imagebutton> in the code instead of a html button as this does not work
Thanks
|
|
|
|
|
Welcome,
Look this page
http://aspnet.4guysfromrolla.com/demos/dgExample12.aspx
Description: datagird in the table which the fiks has three lines of TR-is.
Is it any way possible to have once three lines once again 10 lines, depending what I get results from Select.
thanks
|
|
|
|
|
hi all,
please help me in this i am trying to achieve the functionality like zeeweb splitter control.how can i do this by java script or Ajax controls or guide me if any links are available for this how to approach using asp.net and C#.
Thanks And Regards,
Guru
|
|
|
|
|
I've got IIS 7.0 and Vista. I'm trying to access WebConfigurationManager which comes from microsoft.web.administration namaspace. But it is not in the references available to add from solution explorer.
Which is the directory where can I find it on my PC?
Чесноков
|
|
|
|
|
It should be over there,
C:\WINDOWS\system32\inetsrv
|
|
|
|
|
thank you, it was there.
but there is no property ConnectionStrings in WebConfigurationManager.
am I missing another assembly added?
string connectionString =
WebConfigurationManager.ConnectionStrings["Northwind"].ConnectionString;
error, no ConnectionStrings property in the WebConfigurationManager
Чесноков
|
|
|
|
|
Chesnokov Yuriy wrote: string connectionString =
WebConfigurationManager.ConnectionStrings["Northwind"].ConnectionString;
error, no ConnectionStrings property in the WebConfigurationManager
I think you are doing some thing wrong. You need only System.Web.dll for that
WebConfigurationManager Class[^]
|
|
|
|
|
many thanks, that is the right one.
Чесноков
|
|
|
|
|
Welcome
|
|
|
|
|
i have a page containing multiple textboxes which have menu items which i want to store into mysql database. These items would be stored in "menu_items" column of table. i want code to store these values into database
modified on Monday, August 10, 2009 3:58 AM
|
|
|
|
|
Alright, and the problem is?
|
|
|
|
|
SO you have made as if you know what you are doing Its easy why dont you ask
(How do i run an insert to mySQL Table) then we will answer you. Now another thing is that before you post you must first Google. there are plenty of examples on the net
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
HI
i have create a project having VSJLIB reference in it
when i have code it as follows
public void CreateZipFile(string sPath)
{
FileOutputStream stream1 = null;
ZipOutputStream stream2 = null;
if (System.IO.File.Exists(sPath))
{
FileInfo info2 = new FileInfo(sPath);
stream1 = new FileOutputStream(sPath.Replace
(info2.Extension, ".zip"));
stream2 = new ZipOutputStream(stream1);
this.ZipOneFile(stream1, stream2, sPath);
}
else if (Directory.Exists(sPath))
{
stream1 = new FileOutputStream(sPath + ".zip");
stream2 = new ZipOutputStream(stream1);
DirectoryInfo info1 = new DirectoryInfo(sPath);
this.ZipDirectory(stream1, stream2, info1, sPath);
}
stream2.close();
stream1.close();
stream2.flush();
stream1.flush();
}
private void CopyStream(FileInputStream src, ZipOutputStream
dest)
{
InputStreamReader reader1 = new InputStreamReader(src);
OutputStreamWriter writer1 = new OutputStreamWriter(dest);
while (reader1.ready())
{
writer1.write(reader1.read());
}
writer1.flush();
}
private void ZipDirectory(FileOutputStream fos, ZipOutputStream
zos, DirectoryInfo di, string SRootDir)
{
FileInfo[] infoArray2 = di.GetFiles();
foreach (FileInfo info2 in infoArray2)
{
ZipEntry entry1 = new ZipEntry
(info2.FullName.Substring(SRootDir.LastIndexOf(@"\")));
entry1.setMethod(8);
zos.putNextEntry(entry1);
FileInputStream stream1 = new FileInputStream
(info2.FullName);
this.CopyStream(stream1, zos);
zos.closeEntry();
stream1.close();
}
DirectoryInfo[] infoArray1 = di.GetDirectories();
foreach (DirectoryInfo info1 in infoArray1)
{
this.ZipDirectory(fos, zos, info1, SRootDir);
}
}
but when i run the code it gives me excetion
java.io.File.getCanonicalPath()
what should i do to run the code ???
any suggesations ???
thanx in advnace
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|